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
An independent penetration testing company is invited to test a company's legacy banking application developed for Android phone
erastovalidia [21]

2010s is the one who created the iPhone

8 0
3 years ago
Is there a way for me to play a .mp3 file from my computer using Atom?
krek1111 [17]

They have a sound package. More info here: https://atom.io/packages/sound

7 0
3 years ago
PLEASE I NEED HELP ASAP PLEASE PLEASE!!!
aniked [119]

Answer:

Following are the program in the Python Programming Language

#set variables to 0

positive_sum=0  

negative_sum=0  

#print message  

print("Enter 0 to terminate")  

#set the while loop  

while(True):  

#get input from the user  

num=float(input("Enter positive or negative numbers: "))  

#set if statement to check condition  

if(num==0):  

  break  

elif(num>0):  

  positive_sum+=num  

else:  

  negative_sum+=num  

#print output with message  

print()  

print("sum of positive numbers: ", positive_sum)  

print("sum of negative numbers: ", negative_sum)  

Output:  

Enter 0 to terminate  

Enter positive or negative numbers: 1  

Enter positive or negative numbers: 3  

Enter positive or negative numbers: 5  

Enter positive or negative numbers: -7  

Enter positive or negative numbers: -2Enter positive or negative numbers: 0  

sum of positive numbers:  9.0  

sum of negative numbers:  -9.0

Explanation:

Here, we set two integer data type variables "positive_sum", "negative_sum" and initialize to 0.

Then, we set the while infinite loop inside the loop.

Set a variable "num" and get input from the user in it.

Set the if conditional statement and check condition the variable "num" is equal to 0 then, loop will terminate.

Set the elif statement and check condition the variable "num" is greater than 0 then, add that input and store in the variable "positive_sum"

Otherwise, add that input and store in the variable "negative_sum".

Finally, we print the output with the message.

8 0
2 years ago
Every nic has a unique address that consists of a 12-digit hexadecimal value. what is this address called?
Lyrx [107]
That address is called the MAC address 
6 0
4 years ago
Name all mario kart games in order
Juliette [100K]

Answer:

Super Mario Kart

Mario Kart 64

Mario Kart: Double Dash!!

Mario Kart 7

Mario Kart DS

Mario Kart: Super Circuit

Mario Kart Wii

Mario Kart 8

Mario Kart 8 Deluxe

Mario Kart Live: Home Circuit

Mario Kart

Mario Kart Arcade GP

Mario Kart Arcade GP 2

Mario Kart Tour

Mario Kart Arcade GP DX

Mario Kart Arcade GP VR

Super Mario 64

Super Mario 3D World

─▄████▄▄░

▄▀█▀▐└─┐░░

█▄▐▌▄█▄┘██

└▄▄▄▄▄┘███

██▒█▒███▀

5 0
3 years ago
Read 2 more answers
Other questions:
  • Which osi model layer manages data encryption?
    14·1 answer
  • How can a user begin working with a new, blank workbook in Excel?
    10·1 answer
  • Osha requires employers pay for most required personal protective equipment including
    11·1 answer
  • What does “default” refer to? the ability to be used as, or directly converted to, cash. the failure to pay back a loan. the amo
    8·1 answer
  • What is the error in the following line: (1)<br><br> age=int(input("Enter your age:")
    5·1 answer
  • Charles wants to work for himself in the Transportation and Logistics career cluster. Which lists the jobs with the best
    7·2 answers
  • Why is it saying I don’t have a subscription when I paid for it and it shows deducted from my account? I can’t find any phone #
    7·1 answer
  • Write code that will copy the contents of the file into an array. You can assume that the file will only have 5 data values
    11·1 answer
  • 9.3 Code Practice
    13·2 answers
  • In Adobe illustrator cc 2017 which of the following export file ​
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!