balakrishnamanoharan
25.11.2020 •
Computers and Technology
Write a program which takes user input of a number of inches, and then prints the number of whole feet in that many inches (remember there are 12 inches in a foot). For example if the user enters 56 The program should print 4 As there are 4 whole feet in 56 inches (56'' is the same as 4'8'')
Solved
Show answers
More tips
- C Computers and Internet Make Easy Accessible Screenshots on iPad in Just a Few Minutes...
- H Health and Medicine Heartburn: Causes and Ways to Get Rid of It...
- H Health and Medicine Simple and Effective: How to Get Rid of Cracked Heels...
- H Health and Medicine Relieving Swelling in Legs: Causes and Ways to Alleviate the Symptom...
- W Work and Career Мерчендайзинг – все, что нужно знать...
- O Other Everything You Need to Know About Kudyabliks...
- F Food and Cooking How to cook crayfish? Everything you need to know...
- F Food and Cooking Homemade kvass: recipe and brewing process...
- H Health and Medicine How to Choose the Right Tanning Cream?...
- S Style and Beauty Secrets of Tying a Pareo: 5 Ways...
Answers on questions: Computers and Technology
- C Computers and Technology Which of the following may present a problem for linux users? lack of a gui need to configure the os tendency to crash vulnerability to viruses...
- C Computers and Technology SMTP was defined when the internet had only a tiny number of users, so the original specification did not include any way for computers to authenticate one another. Question...
- C Computers and Technology Why is there games in the world instead of just going to a learning website?...
- S SAT To create an effective study schedule, a student must o guess the amount of time needed for studying write down all activities and commitments. o allow the same amount...
- M Mathematics Find the difference. –12 – (–21) = –33 –9 33 9...
- M Mathematics What is 0+0 if you have 0 friends and 0 cookies you have 0.1 cookies and friends?...
- M Mathematics Evaluate 3 √-512. write your answer as an integer. explain how you can check that your result is correct....
- M Mathematics Did someone have the answer of both of them?...
- H History Need ! will mark confucianism says that people should follow religious rituals, respect others, and honor their elders. true false question 5 (2 points) the han dynasty...
- M Mathematics You are painting a pattern on some plain terra cotta stones for a stepping path in your backyard . it took you 50 minutes to paint 2 stones. how many stones can you paint...
Ответ:
inches = int(input("Enter the number of inches: "))
whole_feet = int(inches / 12)
print("There are " + str(whole_feet) + " whole feet in " + str(inches) + " inches")
Explanation:
*The code is in Python.
Ask the user to enter the number of inches
Calculate the whole_feet by dividing the inches by 12 (Since 1 inch = 1/12 feet) and casting the result to int so that you can get the number of whole feet. Note that if you do not cast it to the int, you would get a decimal value
Print the result
Ответ:
v
Explanation:
cx