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
malfutka [58]
3 years ago
3

Design a program to manage the basic In-N-Out ordering of shakes and french-fries. A few menus and prompts are pasted below. Sin

ce this program is heavy on input/output interactions, please study the output for each of the test cases given. NOTE: We suggest you program incrementally. When writing input statements, end each input string with "\n" g
Computers and Technology
1 answer:
JulijaS [17]3 years ago
6 0

A program to manage the basic In-N-Out ordering of shakes and french-fries, is as follows

<u>Explanation</u>:

# Displays welcome message

print("~~~ Welcome to In - N - Out ~~~")

print("We\'d like to take your order")

# Displays Shake menu

print("~~ Shake Menu ~~~")

print("\t V: Vanilla ($3)")

print("\t C: Chocolate ($3)")

print("\t S: Strawberry ($3)")

print("\t N: Neapolitan ($5)")

# Accepts user choice

shakeChoice = input("Please make a selection from the above: ")

# Displays Fries menu

print("~~ Fries Menu ~~~")

print("\t A: Animal Fries ($4)")

print("\t C: Cheese Fries ($3)")

print("\t F: French Fries ($2)")

# Accepts user choice

friesChoice = input("Please make a selection from the above: ")

amount = 0

# Checks if shake choice is upper case 'V' or lowercase 'v'

if(shakeChoice == 'V' or shakeChoice == 'v' ):

# Adds 3 as cost to amount

amount += 3

# Otherwise checks if shake choice is upper case 'C' or lowercase 'c'

elif(shakeChoice == 'C' or shakeChoice == 'c' ):

# Adds 3 as cost to amount

amount += 3

# Otherwise checks if shake choice is upper case 'S' or lowercase 's'

elif(shakeChoice == 'S' or shakeChoice == 's' ):

# Adds 3 as cost to amount

amount += 3

# Otherwise checks if shake choice is upper case 'N' or lowercase 'n'

elif(shakeChoice == 'N' or shakeChoice == 'n' ):

# Adds 5 as cost to amount

amount += 5

# Checks if fries choice is upper case 'A' or lowercase 'a'

if(friesChoice == 'A' or friesChoice == 'a' ):

# Adds 4 as cost to amount

amount += 4

# Otherwise checks if fries choice is upper case 'C' or lowercase 'c'

elif(friesChoice == 'C' or friesChoice == 'c' ):

# Adds 3 as cost to amount

amount += 3

# Otherwise checks if fries choice is upper case 'F' or lowercase 'f'

elif(friesChoice == 'F' or friesChoice == 'f' ):

# Adds 2 as cost to amount

amount += 2

# Displays amount to be paid

print("You need to pay: ", amount)

You might be interested in
Which principle or element of layout design is highlighted in this event poster?
Oduvanchick [21]

The  principle or element of layout design is highlighted in an event poster in option i: The headline.

<h3>What are the elements of page layout?</h3>

The poster is known to be one that often uses a kind of hierarchy and centered text alignment as its element.

Note that it is one whose Lines of use is said to be made up of different kinds of type styles, sizes and others.

The simple elements of an advertising poster is made up of:

1. The headline.

2. The sub-head.

3. The body copy.

4. The caption.

The elements of page layout are visual hierarchy, visual flow, and others. Hence, the  principle or element of layout design is highlighted in an event poster in option i: The headline.

Learn more about layout design from

brainly.com/question/2501083

#SPJ1

6 0
2 years ago
Given a voltage of 1200 volts and a current of 7 amps, what is the resistance? (# only to thousandth's place)
max2010maxim [7]
<h3>♫ - - - - - - - - - - - - - - - ~<u>Hello There</u>!~ - - - - - - - - - - - - - - - ♫</h3>

➷ R = V/I

R = 1200/7

R = 171.428571

Your answer is 171.439

<h3><u>✽</u></h3>

➶ Hope This Helps You!

➶ Good Luck (:

➶ Have A Great Day ^-^

↬ ʜᴀɴɴᴀʜ ♡

8 0
4 years ago
Read 2 more answers
Given the three side lengths, how can you tell if a triangle<br>is a right triangle?​
Tatiana [17]
<h3>Sample Response from Edge 2020:</h3>

Square all side lengths. If the longest side length squared is equal to the sum of the squares of the other two side lengths, then it is a right triangle.

8 0
3 years ago
PLEASE HELP ME HELP ME NO IM NOT OKAY AND ITS NOT EASY FOR ME.....Vladimir is reworking an old slideshow. He needs to delete som
Mandarinka [93]

Answer:

Outline view

Explanation:

This is a formatted window that shows all text, headers, and titles in a popup on the left side of the screen. Slide master shows all the slides but includes slide details such as inserted images and smart art.

7 0
3 years ago
Which program controls the windows startup sequence
mylen [45]

Of the different freeware and shareware programs available, two of the most popular are Xteq X-Start from Xteq Systems, and Startup Control Panel by Mike Lin. X-Start is a full-blown tweaking utility thats free for non-commercial use, and enables you to edit just about every element of a Windows system, including relevant startup and shutdown settings.

6 0
3 years ago
Other questions:
  • Andy, a developer, is designing a new program. Which tool should Andy use to help him complete his task?
    6·1 answer
  • Anyone wanna join a supercar/hypercar enthusiast's club?
    10·1 answer
  • Intro to Computers quiz answers me need for test please help me hurry
    5·1 answer
  • Liam is a hacker who tries to access Wi-Fi signals while driving his car. What type of wireless network attack is this?
    9·1 answer
  • Which of the following best describes how to measure the spread of the data? a) The IQR is a better measure of spread for badmin
    5·1 answer
  • Name the type of software which provides the user interface. [1 mark
    5·1 answer
  • Haya would like to complemely delete Slide 11 from her presentation so that slides 12–16 become slides 11-15. What is
    9·1 answer
  • Question # 5
    12·1 answer
  • The \t and \n are examples of one of Python's escape characters.<br><br> A. True<br> B. False
    11·1 answer
  • To call the superclass's no-parameter constructor explicitly, use super(); group of answer choices true false
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!