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
sashaice [31]
3 years ago
5

And Python code for the following programming problem and the pseudo code below

Computers and Technology
1 answer:
lora16 [44]3 years ago
6 0

Answer:

endProgram = "no"

endOrder = "no"

totalBurger = 0

totalFry = 0

totalSoda = 0

total = 0

tax = 0

subtotal = 0

option = 0

burgerCount = 0

fryCount = 0

sodaCount = 0

def resetVariables():

    #reset variables

   totalBurger = 0

   totalFry = 0

   totalSoda = 0

   total = 0

   tax = 0

   subtotal = 0

def getBurger():

   global burgerCount

   burgerCount += int(input("Enter the number of burgers you want: "))

   totalBurger =burgerCount * .99

   return totalBurger

def getFry():

   global fryCount

   fryCount += int(input("Enter the number of fries you want: "))

   global totalFry

   totalFry +=fryCount * .79

   return totalFry

def getSoda():

   global sodaCount

   sodaCount += int(input("Enter the number of sodas you want: "))

   global totalSoda

   totalSoda +=sodaCount * 1.09

   return totalSoda

def calcTotal():

   global subtotal

   subtotal += totalBurger + totalFry + totalSoda

   global tax

   tax += subtotal * .06

   global total

   total += subtotal + tax

   return total

def printReceipt(total):

   print("Your total is $",round(total, 2))

#Loop to run program again

while endProgram == "no":

   resetVariables()

   #Loop to take in order

   while endOrder == "no":

       print("Enter 1 for Yum Yum Burge\nEnter 2 for Grease Yum Fries\nEnter 3 for Soda Yum: \n")

       option = int(input("Enter option: "))

       if option == 1:

           bugertotal = getBurger()

       elif option == 2:

           frytotal = getFry()

       elif option == 3:

           sodatotal = getSoda()

       endOrder = input("Do you want to end your order? (Enter no to add more items): ")

       mytotal = calcTotal()

       printReceipt(mytotal)

   endProgram = input("Do you want to end the program? (Enter no to process a new order): ")

Explanation:

The python source code displays the menu of a restaurant and the prices of each meal. The module takes multiple orders, calculates and displays the total bill of the order with tax included.

You might be interested in
Which magazine can help public determine best technology to buy
Dennis_Churaev [7]
Consumer report would help determine the best technology to buy.
4 0
3 years ago
You are the network administrator for your company. You want to look at some of the resources on the network. Specifically, you
mr Goodwill [35]

Answer:

" Performance Monitor" is the correct solution.

Explanation:

  • The most comprehensive method or indication for viewing but mostly analysis of those same applications as well as hardware-related issues would be determined as "Performance monitor."
  • Performance Monitoring seems to be a combination of methods as well as technologies to assess relatively quickly apps work throughout the data center.

3 0
4 years ago
In Python, the ‘+’ operator can be used with numbers and with strings. What is a property that number addition has, but string c
Natali [406]

Answer:

Answered below

Explanation:

The property in number addition that is not found in string concatenation, although both use the '+' operator, is that in number addition, the expression value does not depend on the order of the numeric addition operands. Any order of arrangement of the operands produces the same value when they are added.

This is not so in string concatenation because different orders or the arrangement of different strings on concatenation, produce different results or values. For instance, the concatenation of 'He is a' + 'boy' results in 'He is a boy' whereas reversing the placements of both strings would result in a totally different value. This is not so in number addition where 4 + 2 gives the same value as 2 + 4.

Therefore the use of the '+' operator with string concatenation and with numerical additions produce different expression values where one depends on the order and one does not.

5 0
4 years ago
In 250 words, explain why a Slide Layout and Slide Design is a vital part of a Business Presentation.
Allushta [10]

Answer:

to be honest I will tell you d reason what is the point of a person to have been a computer engineer should not be able to prove himself worthy to start working.....no presentation for sure no job slide design I majorly like a middle class work that show that you are really ready to prove your self as a computer engineer .....if not that then what do you want to present in an interview or d like though am just 15 but am sure that is part of the smallest of what I can do

3 0
4 years ago
How do ice and water on the ground affect incoming solar radiation? They filter 22 percent of solar radiation that reaches the s
olganol [36]

Answer: 4 percent

Explanation:

8 0
3 years ago
Read 2 more answers
Other questions:
  • Marijuana and hashish come from the hemp plant?
    10·1 answer
  • The role of a computer-based instructional system is to deliver messages to learners. Those messages originated from a human tut
    10·1 answer
  • Which of the following is considered a benefit when using slab allocator?
    6·1 answer
  • For this project you have been asked to write a program for a local store owner. The store owner wants to keep a record of the n
    5·1 answer
  • What is the value of the result after the following statement is executed? int result = 2 + 3 + 4 ;
    7·1 answer
  • What happens when a computer gets a virus?
    6·2 answers
  • Which is a benefit of getting information from a government website?
    15·2 answers
  • What does the CYMK tab let you do?
    5·2 answers
  • What is an input to the Program Increment Planning process that highlights how Product Management plans to accomplish the Vision
    15·1 answer
  • If you want to change your system settings, what should you use
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!