Menu

[Solved] Number 7 Mile Per Gallon Write C Program Using Textpad 7 Module Require Q37274519

number 7 Mile Per Gallon . Write a C++ program using textpad 7and module require
Dsign a program that will ask the user to enter the amount of a purchase. The program should then compute the state and countDsign a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county sales tax. Assume the state sales tax is 4 percent and the county sales tax is 2 percent. The program should display the amount of the purchase, the state sales tax, the county sales tax, the total sales tax, and the total of the sale (which is the sum of the amount of pur- chase plus the total sales tax). Hint: Use the value 0.02 to represent 2 percent, and 0.04 to represent 4 percent. 7. Miles-per-Gallon A car’s miles-per-gallon (MPG) can be calculated with the following formula: MPG Miles drivenlGallons of gas used Design a program that asks the user for the number of miles driven and the gal- lons of gas used. It should calculate the car’s miles-per-gallon and display the result on the screen. 8. Tip, Tax, and Total Design a program that calculates the total amount of a meal purchased at a restaurant. The program should ask the user to enter the charge for the food, and then calculate the amount of a 15 percent tip and 7 percent sales tax. Display each of these amounts and the total. Show transcribed image text Dsign a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county sales tax. Assume the state sales tax is 4 percent and the county sales tax is 2 percent. The program should display the amount of the purchase, the state sales tax, the county sales tax, the total sales tax, and the total of the sale (which is the sum of the amount of pur- chase plus the total sales tax). Hint: Use the value 0.02 to represent 2 percent, and 0.04 to represent 4 percent. 7. Miles-per-Gallon A car’s miles-per-gallon (MPG) can be calculated with the following formula: MPG Miles drivenlGallons of gas used Design a program that asks the user for the number of miles driven and the gal- lons of gas used. It should calculate the car’s miles-per-gallon and display the result on the screen. 8. Tip, Tax, and Total Design a program that calculates the total amount of a meal purchased at a restaurant. The program should ask the user to enter the charge for the food, and then calculate the amount of a 15 percent tip and 7 percent sales tax. Display each of these amounts and the total.

Expert Answer


Answer to number 7 Mile Per Gallon . Write a C++ program using textpad 7 and module require… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *