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

  Foreign company acquisition

Acquisition by a foreign company and the effects of that decision and the results of foreign exchange in Euro and the exchange rate differences.

  Financial management for profit and non profit organizations

In this essay, we are going to discuss the issues of financial management in a non-profit organisation.

  Method for estimating a venture''s value

Evaluate venture's present value, cash and surplus cash and basic venture capital.

  Replacement analysis

This document show the Replacement Analysis of modling machine. Is replacement give profit to company or not?

  Business finance task - capital budgeting

Your company is considering using the payback period for capital-budgeting. Discuss the advantages and disadvantages of this technique.

  Analysis of the investment

In this project, you will focus on one of these: the additional cost resulting from the purchase of an apple press (a piece of equipment required to manufacture apple juice).

  Conduct a what-if analysis

Review the readings and media for this unit, including the Anthony's Orchard case study media. Familiarise yourself with the Anthony's Orchard company and its current situation.

  Determine operational expenditures

Organisations' behaviour is guided by financial data. In the short term, such data will help determine operational expenditures; in the long term, historical data may help generate forecasts aimed at determining strategic plans. In both instances.

  Personal financial management

How much will you have left over each half year if you adopt the latter course of action?

  Sources of finance for expansion into new foreign markets

A quoted company is considering several long-term sources of finance for expansion into new foreign markets.

  Long term financial planning

This assignment is designed for analyze Long term financial planning begins with the sales forecast and the key input in the long term fincial planning.

  Explain the role of fincial manager

This assignment explain the role of fincial manager, function of manger. And what are the motives of financial manager.

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