menu
Qamnty
Login
Register
My account
Edit my Profile
Private messages
My favorites
CSCD 110 # This program uses value functions to do some conversions. # Define our constant variables # These are our menu options F_TO_C = 1 C_TO_F = 2 F_TO_M = 3 M_TO_F = 4 EXT…
Ask a Question
Questions
Unanswered
Tags
Ask a Question
CSCD 110 # This program uses value functions to do some conversions. # Define our constant variables # These are our menu options F_TO_C = 1 C_TO_F = 2 F_TO_M = 3 M_TO_F = 4 EXT…
asked
May 6, 2021
73.5k
views
5
votes
CSCD 110
# This program uses value functions to do some conversions.
# Define our constant variables
# These are our menu options
F_TO_C = 1
C_TO_F = 2
F_TO_M = 3
M_TO_F = 4
EXTRA = 5
QUIT = 0
# We need a main function
def main():
choice = 7
while choice != QUIT:
display_menu() # Call to display our menu
choice = int(input("Please enter a menu choice: "))
if choice == F_TO_C:
temp = float(input("Please enter a temperature in degrees Fahrenheit."))
print(temp, "degrees Fahrenheit is equal to ", convert_to_celcius(temp),"degrees Celcius")
def convert_to_celcius(fahrenheit):
return (fahrenheit - 32) * 5/9
def display_menu():
print(" Menu")
print("1. Convert from Fahrenheit to Celsius.")
print("2. Convert from Celsius to Fahrenheit.")
print("3. Convert Feet to Meters.")
print("4. Convert Meters to Feet.")
print("5. Print a string backwards.")
print("0. Quit.")
Why does my menu function not display in the python shell? Plz Help.
Computers & Tech
high-school
Flantasy Flan
asked
by
Flantasy Flan
7.7k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
3
votes
Answer:
Sorry IDK what that means if you explan it i can help
Step-by-step explanation:
Ege Kuzubasioglu
answered
May 12, 2021
by
Ege Kuzubasioglu
8.2k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Jan 3, 2021
121k
views
Write a Python program that can convert a Fahrenheit temperature to Celsius, or vice versa. The program should use two custom functions, f_to_c and c_to_f, to perform the conversions. Both of these functions
Chukwuemeka Maduekwe
asked
Jan 3, 2021
by
Chukwuemeka Maduekwe
7.6k
points
Computers & Tech
high-school
1
answer
4
votes
121k
views
Ask a Question
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
Other Questions
“What does it mean when we “rework” copyrighted material?”
Seven basic internal components found in a computer tower
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qamnty