Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

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...

1 answer below »
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.
Answered 16 days After Feb 10, 2021

Solution

Rachana answered on Feb 27 2021
149 Votes
CruzXRocketInc/.vs/CruzXRocketInc/v14/.suo
CruzXRocketInc/CruzXRocketInc.sln
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CruzXRocketInc", "CruzXRocketInc.vcxproj", "{501AEEF2-9259-486C-852F-CDE30E97BEDE}"
EndProject
Global
    GlobalSection(SolutionConfigurationPlatforms) = preSolution
        Debug|x64 = Debug|x64
        Debug|x86 = Debug|x86
        Release|x64 = Release|x64
        Release|x86 = Release|x86
    EndGlobalSection
    GlobalSection(ProjectConfigurationPlatforms) = postSolution
        {501AEEF2-9259-486C-852F-CDE30E97BEDE}.Debug|x64.ActiveCfg = Debug|x64
        {501AEEF2-9259-486C-852F-CDE30E97BEDE}.Debug|x64.Build.0 = Debug|x64
        {501AEEF2-9259-486C-852F-CDE30E97BEDE}.Debug|x86.ActiveCfg = Debug|Win32
        {501AEEF2-9259-486C-852F-CDE30E97BEDE}.Debug|x86.Build.0 = Debug|Win32
        {501AEEF2-9259-486C-852F-CDE30E97BEDE}.Release|x64.ActiveCfg = Release|x64
        {501AEEF2-9259-486C-852F-CDE30E97BEDE}.Release|x64.Build.0 = Release|x64
        {501AEEF2-9259-486C-852F-CDE30E97BEDE}.Release|x86.ActiveCfg = Release|Win32
        {501AEEF2-9259-486C-852F-CDE30E97BEDE}.Release|x86.Build.0 = Release|Win32
    EndGlobalSection
    GlobalSection(SolutionProperties) = preSolution
        HideSolutionNode = FALSE
    EndGlobalSection
EndGlobal
CruzXRocketInc/CruzXRocketInc.vcxproj



Debug
Win32


Release
Win32


Debug
x64


Release
x64



{501AEEF2-9259-486C-852F-CDE30E97BEDE}
CruzXRocketInc
8.1



Application
true
v140
MultiByte


Application
false
v140
true
MultiByte


Application
true
v140
MultiByte


Application
false
v140
true
MultiByte






















Level3
Disabled
true




Level3
Disabled
true




Level3
MaxSpeed
true
true
true


true
true




Level3
MaxSpeed
true
true
true


true
true








CruzXRocketInc/CruzXRocketInc.vcxproj.filters



{4FC737F1-C7A5-4376-A066-2A32D752A2FF}
cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx


{93995380-89BD-4b04-88EB-625FBE52EBFB}
h;hh;hpp;hxx;hm;inl;inc;xsd


{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcri
on-ms




Source Files


CruzXRocketInc/Debug/CruzXRocketInc.exe
CruzXRocketInc/Debug/CruzXRocketInc.ilk
CruzXRocketInc/Debug/CruzXRocketInc.log
main.cpp
c:\users\r8433955\onedrive - saint-gobain\documents\visual studio 2015\projects\cruzxrocketinc\main.cpp(134): warning C4244: '=': conversion from 'double' to 'int', possible loss of data
c:\users\r8433955\onedrive - saint-gobain\documents\visual studio 2015\projects\cruzxrocketinc\main.cpp(135): warning C4244: '=': conversion from 'double' to 'int', possible loss of data
c:\users\r8433955\onedrive - saint-gobain\documents\visual studio 2015\projects\cruzxrocketinc\main.cpp(155): warning C4244: '=': conversion from 'double' to 'int', possible loss of data
c:\users\r8433955\onedrive - saint-gobain\documents\visual studio 2015\projects\cruzxrocketinc\main.cpp(156): warning C4244: '=': conversion from 'double' to 'int', possible loss of data
CruzXRocketInc.vcxproj -> C:\Users\R8433955\OneDrive - Saint-Gobain\Documents\Visual Studio 2015\Projects\CruzXRocketInc\Debug\CruzXRocketInc.exe
CruzXRocketInc.vcxproj -> C:\Users\R8433955\OneDrive - Saint-Gobain\Documents\Visual Studio 2015\Projects\CruzXRocketInc\Debug\CruzXRocketInc.pdb (Partial PDB)
CruzXRocketInc/Debug/CruzXRocketInc.pd
CruzXRocketInc/Debug/CruzXRocketInc.tlog/CL.command.1.tlog
^C:\USERS\R8433955\ONEDRIVE - SAINT-GOBAIN\DOCUMENTS\VISUAL STUDIO 2015\PROJECTS\CRUZXROCKETINC\MAIN.CPP
c /ZI /nologo /W3 /WX- /sdl /Od /Oy- /D _MBCS /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"DEBUG\\" /Fd"DEBUG\VC140.PDB" /Gd /TP /analyze- C:\USERS\R8433955\ONEDRIVE - SAINT-GOBAIN\DOCUMENTS\VISUAL STUDIO 2015\PROJECTS\CRUZXROCKETINC\MAIN.CPP
CruzXRocketInc/Debug/CruzXRocketInc.tlog/CL.read.1.tlog
^C:\USERS\R8433955\ONEDRIVE - SAINT-GOBAIN\DOCUMENTS\VISUAL STUDIO 2015\PROJECTS\CRUZXROCKETINC\MAIN.CPP
C:\WINDOWS\GLOBALIZATION\SORTING\SORTDEFAULT.NLS
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\VC\BIN\1033\CLUI.DLL
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\VC\BIN\MSPDBSRV.EXE
C:\WINDOWS\SYSTEM32\TZRES.DLL
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\VC\INCLUDE\IOSTREAM
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\VC\INCLUDE\ISTREAM
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\VC\INCLUDE\OSTREAM
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\VC\INCLUDE\IOS
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\VC\INCLUDE\XLOCNUM
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\VC\INCLUDE\CLIMITS
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\VC\INCLUDE\YVALS.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\VC\INCLUDE\XKEYCHECK.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\VC\INCLUDE\CRTDEFS.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\VC\INCLUDE\VCRUNTIME.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\VC\INCLUDE\SAL.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\VC\INCLUDE\CONCURRENCYSAL.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\VC\INCLUDE\VADEFS.H
C:\PROGRAM FILES (X86)\WINDOWS KITS\10\INCLUDE\10.0.10240.0\UCRT\CORECRT.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\VC\INCLUDE\USE_ANSI.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\VC\INCLUDE\LIMITS.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\VC\INCLUDE\CMATH
C:\PROGRAM FILES (X86)\WINDOWS KITS\10\INCLUDE\10.0.10240.0\UCRT\MATH.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\VC\INCLUDE\XTGMATH.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here