Reference no: EM13761796
Objective: Become more familiar with C++ I/O, computations in C++, and the C++ development environment you are using for this class.
Description: Write a program that calculates the weight of an object on the Earth, Moon, and Mars. Specifically, your final program will choose from a menu to determine the gravity (m/s2) an object is on, then will read the mass of the object (kg), then calculate and display the weight (N) of the object on that body.
Useful information:
W = mg
Body
|
g (m/s2)
|
Earth
|
9.81
|
Moon
|
1.63
|
Mars
|
3.71
|
Outline of solution:
1. Display standard output information using the ShowProgramHeader 0 function to print your required output information. (Remember to call the ShowProgramHeader() function from from your main function.)
2. Display body choice menu.
3. Prompt user for body (input).
4. Read body choice (a number is probably easiest).
5. Prompt user for the mass of the object (input).
6. Read the mass.
7. Calculate the weight (body dependent).
8. Print input values and mass (show all units).
Deliverables:
- Program-fully documented.
- Output:
- Show intermediate steps in the development of your program.
- Test your final program using at least three different values for the mass: 10, 50, and 250 kg.
If you have any questions regarding this assignment, do not hesitate to contact me. Start working on this assignment as soon as possible, so that you have plenty of time to get help if you need it.
What does the lord offer his sheep
: What does the Lord offer his sheep, and what must the sheep do in return, in Psalm 23?Psychological Realism is a method of writing a story in whic?
|
The united states and has sales opportunities in a foreign
: Assume the role of Marketing Manager. Select a product (good or service) that is sold in the United States and has sales opportunities in a foreign market. Apply your critical thinking skills and the knowledge you have acquired throughout this course..
|
Product versus period costs and fixed versus variable costs
: At a dinner party you hosted, a friend of yours who is a college accounting professor-upon hearing you had started your own business-told you to make sure to properly categorize product versus period costs and fixed versus variable costs. The frie..
|
Draw an aoa network diagram representing the project
: Draw an AOA network diagram representing the project. Put the node numbers in circles and draw arrows from node to node, labeling each arrow with the activity letter and estimated time.
|
Calculate and display the weight of the object
: Write a program that calculates the weight of an object on the Earth, Moon, and Mars. Specifically, your final program will choose from a menu to determine the gravity then calculate and display the weight of the object on that body.
|
What is the highest expense for business operations
: 1.What is the highest expense for business operations? How can managers monitor and keep this cost as low as possible? Explain. 2. What is the highest expense for business materials? How can managers monitor and keep this cost as low as possible? Exp..
|
Reorganizations and consolidated tax returns
: Suppose you are a CPA, and you have a corporate client that has been operating for several years. The company is considering expansion through reorganizations.
|
Diesel engine designer watches can be extremely sturdy
: Diesel engine is surely an Italian firm as their principal earnings emanates from offering apparel. These are renowned pertaining to Skinny jeans and also other equipment which have been geared towards diesel watches impacting your junior. The cor..
|
Encryption requirements as stated in the law
: Identify ONE law, either a US Federal Law or a US state law, that requires the use of encryption to protect either consumer or corporate information from unauthorized disclosure. Write a 150+ word plain English summary in which you address the fol..
|