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

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.

To start writing the program, you can follow these steps:

1. Prompt the user to enter the cost of renting one room.
- Use the `input()` function to get the user's input for the room cost.
- Store the input value in a variable, let's say `room_cost`.

2. Prompt the user to enter the number of rooms booked.
- Use the `input()` function again to get the user's input for the number of rooms booked.
- Store the input value in a variable, let's say `num_rooms`.

3. Prompt the user to enter the number of days the rooms are booked.
- Use the `input()` function once more to get the user's input for the number of days booked.
- Store the input value in a variable, let's say `num_days`.

4. Prompt the user to enter the sales tax as a percentage.
- Use the `input()` function to get the user's input for the sales tax.
- Store the input value in a variable, let's say `sales_tax`.

5. Calculate the total cost before tax.
- Multiply the `room_cost` by the `num_rooms` and `num_days`.

6. Calculate the total sales tax.
- Multiply the total cost before tax by the `sales_tax` divided by 100.

7. Calculate the final total cost including tax.
- Add the total cost before tax and the total sales tax together.

8. Display the final total cost to the user.
- Use the `print()` function to display the result.

Here's an example code snippet in Python:

```python
room_cost = float(input("Enter the cost of renting one room: "))
num_rooms = int(input("Enter the number of rooms booked: "))
num_days = int(input("Enter the number of days the rooms are booked: "))
sales_tax = float(input("Enter the sales tax as a percentage: "))

total_cost_before_tax = room_cost * num_rooms * num_days
total_sales_tax = total_cost_before_tax * (sales_tax / 100)
final_total_cost = total_cost_before_tax + total_sales_tax

print("The final total cost including tax is:", final_total_cost)
```

Remember to add error handling to handle cases where the user enters invalid input or exceptions are raised during the calculations.