Write a program that prompts the user to enter the cost of renting one room,the number of rooms booked,the number of days the rooms are booked and the sales tax (as a percent). I am confused on how to start
3 answers
write a prompt, then read in a real, an integer, and a real
Write a program that prompts the user to enter the cost of renting one room, the number of rooms booked, the number of days the rooms are booked, and the sales tax (as a percent). The program outputs the cost of renting one room, the discount on each room as a percent, the number of rooms booked, the number of days the rooms are booked, the total cost of the rooms, the sales tax, and the total billing amount. Your program must use appropriate named constants to store special values such as various discounts.
Write a program in C++, which ask the user to enter time as (number of hours, minutes, and seconds) then calculate the total number of seconds for the entered time. Display the results by repeating the number of hours, minutes, and seconds the user entered and then the calculated total number of seconds.