Write a program to prompt user to enter value for fahrenheit degree and then computeand display the equivalent temperature in Celsius. Formulais: celsius = (fahrenheit –32)* 5/9 You must have a function called computeCelsius()that will accept the value for the Fahrenheit and return the equivalent celsius. Have another function called printReuslt()that will accept both the fahrenheit and celisus value and then print both these values with appropriate text message.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

Write a program to prompt user to enter value for fahrenheit degree and then computeand display the equivalent temperature in Celsius.

Formulais: celsius = (fahrenheit –32)* 5/9

You must have a function called computeCelsius()that will accept the value for the Fahrenheit and return the equivalent celsius.

Have another function called printReuslt()that will accept both the fahrenheit and celisus value and then print both these values with appropriate text message.

Question 2
Write a program to prompt user to enter value for fahrenheit degree and then compute and
display the equivalent temperature in Celsius.
Formula is:
celsius = (fahrenheit - 32) * 5/9
You must have a function called computeCelsius () that will accept the value for the
Fahrenheit and return the equivalent celsius.
Have another function called printReuslt () that will accept both the fahrenheit and celisus
value and then print both these values with appropriate text message.
Remember to create a new project and name it with a meaningful name such as
CSP17Lab05Question02
What to submit
Use the same document CSP17Lab05 used in Question 1
At the end and on a new page, Insert a Label Question 2 and then under this label, put the
following:
3
Co search
节)。
z
II
Transcribed Image Text:Question 2 Write a program to prompt user to enter value for fahrenheit degree and then compute and display the equivalent temperature in Celsius. Formula is: celsius = (fahrenheit - 32) * 5/9 You must have a function called computeCelsius () that will accept the value for the Fahrenheit and return the equivalent celsius. Have another function called printReuslt () that will accept both the fahrenheit and celisus value and then print both these values with appropriate text message. Remember to create a new project and name it with a meaningful name such as CSP17Lab05Question02 What to submit Use the same document CSP17Lab05 used in Question 1 At the end and on a new page, Insert a Label Question 2 and then under this label, put the following: 3 Co search 节)。 z II
Page
1
>
of 4
ZOOM
QueSTIOn I
This is a modification of Question 1 in Lab 4.
In your repl.it account, write a program in Python that will prompt user to enter a score for a
test that was out of 100.
Then test this value of score entered and display grade or error message according to this
table.
Message/Grade
Invalid value entered.
Score entered
> 100
90 to 100
Grade is A
80 to 89
Grade is B
70 to 79
Grade is C
60 to 69
Grade is D
O to 59
< 0
Grade is F
Invalid value entered
You will do the same problem but this time have a function called computeGrade () that will
accept the score entered and then return the grade to them main function and print the grade
there.
Remember, the function computeGrade () only compute and return the grade.
Also, the function computeGrade () will only be invoked if the score entered is valid otherwise
display error message and don't call the function.
Remember to create a new project and name it with a meaningful name such as
CSP17Lab05Question01
e here to search
註)
Transcribed Image Text:Page 1 > of 4 ZOOM QueSTIOn I This is a modification of Question 1 in Lab 4. In your repl.it account, write a program in Python that will prompt user to enter a score for a test that was out of 100. Then test this value of score entered and display grade or error message according to this table. Message/Grade Invalid value entered. Score entered > 100 90 to 100 Grade is A 80 to 89 Grade is B 70 to 79 Grade is C 60 to 69 Grade is D O to 59 < 0 Grade is F Invalid value entered You will do the same problem but this time have a function called computeGrade () that will accept the score entered and then return the grade to them main function and print the grade there. Remember, the function computeGrade () only compute and return the grade. Also, the function computeGrade () will only be invoked if the score entered is valid otherwise display error message and don't call the function. Remember to create a new project and name it with a meaningful name such as CSP17Lab05Question01 e here to search 註)
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education