![daytonalive83481](/avatars/38580.jpg)
daytonalive83481
31.03.2020 •
Computers and Technology
Create a program the outputs the total cost of a lunch order. Users should be prompted to input the number of hamburgers, fries, and drinks they want and the program should print the total cost of the order. The hamburgers cost 2.00, fries cost 1.50, and drinks cost 1.00. Be creative and professional in prompting the user for the information and in displaying the output.
Solved
Show answers
More tips
- H Health and Medicine Want to Lose Weight? Gain Muscle without Damaging Your Health!...
- F Family and Home Parquet or laminate, which is better?...
- L Leisure and Entertainment How to Properly Wind Fishing Line onto a Reel?...
- L Leisure and Entertainment How to Make a Paper Boat in Simple Steps...
- T Travel and tourism Maldives Adventures: What is the Best Season to Visit the Luxurious Beaches?...
- H Health and Medicine Kinesiology: What is it and How Does it Work?...
- O Other How to Choose the Best Answer to Your Question on The Grand Question ?...
- L Leisure and Entertainment History of International Women s Day: When Did the Celebration of March 8th Begin?...
- S Style and Beauty Intimate Haircut: The Reasons, Popularity, and Risks...
- A Art and Culture When Will Eurovision 2011 Take Place?...
Answers on questions: Computers and Technology
- C Computers and Technology Complete the function getThreeChars such that it returns 3 characters starting from the 2nd character of the name it receives. PLEASE HELP!!...
- E English Write a letter to your principal telling him the need of basic amenities in your school...
- M Mathematics POPULATION OF CHINA IS 1.5 BILLION WHILE OF INDIA IS 1.3 BILLION POPULATION OF CHINA IS INCREASING 0.001 BILLION EACH YEAR, WHILE POPULATION OF INDIA IS INCREASING BY 0.002...
- M Mathematics What are the values of x and y in the linear system 5x+8y=36 2x+14y=36...
- M Mathematics Identify which side or angle is congruent to each part given...
- H History The Continental Congress met following the conclusion of what conflict? A. French and Indian War B. American Revolution C. War of 1812...
- M Mathematics Explain what the slope and the y-intercept tell you about the relationship between the number of containers to be recycled and the attendance at a school event....
- M Mathematics Who has the best cheese pizza? A. Dominos B. Pizza Hut C. Little Caesars (Will mark BRAINLIEST, if you are right, and no this is not based off of opinion, this is based of of...
- E English QUESTION 1 For each question, identify the correct subjects and verbs. The subjects are in blue and the verbs are in red. A. Your blue purse matches your outfit perfectly. B....
- M Mathematics Giving everything. Plzz help....
Ответ:
total = 0
hamburgers = int(input("Enter the number of hamburgers: "))
fries = int(input("Enter the number of fries: "))
drinks = int(input("Enter the number of drinks: "))
total = (hamburgers * 2.0) + (fries * 1.5) + (drinks * 1.00)
print("The total cost of the order is: " + str(total))
Explanation:
- Ask the user for the inputs
- In order to find the total cost, multiply each order cost with the number of orders. Then sum the each result.
- Print the total cost
Ответ:
Maybe depends
Explanation: