1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Anettt [7]
3 years ago
6

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.
Computers and Technology
1 answer:
Likurg_2 [28]3 years ago
4 0

Answer:

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

You might be interested in
Which reports indicate how traffic arrived at a website?
umka21 [38]

Answer: All traffic reports indicate how traffic arrived at a website.

Explanation:

5 0
3 years ago
Which is an example of an input device?
kondor19780726 [428]

Answer:

b, a keyboard. Sometimes a, if it contains a microphone.

8 0
3 years ago
Read 2 more answers
WILL GIVE BRAINLIEST! The command simplify is used if you only want the first two digits of a decimal to appear in the interpret
Vera_Pavlovna [14]

Answer:

falsee?

Explanation:

8 0
3 years ago
The two roots of a quadratic equation ax^2 + bx + c = 0 can be obtained using the following formula:
Feliz [49]

Answer: ion k

Explanation:

4 0
3 years ago
How might the design be changed so that additional copies of print statements would not be needed?
bogdanovich [222]

A design be altered so that additional copies of print statements would not be needed by changing the format spring.

<h3>What is the aim of a print statement?</h3>

The PRINT statement is known to be often sent data so that it is taken to the display terminal or to another kind of print unit.

Note that A design be altered so that additional copies of print statements would not be needed by changing the format spring.

Learn more about design from

brainly.com/question/1020696

#SPJ1

5 0
2 years ago
Other questions:
  • Assuming that data mining approaches are to be used in the following cases, identify whether the task required is supervised or
    12·1 answer
  • Is cloud computing a hardware service used to keep computers working? True or False
    11·1 answer
  • Which of the following is the amount of space available on a screen to display information?
    8·1 answer
  • A user has connected a USB 3.0 device to a computer using a 3 ft (1m) USB 3.0 cable. However, instead of an expected data transf
    9·1 answer
  • HELPPPPPPP!!!!!!!!!
    8·1 answer
  • Peter was working on a design for a magazine. He had to give his design to his team for further editing. He wanted to use a file
    8·1 answer
  • Write the class definition for a class named Employee. The class should include data members for an employee object%u2019s name
    12·1 answer
  • Which staff member takes a set of plans and supervises their construction?
    6·1 answer
  • All of the data in a digital book (letters, punctuation, spaces, etc) are stored and processed in a computer as binary. Break do
    15·1 answer
  • ________ is used to enter the results of a CBC into the computer system.pharmacy system.laboratory system.order entry/results re
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!