Placeholder

CSIS 111 Module Week 7 ASSIGNMENT ARRAYS

$19.00

Description

Use functional decomposition to write a C++ program that asks the user to enter his or her weight and the name of a planet. Use an enumerated type called planetType to represent the planets and use a switch statement that takes as its condition a planetType variable. The program, via the switch statement, then outputs how much the user would weigh on that planet. The following table gives the factor by which the weight must be multiplied for each planet.
Your program must have the following functions in it: GetUserInput(), ConvertInputToPlanetType(), and OutputWeight() (your switch statement must be in OutputWeight()). I will let you determine what each function’s parameters and return types should be. The program will output an error message if the user does not type a correct planet name. The prompt and the error message will make it clear to the user how a planet name must be entered.
Use proper formatting and appropriate comments in your code. The output must be labeled clearly and formatted neatly.
The following table gives the factor by which the weight must be multiplied for each planet:
Submit C++ Programming Assignment 7 by 11:59 p.m. (ET) on Monday of Module/Week 7.
SCREENSHOTS
SOLUTION
PAYMENT
CSIS 111 Week 7
CSIS 111 Assignment 7
The solution includes Visual Studio project, report, screenshots.
Attachments [Move over files to preview content of those files]
CSIS_111_Week_7.zip (19.48 MB)
CSIS111-Week-7-Screenshot-1.png
CSIS111-Week-7-Screenshot.png
Firstname_Lastname_Assignment7_Report.docx
Visual Studio Project
CSIS111Assignment7
.vs
CSIS111Assignment7
v16
.suo
Browse.VC.db
ipch
AutoPCH
7692be1340e5f1d1
ASSIGNMENT7.ipch
e7c4f9d5e8c5f911
ASSIGNMENT7.ipch
CSIS111Assignment7
Assignment7.cpp
CSIS111Assignment7.vcxproj
CSIS111Assignment7.vcxproj.filters
CSIS111Assignment7.vcxproj.user
Debug
Assignment7.obj
assignment7.obj.enc
CSIS111A.946102cd.tlog
CSIS111Assignment7.lastbuildstate
CSIS111Assignment7.exe.recipe
CSIS111Assignment7.ilk
vc142.idb
vc142.pdb
CSIS111Assignment7.sln
Debug
CSIS111Assignment7.exe
CSIS111Assignment7.pdb
Preview Assignment7.cpp
xxxxx xxx xxxxxx_xxx = 10;
xxxxx xxxxxx xxxxxxxxxx[xxxxxx_xxx] = { “xxxxxxx”, “xxxxx”, “xxxxx”, “xxxx”, “xxxx”, “xxxxxxx”, “xxxxxx”, “xxxxxx”, “xxxxxxx”, “xxxxx” };
//xxxxxxxx xxxxxxxxxx
xxxx xxxxxxxxxxxx(xxxxxx& xxxxxxxxxx, xxxxxx& xxxxxxxxxxx);
planetType ConvertInputToPlanetType(string str); void OutputWeight(planetType planet, double weight);
int main() { //In cout statement below SUBSTITUTE your name and lab number cout << "Firstname Lastname -- Assignment #7" << endl << endl; //Variable declarations double userWeight = 0; string inputPlanet; planetType planet; //Program logic xxxxx (xxxx) { xxxxxxxxxxxx(xxxxxxxxxx, xxxxxxxxxxx); xxxxxx = xxxxxxxxxxxxxxxxxxxxxxxx(xxxxxxxxxxx); xx (xxxxxx == xxxxxxxxxxxxx) { xxxx << "xxxxxxx xxxx, xxxxxx xxxx xxxxxx xx xxx xx [xxxxxxx, xxxxx, xxxxx, xxxx, xxxx, xxxxxxx, xxxxxx, xxxxxx, xxxxxxx, xxxxx]" << xxxx; } Price: $19 Buy Now Checkout Added to cart Add to Cart Checkout Added to cart You May Also Like: CSIS 111 Module Week 1 ASSIGNMENT BASIC ELEMENTS CSIS 111 Module Week 2 ASSIGNMENT INPUT OUTPUT CSIS 111 Module Week 3 ASSIGNMENT CONTROL STRUCTURES IF ELSE CSIS 111 Module Week 4 ASSIGNMENT CONTROL STRUCTURES WHILE FOR DO CASE CSIS 111 Module Week 5 ASSIGNMENT USER DEFINED FUNCTIONS CSIS 111 Module Week 6 ASSIGNMENT USER DEFINED SIMPLE DATA TYPES STRING TYPES CSIS 111 Module Week 8 ASSIGNMENT BATTLE SHIP GAME

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.