answer.
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]
2 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]2 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
The new Director of Information Technology has asked you to recommend a strategy to upgrade the servers on their network. Recomm
borishaifa [10]

Answer:

servers to be upgraded are : APPLICATION AND LOAD BALANCING SERVERS

servers still appropriate to use : DNS AND DHCP SERVERS

Explanation:

The recommendations to be made in line with what the new director of information is asking for includes :

1 ) For the servers to be upgraded : The servers that requires upgrades  includes the APPLICATION SERVER and LOAD BALANCING SERVER. this is because these two servers are critical to the growth/expansion of any business, and they handle large volume of data

Recommendations on the servers upgrade includes:

Hardware : 2.3 GHz Intel Xeon Gold 5118 12-Core

CPU chip set :  Socket: FCLGA3647, Type: NSBM

Speed : processor 3.2 GHz

caching:   > 100 Gb

2)  For servers that do not necessarily need to be upgraded : The servers that do not need immediate upgrade are DNS and DHCP

6 0
2 years ago
If you were investigating login issues on a Windows computer, which portion of the Event Viewer logs would be a good place to st
USPshnik [31]

Answer:

If we are investigating login issues then we have to start with 'security logs' in 'windows logs' portion of Event viewer.

Explanation:

Much information about login issues is contained in log files which are related to security because it is mostly security issue. Some it is also better to start with 'system logs' portion of windows logs portion of Event viewer when there may be system problems instead of security issues. But in most cases there is security issues so 'security logs' is better option overall

6 0
2 years ago
Which bus slot provides highest video performance​
Tresset [83]

Answer:

The best slot to use for video cards is the PCI-Express x16 slot. The next best is the AGP slot. The next best is a PCI-Express x1 slot but video cards which fit that slot are very hard to find as of late 2006. The worst choice for a video card is a PCI slot.

4 0
2 years ago
1. What is the global marketplace?
VladimirAG [237]

I know the answer for 1 is A

5 0
2 years ago
Read 2 more answers
Assign courseStudent's name with Smith, age with 20, and ID with 9999. Use the printAll() member method and a separate println()
vekshin1

Answer:

Following are the program in the java language  

public class Main // Main class  

{

   String courseStudentsname; // variable declaration  

   int age; // variable declaration  

   int ID; // variable declaration  

   Main() // default constructor

   {

courseStudentsname="Smith";//assign the values mention in the question              

       age=20;//assign the values which is mention in the question  

       ID=9999;//assign the values which is mention in the question    

   }

void printAll() // method definition of printAll()  

   {

      System.out.print("Name: " + courseStudentsname ); // display name

      System.out.print(", Age: " + age); // display age

      System.out.print(", ID: " + ID); // display id

   }

public static void main(String[] args) // main fuunction()

{

Main ob=new Main(); // create the object of Main class  

ob.printAll(); // calling the method printAll()

}

}

Output:

Name:"Smith, Age:20, ID:9999

Explanation:

Following are the description of program

  • Create a constructor of "Main" class and store the respective values of courseStudentsname,age and ID in that constructor .
  • create a method printAll() and print the respective values in the given format which is mention in the question by using   System.out.print method.
  • In the main function create an object of "Main" class i.e "ob".
  • Finally, call the printAll() method by using the object of Main class.

4 0
2 years ago
Other questions:
  • Which of the following statements about crane hand signal training are true? A. Both statements are true about crane hand signal
    5·1 answer
  • Why is continual user involvement a useful way to discover system requirements? Under what conditions might it be used? Under wh
    5·1 answer
  • A network design engineer has been asked to design the IP addressing scheme for a customer network. The network will use IP addr
    6·1 answer
  • Write a program that prints the U.S. presidential election years from 1792 to present day, knowing that such elections occur eve
    9·1 answer
  • As a digital investigator for your local sheriff’s department, you have been asked to go with a detective to a local school that
    13·1 answer
  • Suppose that, even unrealistically, we are to search a list of 700 million items using Binary Search, Recursive (Algorithm 2.1).
    11·1 answer
  • Write a function called st_dev. St_dev should have one #parameter, a filename. The file will contain one integer on #each line.
    7·1 answer
  • Consider the following 3-PARTITION problem. Given integers a1; : : : ; an, we want to determine whether it is possible to partit
    10·1 answer
  • Fill in the missing word in this program. class TooWide(Exception): pass answer = input('How wide is it? ') width = float(answer
    7·1 answer
  • Write a program that uses the Purchase class in 5.13. Set the prices to the following: Oranges: 10 for $2.99 Eggs: 12 for $1.69
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!