Hello there, the shopping list has to let the user add, list, and delete items

Hello there, the shopping list has to let the user add, list, and delete items

*The

program should be modular*. For example, you will want to have an add_item(shopping_list) function, a delete_item(shopping_list) function, a display_list(shopping_list) function, a display_menu() function, and a main().

Sample Output:

Welcome to the program!

1. Add an item

2. List all items

3. Delete an item

4. Exit

Enter a menu option: 1

Please enter the item: pears

pears was added to the shopping list

Enter a menu option: 2

1 : pears

Enter a menu option: 3

Which number to delete: 3

pears was deleted

Enter a menu option: 4

have a great day!

Specifications:

·      The program should start with 2 items in the shopping list.

·      Don’t forget to include at the end of the program the code:

o  if __name__ == “__main__”:

main();

·      Use this code for the delete_item(shopping_list) function:

def delete_item(shopping_list):

number=int(input(“Which number to delete: “))

if number<1 or number>len(shopping_list):

print(“Invalid numbern”)

else:

item=shopping_list.pop(number-1)

print(item,” was deletedn”)

print()

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

The program should be modular. For example, you will want to have an add_item(shopping_list) function,

The program should be modular. For example, you will want to have an add_item(shopping_list) function, a

delete_item(shopping_list) function, a display_list(shopping_list) function, a display_menu() function, and a main().

Sample Output:

Welcome to the program!

1. Add an item

2. List all items

3. Delete an item

4. Exit

Enter a menu option: 2

1 : bananas

2 : apples

Enter a menu option: 1

Please enter the item: pears

pears was added to the shopping list

Enter a menu option: 2

1 : bananas

2 : apples

3 : pears

Enter a menu option: 3

Which number to delete: 3

pears was deleted

Enter a menu option: 2

1 : bananas

2 : apples

Enter a menu option: 4

have a great day!

Specifications:

·      The program should start with 2 items in the shopping list.

·      Don’t forget to include at the end of the program the code:

o  if __name__ == “__main__”:

main();

·      Use this code for the delete_item(shopping_list) function:

def delete_item(shopping_list):

number=int(input(“Which number to delete: “))

if number<1 or number>len(shopping_list):

print(“Invalid numbern”)

else:

item=shopping_list.pop(number-1)

print(item,” was deletedn”)

print()

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

With Python, I am trying to get a simple Grade Checker code

With Python, I am trying to get a simple Grade Checker code

This is the following

criteria:

·      100 – 90: A

·      89 – 80: B

·      79 – 70: C

·      69 – 60: D

·      59 and below: F

The sample output would be:

Grade Checker

Enter your grade: 88

You earned a B

Assume the user will enter valid data.

Selection structure needs to be used.

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

With Python, I am trying to get a Change Calculator. When I enter a change amount (example: 33)

With Python, I am trying to get a Change Calculator. When I enter a change amount (example: 33), the program

should display the minimum number of quarters, dimes, nickels, and pennies that one needs to make up the specified number of cents. Assume that the user will enter a valid integer for the number of cents. The program should continue only if the user enters “y” or “Y” to continue.

Sample Output:

Change Calculator

Enter number of cents (0-99): 99

Quarters: 3

Dimes: 2

Nickels: 0

Pennies: 4

Continue? (y/n): y

Enter number of cents (0-99): 55

Quarters: 2

Dimes: 0

Nickels: 1

Pennies: 0

Continue? (y/n): n

Bye!

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"