in programming C++

write the code to calculate the price of the hotel room for a number of nights that the user wants to stay in.
the price of the room per day is $149.00 ask the user for how many nights he or she wants to stay in the hotel .
after you find the total, apply a discount according to the rules: if the user entered 4 to 9 night, one night is free. For example: if user entered between 4 to 9 nights, you need to calculate the payment only for 5 nights.
If user entered 10 or more night,2 night are free. the program should display the total price for the number of night that the user entered, after the discount has been applied.
format the total as a decimal number with tow digits after the decimal point.
If an invalid number of nights is entered (less than 1), the program should display a message asking the user to enter a valid number of nights.

READ ALSO :   Consider a book store in your area.