Add this comment: # LAB 1: Part 4 Write a program that asks the user to enter the mass of an object in pounds and then calculates and displays the mass of the object in kilograms. One pound is equivalent to 0.454 kilograms. Please enter the mass of an object in pounds: 5.5 The mass of an object in kilograms is: 2.497
Q: Implement a Tour Planner and Budget Calculator for Holidays. Program will ask the user to enter…
A: Menu based programs are those where the user chooses one of several options and the program…
Q: Exercise 3. Write a program that will first allow a user to choose one of two options: 1. Convert a…
A: #include <iostream>using namespace std;int main(){ int option; //prompting for option to…
Q: **3.19 (Geometry: point in a circle?) Write a program that prompts the user to enter a point (x, y)…
A: Step-1: StartStep-2: Declare variable x, y, distanceStep-3: Calculate distance by using square root…
Q: Exercise 2 Write a Java application that computes the sum of even numbers and the product of odd…
A: Even numbers are those numbers that yield 0 as the remainder when divided by 2. Odd numbers are…
Q: Scissor, rock, paper Write a program called GameSRP.java that plays the popular scissor-rock-paper…
A: We have to write a JAVA code foe Scissor, Rock and Paper with our computer. It will be continuous…
Q: Add this comment: # LAB 1: Part 2 Write a program that asks the user to enter the radius of a…
A: Python Code: #LAB 1:Part 2 print("Please enter the radius of circle: ")r = float(input())print("The…
Q: Light travels at 3 x 10° meters per second. A light-year is the distance a light beam travels in one…
A: In this question, we are asked to write a python program such that it return the distance of light…
Q: Practical quiz 2 Write a Java program that will ask the user for the number of rooms (including…
A: import java.text.DecimalFormat;import java.util.Scanner; public class RoomChargeMain { public…
Q: inch. 2. Ask the user for a temperature. Then ask them what units, Celsius or Fahrenheit, the…
A:
Q: (Find the lowest price) Write a program that prompts the user to enter the number of items and each…
A: C++ Program for above : #include <iostream> using namespace std; int main() { //get the…
Q: Project Name: Chpt2_Project Class Name: Chpt2_Project Write a Java program that calculates how fast…
A: Here, in this program, you need to calculates how fast a bucket will fill up. Program inputs which…
Q: Implement a Tour Planner and Budget Calculator for Holidays. Program will ask the user to enter…
A: A menu is used to take user input for an available list of choices. The menu can be printed using…
Q: 5. Write a program which asks the user to enter their password. If they enter the word "PASSWORD"…
A: Visual basic program Program which ask the user to their password If they enter PASSWORD it display…
Q: Widgets and Gizmos An online retailer sells two products: widgets and gizmos. Each widget weighs 75…
A: code is given below:
Q: In PyCharm, write a program that prompts the user for their name and age. Your program should then…
A: Here I have first of all taken input from the user. Then, I have subtracted the age from 2020 to get…
Q: A savings account is opened with £100000 at the beginning of January. A deposit is then made of…
A: As the programming language is not mentioned here, we will be using PYTHON The complete code is…
Q: There are two main systems for measuring distance, weight and temperature, the Imperial System of…
A: Required: Program to create the following menu and create conversions according to user choice.…
Q: (Convert feet into meters) Write a program that reads a number in feet, converts it to meters, and…
A: Lets see the solution.
Q: Design a program that gives simple math quizzes. The program should display two random numbers that…
A: NOTE - I have used the Python programing language. Here I have created 2 random numbers and then…
Q: Implement a Tour Planner and Budget Calculator for Holidays. Program will ask the user to enter…
A: A switch statement is a multiway branch statement that is used when we have multiple conditions and…
Q: 1. Kilometer Converter Write a program that asks the user to enter a distance in kilometers, then…
A: Below is the required program in C++ language. Program Approach: To convert kilometres to mile, we…
Q: Turtle: draw the Olympic symbol) Write a program that prompts the user to enter the radius of the…
A: The answer is given below:-
Q: Area and Perimeter: Write a program that prints the area and perimeter of a circle with a radius of…
A: Solution: Approach: Create a class circle In the main method declare the variables radius, area,…
Q: Question 2 Create a java program that checks for entrance requirements. Ask the user to enter…
A: - We need to check for the entrance of the students.
Q: Area and Perimeter: Write a program that prints the area and perimeter of a circle with a radius of…
A: logic:- set radius=5.5 use formula, perimeter=2*radius*math.pi area=radius*radius*math.pi display…
Q: Implement a Tour Planner and Budget Calculator for Holidays. Program will ask the user to enter…
A: #include <stdio.h> int main(){ int budget,m,n,p,d; printf("\n Menu\n Destination…
Q: QUESTION5: The Speed of Sound. The following table shows the approximate speed of sound in air,…
A: PROGRAM CODE: import java.util.*; // import utility package of javapublic class…
Q: Complete the following program skeleton so it displays the volume of a cylindrical fuel tank. The…
A: Complete Source code for the program #include <iostream>#include<cmath> using namespace…
Q: Exercise 2 : Write a Java application that computes the sum of even numbers and the product of odd…
A: Given: Exercise 2 : Write a Java application that computes the sum of even numbers and the product…
Q: Value returning method Write a program to calculate items sale price
A: Given: Value returning method Write a program to calculate items sale price
Q: ecks whether the point is within the circle centered at (0, 0) with radius 10. For example, (4, 5)…
A: Given:
Q: Any help with this first problem would be really helpful! Thank you so much!! 1. Write the…
A: Below is the code in java and sample output: Also as per our guidelines we are supposed to answer…
Q: (Area and perimeter of a rectangle) Write a program that displays the area and perimeterof a…
A: Objective: This program would display the area and perimeter of a rectangle whose width would be 5.3…
Q: Exercise 4: Write a program that reads how much a customer spends on groceries and computes the…
A: Write a problem, input, output , algorithm,comments and design a python program Note: Please make…
Q: Question 2: Write a program to check responses of a student to the multiple-choice final exam. The…
A: C++ used to answer this question
Q: In Python, Assuming minors are younger than 13 and adults are older than 19, write a program that…
A: Solution programming Approach Print a message Declare a variable of integer type and take the…
Q: Miles per Gallon A car holds 15 gallons of gasoline and can travel 375 miles before refueling.…
A: Since programming language not mentioned, using python Algorithm Start Var g=15, m=375 MPG=375/15…
Q: reate a program that will accept two numbers. Display the sum, difference, product, and quotient.
A: Given Create a program that will accept two numbers. Display the sum, difference, product, and…
Q: 1-Write a program that will ask the user to enter an integer number and display the (even and…
A: here in this question we have asked to write a program which take an input integer and based on this…
Q: Assignment: Carefully read the instructions and write a program that reads the following information…
A: The following program is compiled in replit and also Eclipse.Pseudo code:Get the inputs from the…
Q: This example creates a program to teach a first grade child how to learn subtractions. The program…
A: Code Screenshot, output and code is below:
Q: Q3: - Write a visual basic program that reads two integers (feet and inches) representing distance,…
A: Visual Basic (VB) is a third-generation programming environment from Microsoft. The system works by…
Q: Program Unit Score Calculator Console App Write a Python Console Application program that allows…
A: First, we will input all the marks. Then we will find the total marks by doing the summation of all…
Q: **3.22 (Geometry: point in a circle?) Write a program that prompts the user to enter a point ( x, y…
A: The given problem is to find the position of a point in x,y cordinate on x-y axis and find whether…
Q: C ++ Demonstration: Write a program that prompts the user to input three positive angle values in…
A: I have provided C++ CODE along with CODE SCREENSHOT and 4 OUTPUT SCREENSHOTS-------------
Q: (Simple computation) The formula for computing the discriminant of a quadratic equation ax^2 + bx +…
A: class Exercise01_01Extra { public static void main(String[] args) { // Declaring variables…
Q: Answer both questions: A-Write a program to display the name of day by giving the day number as the…
A: read a value convert it into int using Integer.Parse() if x=1 then display “Saturday” else if x=2…
Q: (Geometry: area of a triangle) Write a program that prompts the user to enter three points (x1, yl),…
A: Given:
Q: SUPPLEMENTAL ACTIVITIES 1. Write a parameter and return program that will require the user to enter…
A: Solution: C++ PROGRAM: #include <iostream> using namespace std; // Function header and…
python
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- Please written by computer source Write a program that reads the subtotal and the gratuity rate, then computes the gratuity and total. For example, if the user enters 10 for subtotal and 15% for gratuity rate, the program displays $1.5 as gratuity and $11.5 as total. Sample Run Enter the subtotal and a gratuity rate: 10 15 The gratuity is $1.5 and total is $11.5 Class Name: Exercise02_05Assignment: Carefully read the instructions and write a program that reads the following information and prints a payroll statement. Employee’s name (e.g., Smith)Number of hours worked in a week (e.g., 10)Hourly pay rate (e.g., 9.75)Federal tax withholding rate (e.g., 20%)State tax withholding rate (e.g., 9%) In summary, design a program to• Prompt user for 5 values and read the values using Scannero Use method .nextLine() to get the String for the nameo Use method .nextDouble() to get all other numeric values• Calculating the Gross payo Gross pay = hours worked * hourly pay rate• Calculating the Federal withholdingo Federal withholding = Gross pay * federal tax withholding rate• Calculating the State withholdingo State withholding = Gross pay * state tax withholding rate• Calculating the Total deductiono Total deduction = Federal withholding + State withholding• Calculating the Net Payo Net Pay = Gross pay – Total deduction• Formatting the output same as the Sample run (Use ONLY…The following code intends to input a user’s first name, last name, and age.However, it has an error. Fix the code.string fullName;int age;cout << "Enter your first and last name." << endl;cin >> fullName;cout << "Enter your age." << endl;cin >> age;cout << "You are " << age << " years old, " << fullName << endl;
- C++ Visual 2019 A particular talent competition has five judges, each of whom awards a score between 0 and 10 to each performer. Fractional scores, such as 8.3, are allowed. A performer's final score is determined by dropping the highest and lowest score received, then averaging the three remaining scores. Write a program that uses this method to calculate a contestant's score. It should include the following functions: void getJudgeData() should ask the user for a judge's score, store it in a reference parameter variable, and validate it. This function should be called by main once for each of the five judges. void calcScore() should calculate and display the average of the three scores that remain after dropping the highest and lowest scores the performer received. This function should be called just once by main and should be passed the five scores. The last two functions, described below, should be called by calcScore, which uses the returned information to determine which of the…nstructions The files provided in the code editor to the right contain syntax and/or logic errors. In each case, determine and fix the problem, remove all syntax and coding errors, and run the program to ensure it works properly. An example of the program is shown below: Enter the amount of your check >> 12.99 Enter the amount of your friend's check >> 9.50 The tip should be at least $1.9485 The tip should be at least $1.425 Task 1: The DebugThree1 class compiles without error. Task 2: The calcTip() method calculates a 15% gratuity. Task 3: The DebugThree1 program accepts user input and displays the correct output.Chapter 5. PC #2. Retail Price Calculator (page 312) Write a program that asks the user to enter an item’s wholesale cost and its markup percentage. It should then display the item’s retail price. For example: • If an item’s wholesale cost is 5.00 and its markup percentage is 100 percent, then the item’s retail price is 10.00. • If an item’s wholesale cost is 5.00 and its markup percentage is 50 percent, then the item’s retail price is 7.50. The program should have a method named calculateRetail that receives the wholesale cost and the markup percentage as arguments, and returns the retail price of the item. Class name: RetailPriceCalculator Here is a working code but please fix it so it will in Hypergrade which as all the test casses. I DO NOT NEED THANK YOU IN THE PROGRAM. IT HAS TO PASS ALL THE TEST CASSES PLEASE. THANK YOU!!!!!: import java.util.Scanner;public class RetailPriceCalculator { public static double calculateRetail(double wholesale, double percentage) {…
- Chapter 5. PC #2. Retail Price Calculator (page 312) Write a program that asks the user to enter an item’s wholesale cost and its markup percentage. It should then display the item’s retail price. For example: • If an item’s wholesale cost is 5.00 and its markup percentage is 100 percent, then the item’s retail price is 10.00. • If an item’s wholesale cost is 5.00 and its markup percentage is 50 percent, then the item’s retail price is 7.50. The program should have a method named calculateRetail that receives the wholesale cost and the markup percentage as arguments, and returns the retail price of the item. Class name: RetailPriceCalculator Here is a working code: please modify this code so it works in Hypergrade when I submit it so it passes all the test casses in Hypergrade.Because right now when I upload it to Hypergrade it says 0 out of 5 casses pased. It has to pass all the test casses in Hypergrade Please fix this code. I do not need thanks for playing or goodbye…Chapter 5. PC #2. Retail Price Calculator (page 312) Write a program that asks the user to enter an item’s wholesale cost and its markup percentage. It should then display the item’s retail price. For example: • If an item’s wholesale cost is 5.00 and its markup percentage is 100 percent, then the item’s retail price is 10.00. • If an item’s wholesale cost is 5.00 and its markup percentage is 50 percent, then the item’s retail price is 7.50. The program should have a method named calculateRetail that receives the wholesale cost and the markup percentage as arguments, and returns the retail price of the item. Class name: RetailPriceCalculator Here is a code: please modify this code so it works in Hypergrade when I submit it so it passes all the test casses in Hypergrade. It has to pass all the test casses in Hypergrade becausw when I submit the code in Hypercase it does not run and it says 0 out of 5 casses passed. Please fix this code. I do not need thanks for playing or…Chapter 5. PC #2. Retail Price Calculator (page 312) Write a program that asks the user to enter an item’s wholesale cost and its markup percentage. It should then display the item’s retail price. For example: • If an item’s wholesale cost is 5.00 and its markup percentage is 100 percent, then the item’s retail price is 10.00. • If an item’s wholesale cost is 5.00 and its markup percentage is 50 percent, then the item’s retail price is 7.50. The program should have a method named calculateRetail that receives the wholesale cost and the markup percentage as arguments, and returns the retail price of the item. Class name: RetailPriceCalculator Here is a working code: please modify this code so it works in Hypergrade when I submit it so it passes all the test casses in Hypergrade. It has to pass all the test casses in Hypergrade and I do not need thanks for playing or goodbye in the program. Below is the working code: import java.util.Scanner;public class…
- Chapter 5. PC #2. Retail Price Calculator (page 312) Write a program that asks the user to enter an item’s wholesale cost and its markup percentage. It should then display the item’s retail price. For example: • If an item’s wholesale cost is 5.00 and its markup percentage is 100 percent, then the item’s retail price is 10.00. • If an item’s wholesale cost is 5.00 and its markup percentage is 50 percent, then the item’s retail price is 7.50. The program should have a method named calculateRetail that receives the wholesale cost and the markup percentage as arguments, and returns the retail price of the item. Class name: RetailPriceCalculator Here is a working code: please modify this code so it works in Hypergrade when I submit it so it passes all the test casses in Hypergrade. It has to pass all the test casses in Hypergrade becausw when I submit the code in Hypercase it says 0 out of 5 casses passed. Please fix this code. I do not need thanks for playing or goodbye in…Chapter 5. PC #2. Retail Price Calculator (page 312) Write a program that asks the user to enter an item’s wholesale cost and its markup percentage. It should then display the item’s retail price. For example: • If an item’s wholesale cost is 5.00 and its markup percentage is 100 percent, then the item’s retail price is 10.00. • If an item’s wholesale cost is 5.00 and its markup percentage is 50 percent, then the item’s retail price is 7.50. The program should have a method named calculateRetail that receives the wholesale cost and the markup percentage as arguments, and returns the retail price of the item. Class name: RetailPriceCalculator Here is a code: please modify this code so it works in Hypergrade when I submit it so it passes all the test casses in Hypergrade. It has to pass all the test casses in Hypergrade becausw when I submit the code in Hypercase it does not run and it says 0 out of 5 casses passed. Please fix this code. I do not need thanks for playing or…Chapter 5. PC #2. Retail Price Calculator (page 312) Write a program that asks the user to enter an item’s wholesale cost and its markup percentage. It should then display the item’s retail price. For example: • If an item’s wholesale cost is 5.00 and its markup percentage is 100 percent, then the item’s retail price is 10.00. • If an item’s wholesale cost is 5.00 and its markup percentage is 50 percent, then the item’s retail price is 7.50. The program should have a method named calculateRetail that receives the wholesale cost and the markup percentage as arguments, and returns the retail price of the item. Class name: RetailPriceCalculator Here is a working code but please fix it so it will in Hypergrade which as all the test casses. I DO NOT NEED THANK YOU IN THE PROGRAM. IT HAS TO PASS ALL THE TEST CASSES PLEASE. THANK YOU!!!!!: import java.util.*;class RetailPriceCalculator{ // creating a method public static double calculateRetail(double wholesale,double…