Write him a program that will perform necessary conversions

Assignment Help Financial Management
Reference no: EM132382363

Question

For this portion of the lab, you will design the solution to a simple program that uses sequential statements. (That means DO NOT use loops, functions, if/else, a menu etc...) You may draw a flowchart or write pseudocode. If you draw a flowchart, you will scan the drawing and submit it as a pdf or jpeg file.

Design a solution to the following problem:

Your cousin is visiting from England and it is getting very annoying for you to constantly convert US measures to metric measures. After all, only 95% of the world uses the metric system. Using your programming prowess, you decide to write him a program that will perform the necessary conversions.

(The program design will convert ALL 5 measurements) But, wait, someone once told you that "hours of planning can save you weeks of programming." Keeping that in mind, you will first design a program that performs the following conversions:

a. Miles to kilometers - one mile = 1.6 kilometers

b. Fahrenheit to Celsius - the formula to calculate is (F - 32) * 5/9 where F is the Fahrenheit temperature

c. Gallons to liters - one gallon = 3.9 liters

d. Pounds to kilograms - one pound = 0.45 kilograms

e. Inches to centimeters - one inch = 2.54 centimeters

(These are rounded - Please do not search for the exact conversion formula, just use what is provided here.)

When you design and code this program follow these directions:

1. You must prompt the user for input. As an example: You may say "William, please tell me how many miles you want converted to kilometers."

2. You will then store the input value in a variable

3. You will perform the conversion in an arithmetic expression. As an example to convert from inches to centimeters you will multiply the inches by 2.54, which is the number of centimeters in an inch. You will then store the result of this multiplication in some variable named inchesToCm.

4. After the calculation and assignment is complete, you will print the results. As an example, if you are converting 3 inches to centimeters, your output may resemble the following: 5. William, 3 inches is equal to 7.62 centimeters. Isn't that amazing

6. Desk check your design and ensure that it does what it is meant to do

7. You will write the program using ONLY sequential statements ( no loops, if/else, functions)

8. You will convert ALL 5 measurements in ONE program.

Reference no: EM132382363

Questions Cloud

Explain if the environment is a stakeholder : Explain if the environment is a stakeholder or not and why or why not? Use either support from the textbook or alternate academic sources?
Overview of academic literature relating to communication : An overview of academic literature relating to communication practices/styles/recent research about business communication in Australia
BUGEN1502 Business Statistics Assignment : BUGEN1502 Business Statistics Assignment help and solution, Federation University, Assessment help, Assignment: Confidence Interval and Hypothesis testing
Prepare slides on Communication and the US Mass Media : Prepare 7 slides on Acculturation, Communication, and the U.S. Mass Media: The Experience of an Iranian Immigrant
Write him a program that will perform necessary conversions : Your cousin is visiting from England and it is getting very annoying for you to constantly convert US measures to metric measures.
Vice president of global marketing for mtv : They're knocking on the door all the time." How might Clark's perceptions that he has a job many others desire contribute to his job satisfaction?
Do you think the tangible or intangible assets : Do you think the tangible or intangible assets are more important in food service company and why?
What is the financial implications reverse logistics : What is the financial implications reverse logistics has on a retailer's bottom line. Please provide an example.
Calculate square or rectangle edges and center : How to calculate square or rectangle edges and center. You just need one formula for edges and one formula for centers.

Reviews

Write a Review

Financial Management Questions & Answers

  Companies contribute to local communities or broader society

In what ways do your companies contribute to local communities or broader society?

  Received a donation to fund honors student awards

The math department has received a donation to fund honors student awards.

  Personality is usually described in terms of traits

People's distinct individual personalities influences their buying behavior. Personality is usually described in terms of traits.

  How many years do these bonds have left until they mature

Shinoda Corp. has 8 percent coupon bonds making annual payments with a YTM of 7.3 percent. The current yield on these bonds is 7.65 percent. How many years do these bonds have left until they mature?

  What is the purchase price of the equipment

The Macy Co. is considering the purchase of some new equipment. What is the purchase price of the equipment?

  End of project non-operating cash flows-initial investment

XYZ is interested in buying a new machine which is expected to cost $85,000. In addition, the company will pay $15,000 in shipping and $5,000 in installation costs. The MACRS category is five years and the company expects to sell the machine at 25% a..

  What was sam companys sales

Net Income$93,500 COGS$377,200 Gross Margin$162,100. Based on the information provided, what was Sam Company's Sales?

  Trust fund today in order to fund series of annual payments

How much does Fred have to put into the trust fund today in order to fund the series of annual payments?

  Calculate the promised yield on bond

You notice in the WSJ a bond that is currently selling in the market for $1,070 with a coupon of 11% and a 20-year maturity. Using annual compounding, calculate the promised yield on this bond.

  Regarding cash basis breakeven

Which of the following is correct regarding cash basis breakeven?

  Concludes that transfer isolates the transferred asset

Outside counsel for DrugKing concludes that the transfer isolates the transferred asset

  Firm needs to plow back earnings to fuel growth

No dividends will be paid on the stock over the next nine years, because the firm needs to plow back its earnings to fuel growth.

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