Concept explainers
Write a
Want to see the full answer?
Check out a sample textbook solutionChapter 1 Solutions
Absolute C++
Additional Engineering Textbook Solutions
Starting Out with C++: Early Objects (9th Edition)
Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
Computer Science: An Overview (13th Edition) (What's New in Computer Science)
Degarmo's Materials And Processes In Manufacturing
INTERNATIONAL EDITION---Engineering Mechanics: Statics, 14th edition (SI unit)
- 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…arrow_forwardChapter 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…arrow_forwardChapter 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…arrow_forward
- 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…arrow_forwardChapter 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…arrow_forwardChapter 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) {…arrow_forward
- The BITI Students Club is offering a new travelling package or membership. People can choose either one of three packages : a) business, b) family or single package. Each packages have different prices for monthly subscription. A business package is RM40, a family package is RM20 and single package is RM30. People can choose any package and duration-in-month for subscription. The program will calculate and display the total of payment. The program can be repeated as long as the option to exit is not selected. Any inval i input will result in an error message to retry. BITI Caravan Travelling Club Membership 1. BUSINESS (RM40) 2. FAMILY 3. SINGLE 4. Quit the Program (RM20) (RM30) Enter your choice: 1 For how many months do you like to caravan with us ? 5 The total charges are RM200.e0 BITI Caravan Travelling Club Membership 1. BUSINESS (RM40) 2. FAMILY 3. SINGLE 4. Quit the Program (RM20) (RM30) Enter your choice:arrow_forwardThe BITI Students Club is offering a new travelling package or membership. People can choose either one of three packages : a) business, b) family or single package. Each packages have different prices for monthly subscription. A business package is RM40, a family package is RM20 and single package is RM30. People can choose any package and duration-in-month for subscription. The program will calculate and display the total of payment. The program can be repeated as long as the option to exit is not selected. Any invalid input will result in an error message to retry. OUTPUT BITI CARAVAN TRAVELLING CLUB MEMBERSHIP 1.BUSINESS (40RM) FAMILY (20RM) SINGLE (RM 30RM) QUIT THE PROGRAM ENTER YOUR CHOICE: 1arrow_forwardPart E Question 1 Part E Question 2 Part E Question 3 Part E Question 4 Part E Question 5 Part E Question 6 Question 5 Write a program for a lawn mowing service. The lawn mowing season lasts for twenty weeks. The weekly fee for mowing a lot under 400 square feet is RM25. The fee for a lot 400 square feet or more but under 600 square feet is RM35 per week. The feet for a lot 600 square feet or over is RM50 per week. Input the length and width from the keyboard for twenty weeks, calculate the area of the lawn, determine and display the total of twenty weeks mowing fee. Please write your answer below: O Source n BIUS x" Styles Font Size A- A- J ? Formatarrow_forward
- Problem 2 Write a program that allows the user to enter the number of for-credit classes in which they have enrolled at a college, and the number of non-credit classes in which they have enrolled, and the amount of financial aid they receive. Assume that each for-credit class is 3 credit hours, and the fee per credit hour is $159; for the non-credit classes, assume that the fee for each class is $59. The program must then output the student's bill, including total credit hours in which they have enrolled, the totals for for-credit classes and for non-credit classes, and the total for all classes, and finally, how much they owe after financial aid has been applied. In this program, declare the following constants: Name CREDIT HOURS PER CLASS Data-type Value integer 3 FEE PER CREDIT HOUR floating 159 NON CREDIT CLASS FEE floating 59 In this program, declare the following variables: Name creditClasses nonCreditClasses financialAid Data-type integer integer floating totalCreditHours…arrow_forwardThe Students Club is offering a new travelling package or membership. People can choose either one of three packages : a) business, b) family or c)single package. Each packages have different prices for monthly subscription. A business package is RM40, a family package is 20 and single package is 30. People can choose any package and duration-in-month for subscription. The program will calculate and display the total of payment. The program can be repeated as long as the option to exit is not selected. Any invalid input will result in an error message to retry. Create a program that have at least three user defined functions. Three of the functions are having the return type void and calculating the total of each packages. The display is done in separate function.arrow_forwardMobile Service ProviderA mobile phone service provider has three different subscription packages for itscustomers:Package A: For $39.99 per month 450 minutes are provided. Additional minutes are$0.45 per minute.Package B: For $59.99 per month 900 minutes are provided. Additional minutes are$0.40 per minute.Package C: For $69.99 per month unlimited minutes provided.Write a program that calculates a customer’s monthly bill. It should ask which packagethe customer has purchased and how many minutes were used. It should then displaythe total amount due.Input Validation: Be sure the user only selects package A, B, or C.arrow_forward
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr