Write a program to converts temperatures

Assignment Help Programming Languages
Reference no: EM131320651

Assignment

Write a program to converts temperatures between Fahrenheit and Celsius. Your program should print a brief message describing what it does, and then prompt the user to enter "1" if they would like to convert a Fahrenheit number to Celsius, or "2" to convert a Celsius number to Fahrenheit. Then, allow the user to enter the number to be converted. Your program should call a function to perform the conversion and display the resulting value to the screen.

Helpful Hints:

· C= (5.0/9.0 * (F-32)); C = temperature in degrees Celsius, F = temperature in degrees Fahrenheit

· F= (9.0/5.0 * C+32); C = temperature in degrees Celsius, F = temperature in degrees Fahrenheit

· When you integer division, the result is always an integer so all decimal numbers are truncated and not rounded. For example, 5/6=0 when it comes to integers. Keep this in mind when doing your conversions. Also, order of operations count!

Requirements:

· Include a flowchart for your program. Be sure that you create a separate flowchart diagram for each function - In this case, you should have three flowchart diagrams.

· Your program must have two separate conversion functions: one to convert Fahrenheit to Celsius and one to convert Celsius to Fahrenheit.

· Your program must be well documented (ie use comments!)

· Your program should be user friendly. That means it should handle incorrect user input and output should be labeled (Don't just print the number; display a clear message, such as "The temperature in Celsius is 45")

Reference no: EM131320651

Questions Cloud

Explain why one has lower energy while other has a higher : The two lowest-energy wave functions of the electron bund to the two protons are symmetric and antisymmetric. Sketch and explain why one has a lower energy while the other has a higher energy.
Corporation-community based outside of the united states : Identify and research a business ethics issue that has occurred in a corporation/community based outside of the United States. Summarize the facts of the issue and the resolution, if there was one.
Discuss the variation with frequency of the input reactance : Discuss the variation with frequency of the input reactance of a short-circuited line and its application in the determination of the location of a short circuit.
What is the outcome of this study : Explain what you learned from the project for the comparison done among the organizations.What is the outcome of this study.Your paper will be judged in part on the basis of your reference materials, both that you have used adequate sources to gain ..
Write a program to converts temperatures : Write a program to converts temperatures between Fahrenheit and Celsius. Your program should print a brief message describing what it does, and then prompt the user to enter "1" if they would like to convert a Fahrenheit number to Celsius.
What he or she meant to corrections reform : What he or she meant to corrections reform. Be sure to include specific information to support your case about the person you choose
Describe brand primary channel of distribution : Describe your brand's primary channel of distribution. Is your organization a producer, merchant wholesaler, retailer, agent, or broker? Why does this type of channel work for this organization? What do you think are the most important factors th..
Construction equipment company with responsibilities : Mike O'Brien is a new regional sales manager for a U.S.-based construction equipment company with responsibilities for the Asian and Eastern European markets. Thanks to a multimillion-dollar loan from the World Bank, one of the less-developed nati..
Obtain the annual percentage rate : You borrow a $328,000 add-on interest loan from the credit union and will repay in equal installments over 19 years. The nominal rate of interest is 4.5 %. Assuming daily repayment and compounding rate of interest, obtain the annual percentage rate.

Reviews

Write a Review

Programming Languages Questions & Answers

  Unix programming

UNIX Programming

  Difference between the internet and the world wide web?

difference between the Internet and the World Wide Web?

  Provide example of array and how it could be used

Provide the example of the Array and how it could be used. Then look over sections on ArrayLists. Would an ArrayList be better suited for your use?

  Develop a program to input miles driven and gallons for tank

Develop a program in C++ that will input the miles driven and gallons used (both as integers) for each tankful. The program should calculate and display the miles per gallon obtained for each tankful.

  Create application which gets customer account data

Some interest Credit Company gives loans to customers at 1.5 percent interest per month. Create the application which gets customer account data which includes the account number, customer name, and balance due.

  Assume you have bought an old semi-furnished house and need

assume you have bought an old semi-furnished house and need to renovate it before moving in. generally renovation work

  Create a program that reads in numbers from a file

Create a program that reads in numbers from a file and determines if they are in between two other numbers. For example, it might print a message if the number is between 1 and 5.

  Write a program to enter the number of apartment units

Write a program that prompts the user to enter the number of apartment units, the rent to occupy all the units, the increase in rent that result in a vacant unit.

  Write a program that uses is and else or if and elsif

write a program that uses is and else or if and elsif conditional statementsthat asks the user to enter a value for

  Cryptic crosswords - create a simple command line program

Decipher the clue to determine the word. One of the standard tricks of cryptic crossword creators is to use anagrams

  Program to simulate rolling one die

Write a program which simulates rolling one die using the following steps: Prompt the user for the number of sides on the die.

  Program to accept mass-density and compute volume

Write down the program which accepts as input the mass (in grames) and density (in grams per cubic centimeters), and output volume of the object.

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