Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hello This question is related to JAVA Please don't write with your handwriting please! Write a program that estimates the rental price for the house
Hello
This question is related to JAVA
Please don't write with your handwriting please!
Write a program that estimates the rental price for the house (including the tax). The program should ask the user to select the type of the 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-7 lf the user inserts any others input, the system will display a massage (Invalid input). The program should ask the user about the features (Which features would you like to have?) and displays features menu (a Storage - b. Driver room - c. Ineed both storage and driver room- d. I don't need to have more features) To calculate the price: consider 25000 SR for the flat with 2 rooms and for each extra room add more 5000 SR. Add more 2000 SR, if the user needs storage. Add more 1000 SR, if the user needs 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-9. If the user inserts any others input, the system will display a massage (Invalid input). The program should ask the user about the features (Which features would you like to have?) and displays features menu (a Swimming Pool b. Garden - c. I need both swimming pool and garden - d. I don't need to have more features) To calculate the price: consider 50000 SR for the villa with 3 rooms and for each extra room add more 8000 SR. Add more 7000 SR, ifthe user needs swimming pool. Add more 5000 SR, if the user needs garden. Finally, calculate 5% tax for the total price. Then, print the final estimation price message The rental estimation price is: 0.0 SR". Ifthe user inserted invalid input the total price will be Zero Note: Please, do not use any iterations (for or wh?le loops) in thisStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started