MIAMI DADE COLLEGE
School of Engineering and Technology
COP XXXXXXXXXXIntroduction to C++ Programming
Assignment 4
Due On: 11/21/2020
It is the year 2047, the CruzX Rocket Inc. business has been booming since the introduction of the CRI-9 single use Rocket Systems (RS) to the public two years earlier. Orders are coming in from all over the world and the company has asked you to modify the program you wrote for them to include a user interface in two different languages.
Modify the program you wrote for assignment 3 to do the following:
1. The program will ask the user to choose between English and another language of your choice (stick to languages that use Latin characters Spanish, Italian, French, Portuguese, etc.), validate for inco
ect inputs (use while loop, if the user enters inco
ect answers 5 times, default to English).
2. Ask for the language only once!!! Display everything after this point (including menu, messages, etc.) in the chosen language.
3. The program must welcome the customer with some fancy message.
4. Then, the program must present the user with a menu with two options as follows (adjust to use appropriate language):
Please Enter One of the Following:
1- Purchase CRI-9 RSs
2- Quit
Validate for inco
ect inputs (use while loops). If the user enters inco
ect answers 5 times quit the program.
5. If the customer enters option 1, do the same as in assignment 3 (prompt for number of STSs, membership in the Interplanetary Travelers Club, output amount owed and savings, etc.). Adjust for language as appropriate.
6. The program will redisplay the menu until the customer enters option 2 (use do…while loop).
7. Option 2 will quit the program
Your program must comply with the following constraints:
1. Must declare at least the following 4 functions:
void displayWelcomeMessage(int);
welcome the customer with some fancy message
int getLanguage();
ask the user to choose between English and another language
int getMainMenuSelection(int);
present user with a menu with two options (Purchase/Quit)
void processRSPurchase(int);
process purchase RS option
2. The main function must look exactly as shown below:
int main()
{
int language = 0, menuSelection = 0;
language = getLanguage();
displayWelcomeMessage(language);
do
{
menuSelection = getMainMenuSelection(language);
if (menuSelection == 1)
{
processRSPurchase(language);
}
} while (menuSelection != 2);
eturn 0;
}
Submission guidelines: Send your Assignment4.cpp file as attachment to my email ( XXXXXXXXXX), with the subject Assignment 4.
Note: Don’t forget the header.