Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

X + 9npeMHZOHq9N42UxfoDMSUWOTN67_JUT-BqVAHBU/edit CMP 167: Programming Methods Lehman College, City University of New York Homework 3-1 Wnte a program that converts a temperature from Celsius

image text in transcribed
X + 9npeMHZOHq9N42UxfoDMSUWOTN67_JUT-BqVAHBU/edit CMP 167: Programming Methods Lehman College, City University of New York Homework 3-1 Wnte a program that converts a temperature from Celsius to Fahrenheit It should do the following: 1. Prompt the user for input 2. Read a double value from the keyboard 3. Calculate the result. Here is the formula 4. Format the output to one decimal place F#(C'975). 32 Your prompt to the user to enter the temperature in Celsius must be Enter the Celsius Torperature as a decimal: Your output must be of the format: For example If the user ontered: 24.0 Your program would output 24.0C-75.2 F Sample run would look like Envior the temperature in degrees colsius 24 24.0C-75.2 E 7.5 Sample run would look like Enter the temperature in degrees Celsius 7.5 - 45.5 C9/6).32 Hinat Be careful not to use integer division Here is the formula the output Hint2 Remember to use print to form Please make sure to end eachine of output with a newline Please note that your class should be named Celsius ToFahrenheit

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

Discuss what theyre doing to be family friendly.

Answered: 1 week ago

Question

Problem: Evaluate the integral: I = 1- 1 dx 9

Answered: 1 week ago

Question

Describe the Indian constitution and political system.

Answered: 1 week ago

Question

Explain in detail the developing and developed economy of India

Answered: 1 week ago

Question

Problem: Evaluate the integral: I = X 52+7 - 1)(x+2) dx

Answered: 1 week ago