Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1,2 and 8 1. Write a program that converts degrees from Fahrenheit to the formula Solving a conversion problem using DegreesC = 5(DegreesF-32)/9 Prompt the

1,2 and 8 image text in transcribed
image text in transcribed
1. Write a program that converts degrees from Fahrenheit to the formula Solving a conversion problem using DegreesC = 5(DegreesF-32)/9 Prompt the user to enter a temperature in degrees Fahrenheit as a whole number without a fractional part. Then have the program display the equivalent Celsius temperature, including the fractional part to at least one decimal point. A possible dialogue with the user might be Enter a temperature in degrees Fahrenheit: 72 72 degrees Fahrenheit is 22.2 degrees Celsius 2. Write a program that reads a line of text and then displays the line, but with the first occurrence of hate changed to love. For example, a possible sample dialogue might be Enter a line of text. I hate you I have rephrased that line to read: I love you You can as hate occurs sume that the word hate occurs in the input. If the word morethan once in the line, your program will rplace onlyitsfist ocqurends m will replace only its first occurrence 1. Write a program that converts degrees from Fahrenheit to the formula Solving a conversion problem using DegreesC = 5(DegreesF-32)/9 Prompt the user to enter a temperature in degrees Fahrenheit as a whole number without a fractional part. Then have the program display the equivalent Celsius temperature, including the fractional part to at least one decimal point. A possible dialogue with the user might be Enter a temperature in degrees Fahrenheit: 72 72 degrees Fahrenheit is 22.2 degrees Celsius 2. Write a program that reads a line of text and then displays the line, but with the first occurrence of hate changed to love. For example, a possible sample dialogue might be Enter a line of text. I hate you I have rephrased that line to read: I love you You can as hate occurs sume that the word hate occurs in the input. If the word morethan once in the line, your program will rplace onlyitsfist ocqurends m will replace only its first occurrence

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

Development Of Knowledge Framework For Affective Content Analysis

Authors: Swarnangini Sinha

1st Edition

B0CQJ13WZ1, 979-8223977490

More Books

Students also viewed these Databases questions