Hello,
This question is related to JAVA.
Please don't write with your handwriting, please!
Write a program that estimates the rental price for a house (including the tax). The program should ask the user to select the type of house (1. Flat - 2. Villa).
If the user selects Flat:
The program should ask the user about the number of rooms (How many rooms do you need? Minimum 2 - maximum 7). The user should insert a number between 2 and 7. If the user inserts any other input, the system will display a message (Invalid input).
The program should then ask the user about the features (Which features would you like to have?) and display the features' menu (a. Storage - b. Driver room - c. I need both storage and driver room - d. I don't need any additional features).
To calculate the price: consider 25000 SR for a flat with 2 rooms, and for each extra room, add 5000 SR. Add 2000 SR if the user needs storage, and add 1000 SR if the user needs a driver room.
If the user selects Villa:
The program should ask the user about the number of rooms (How many rooms do you need? Minimum 3 - maximum 9). The user should insert a number between 3 and 9. If the user inserts any other input, the system will display a message (Invalid input).
The program should then ask the user about the features (Which features would you like to have?) and display the features' menu (a. Swimming Pool - b. Garden - c. I need both swimming pool and garden - d. I don't need any additional features).
To calculate the price: consider 50000 SR for a villa with 3 rooms, and for each extra room, add 8000 SR. Add 7000 SR if the user needs a swimming pool, and add 5000 SR if the user needs a garden.
Finally, calculate 5% tax for the total price. Then, print the final estimation price message: "The rental estimation price is: 0.0 SR." If the user inserted invalid input, the total price will be zero.
Note: Please do not use any iterations (for or while loops) in this question.