Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

python-challenge-1

Requirements

Order System (54 points)

An order list is initialized. (2 points)

Line 55

User is prompted for their menu item selection and it's saved as a variable menu_selection. (4 points)

Line 83

User input menu_selection is checked as a number and an error is printed if it is not. (4 points)

Line 86 / 161

menu_selection is converted to an integer. (2 points)

Line 90

An if-else statement is used to check if menu_selection is in the menu_items keys, and an error is printed if it isn't. (4 points)

Line 135

The item name of the customer's selection is extracted from the menu_items dictionary and stored as a variable. (4 points)

Line 135

The customer is prompted for a quantity of their item selection and the value defaults to 1 if the customer does not input a valid number. (10 points)

Line 137

The customer's selected item, price, and quantity are appended to the order list in dictionary format. (10 points)

Line 142

A match-case statement is used to check if the customer would like to keep ordering, and performs the correct actions for y, n, and default cases. (10 points)

Line 165

The match-case statement converts the use input to lowercase or uppercase before checking the case. (4 points)

Line 164

Order Receipt (46 points) A for loop is used to loop through the order list. (10 points)

Line 185

The value of each key in each order dictionary is saved as a variable. (6 points)

Line 186

The number of formatting spaces are correctly calculated. (6 points)

Line 182

Space strings are created using string multiplication. (4 points)

Line 182

The customer's order is printed with the item name, price, and quantity. (6 points)

Line 192

List comprehension is used to calculate the total price of the order. (10 points)

Line 196

The total price of the order is printed to the screen. (4 points)

Line 197

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages