Write a computer program that will change a fahrenheit

Assignment Help Computer Engineering
Reference no: EM132151559

Temperature Conversion

Task: Write a computer program that will change a Fahrenheit temperature to Celsius. Write two versions of the program, one in Java and one in C++.

Input: The temperature in Fahrenheit degrees, provided interactively by the user. The input value will be a real number.

Output: Display the Fahrenheit input temperature and the corresponding Celsius temperature, also a real number. The results may be displayed on the screen. Provide a simple message to explain the output (i.e., one sentence). At least the Java output should be formatted neatly, with one decimal position displayed in the numbers.

Sample output: 212.0 degrees Fahrenheit = 100.0 degrees Celsius.

Programming:

Include at least some documentation in this simple program.

Initial comments at the beginning of each file should provide the program name, your name, and a simple statement of what the program does.

Include one other comment somewhere in each program, either in-line or on a separate line.

Include a meaningful prompt for the user.

To avoid doing data conversions or losing data through integer truncations, use only real numbers in the calculations. A number constant will be treated as a real number if you include a decimal point and a trailing 0.

Submissions: Submit an electronic copy of the of your algorithm fist in the D2L dropbox. Due date is listed above. Then submit the two source code files in the D2L dropbox. Due date is listed above. Algorithm is worth 6 points. Each program is worth 7 points. Include your initials at the beginning of the name of any program submission.

Reference no: EM132151559

Questions Cloud

Define a functionthat takes a string containing a filename : Define a functionthat takes a string containing a filename for the keys of the dictionary, and an optional integer, the maximum number.
How can you tell if the index is being used or not : How can you tell if the index is being used or not? How would this information help in optimizing our tuning a databases in MySQL.
What percent of passenger vehicles travel slower : The distribution of passenger vehicle speeds traveling on the Interstate 5 Freeway (I-5) in California is nearly normal with a mean of 72.6 miles
Discuss the unique characteristics of ecommerce : discuss the unique characteristics of eCommerce as it relates to the opportunities and requirements for cloud computing.
Write a computer program that will change a fahrenheit : Write a computer program that will change a Fahrenheit temperature to Celsius. Write two versions of the program, one in Java and one in C++.
What is the probability of these individual : A random sample of 100 baby boomers was selected. What is the probability that 32 or fewer of these individuals took a cruise within the last three years?
Describe that can we create its equivalent serial schedule : Describe that can we create its equivalent serial schedule. If yes then how else why?
Standard deviation of the sampling distribution : What is the standard deviation of the sampling distribution?
What is the minimum number of bits required to store : In terms of n, what is the minimum number of bits required to store each subset of a set with n elements?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Create a new program to prepare a sequence

Follow the steps of Allen-Bradley Programming Procedures to create the program demonstrated: A+,A-.

  Write xhtml to create a table with three rows and two column

Use CSS to configure a table that has a border around both entire table and the table cells. Write the XHTML to create a table with three rows and two columns.

  Write an algorithm to decide which commute is cheaper

You want to decide whether you should drive your car to work or take the train. Write an algorithm to decide which commute is cheaper.

  Find the parent process

Find the parent process (write the name down as you'll need it later) that is starting the bombs and kill it.

  Write a c function named change that has a floating point

Call the function change from main function three times and print out the contents of the variables quarters, dimes, nickels, and pennies after each function return.

  Design your own c class keep it simple however use the

design your own c class. keep it simple but use the readings this week to include a constructor members and methods. be

  How long it took you to solve each of the puzzles

What assumptions you made; what deductions you made, etc. What are the English cleartexts from which these two ciphertexts were derived? How long it took you to solve each of the puzzles.

  Write function compound interest that takes in interest rate

Write a function compound Interest that takes in an interest rate, a starting balance, and a number of years, then returns what the new balance would be.

  Calculate the speedups assuming the matrices grow

Calculate the speedups assuming the matrices grow to 100 by 100. Which are strong scaling and which are weak scaling in this exercise?

  Why must the mouse press listener class supply five methods

Why must the Mouse Press Listener class supply five methods? How could you change the behavior of the program so that a new rectangle is added?

  Develop an application with the chosen dbms

A school intends to procure the integrated student management application holding all details of registered students including personal information, courses taken, and examination grades.

  Is there any other way to solve the performance problem

You are running a memory-intensive multimedia application on your computer, which has 1 GB RAM installed.

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