Calculate and display the weight of the object

Assignment Help Basic Computer Science
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.

Reference no: EM13761796

Questions Cloud

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

Reviews

Write a Review

Basic Computer Science Questions & Answers

  State of six conditional flags after instructions executes

Forecast the state of six 8086 conditional flags after each of instructions which are given below executes. MOV AL,AH b. ADD BL,CL c. ADD CL,DH d. OR CX,BX

  Design a spreadsheet to understand required funds

Using the parameters in (a), construct a graph showing how the amount required for the order would vary if the unit cost of a package of bandages rose by $0.25, $0.50, and so on, up to $3.00 per package.

  First integer of input refers to the total weight the ship

First integer of input refers to the total weight the ship can carry. Second integer refers to the number of cargo present and the rest of the integers represents the individual weight of the cargo

  Explain the three general sources of security threats

Explain the three general sources of security threats

  What is the difference between intrinsic and acquired value

What is the difference between intrinsic value and acquired value?

  What are ids and ips

Write a 2-3 page paper that fully answers the questions.

  Implementation of the database and manipulation of data

After reviewing all the designs, defining the scope and long deliberations with Dr Zen Fuller, the design of the database has been finalised. In this assignment you will use a ‘simplified’ database model as depicted by the ERD in Figure 1.

  Explain purpose or benefits of it steering committee

Explain the purpose of an IT steering committee, and identify the benefits of the committee.

  What is the message

The following padded ASCII-coded message is stored in successive memory locations in a computer.

  Facilitate data exchange functionality in a cloud service en

Database solutions today must be able to adapt and integrate among various computing applications. Determine at least three forms of database connectivity methods that can be used as an interface between applications. For each method you have ..

  How many other machines is each machine equivalent to

Every turing machine is equivalent to some other machine in our enumeration. why? how many other machines is each machine equivalent to? how many times is each turing-computable function represented in our enumeration? be sure to justify your answ..

  Network administration processes update

Network Administration Processes Update

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd