Question: in java lenguaje It is the year 2045, the CruzXRocketInc. (CRI) has recently made its CRI-9single use Rocket Systems (RS) available to the general public.
in java lenguaje
It is the year 2045, the CruzXRocketInc. (CRI) has recently made its CRI-9single use Rocket Systems (RS) available to the general public. Anyone can purchase the RSs to travel to the nearest celestial bodies (government permits and fees not included). The company has asked you to write a program that calculates the amount (in $) the customers owe for the purchase of the RSs. First, your program should welcome the customer with some fancy message. Then, the program must present the customer with a menu with two options as follows:
Please Enter One of the Following:
- Purchase CRI-9 RSs
- Quit
- If the customer chooses option 1, prompt them asking how many RSsthey would like to purchase AND if they are members of the Interplanetary Travelers Club. Display the amount they owe, including some fancy thank you message, keeping the following in mind:
- If customer purchases 4RSs or less, the cost of each RS is $1.0 * 107.
- For all purchases above 4RSs (5 and above), the cost of each RS is $8.0 * 106.
- If the customer is a member of the Interplanetary Travelers Club, they receive an extra 10% discount and free fuel for one of the RSs (make sure to display a message informing the customer of this).
- Customers cannot be allowed to enter a number smaller than 1.
- The program will redisplay the menu until the customer enters option 2 (hint: use a loop).
- If the customer enters option 2, Quit the program.
- Validate for incorrect inputs (Hint: use while loops). If the user enters incorrect answers 5 times quit the program.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
