Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that accepts the temperature in degrees Celsius and computes the temperature in Fahrenheit. The formula for converting Celsius to Fahrenheit is, in

Write a program that accepts the temperature in degrees Celsius and computes the temperature in Fahrenheit. The formula for converting Celsius to Fahrenheit is, in algebraic language,

 F = (9/5)C + 32.

Sample screen output:

 enter degrees Celsius: 30 30 degrees Celsius is 86 degrees Fahrenheit. 

You may choose whether you want to use int variables or double variables to store the temperatures, and whether you want to allow decimals in the input or output.

This is one of those cases where it will be better to use the actual literal constants 9, 5, and 32 in your code, rather than creating named constants to represent those values.

DO NOT use the number 1.8 in your code.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions

Question

Define humanised Big Data.

Answered: 1 week ago