C++ Programming It is the year 2035, the Quantum Space Co. (QSC) has recently made its QSC-1.2 multiple use Quantum Space Transportation Systems (QSTS) available to the public. Anyone can purchase the...

Attached file c++


C++ Programming It is the year 2035, the Quantum Space Co. (QSC) has recently made its QSC-1.2 multiple use Quantum Space Transportation Systems (QSTS) available to the public. Anyone can purchase the QSTSs to travel to the nearest celestial bodies (or distant galaxies). The company has asked you to write a program that calculates the amount (in $) the customers owe for the purchase of the QSTSs. 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: 1- Purchase QSC-1.2 QSTSs 2- Exit · If the customer chooses option 1, prompt them asking how many QSTSs they would like to purchase AND if they are members of the Quantum Travelers Club. Display the amount they owe, including some fancy thank you message, keeping the following in mind: · If customer purchases 1 - 4 QSTSs, the cost of each QSTS is $1.0 * 107. · For all purchases above 4 QSTSs (5 and above), the cost of each QSTS is $8.0 * 106. · If the customer is a member of the Quantum Travelers Club, they receive an extra 20% discount and free lifetime maintenance for 1 of the QSTSs quantum drive engine (make sure to display a message informing the customer of this). · Customers cannot be allowed to enter a number smaller than 1. · Validate every input and reset the count every time, not 5 globally but 5 for every input from the user · The program will redisplay the menu until the customer enters option 2 (hint: use a loop). · If the customer enters option 2, Exit the program. · Validate for incorrect inputs (Hint: use while loops). If the user enters incorrect answers 5 times quit the program. · Enjoy! Sample outputs (please don’t make yours exactly like this one, use some creativity): ************************************************** ***** Welcome to Quantum Space Co. Online Store ***** ************************************************** Please Enter One of the Following: 1- Purchase QSC-1.2 QSTSs 2- Exit 1 [Enter] How Many QSC-1.2 QSTSs Would You Like to Purchase? 10 [Enter] Are You a Member of the Quantum Travelers Club (y/n)? y [Enter] Thank You for Your Purchase: Your Total is $74,000,000.00. You Saved $16,000,000.00 Today!!! *** You Get Free lifetime maintenance for 1 of the QSTSs quantum drive engines*** Your voucher will arrive with the delivery of your first QSTSs. Please Enter One of the Following: 1- Purchase QSC-1.2 QSTSs 2- Exit 2 [Enter] Press any key to continue …
Oct 16, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here