logo Use SA10RAM to get 10%* Discount.
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Rashad SymonsPsychology
(5/5)

790 Answers

Hire Me
expert
Marcella ArguelloGeneral article writing
(5/5)

609 Answers

Hire Me
expert
George DavinComputer science
(5/5)

586 Answers

Hire Me
expert
Garard BerwickkCriminology
(5/5)

777 Answers

Hire Me
Python Programming

write a program to help Susie produce her list and program should define at least 2 functions to help perform

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

PYTHON create a program for the following:

Your friend Susie has a problem. She goes grocery shopping on a weekly basis, and always seems to forget to buy items that she needs. You have suggested that she make a list before she goes, and have offered to write a program to help Susie produce her list.

The program should define at least 2 functions to help perform the above tasks:

addItem(alist)

The function addItem accepts one parameter, which is a list. This function prompts the user for an item to be added to the list. If the item is not already on the list, the item is added to the end of the list. Otherwise, a message is given indicating that the item is already on the list.

removeItem(alist)

The function addItem accepts one parameter, which is a list. This function prompts the user for an item to be removed from the list. If the item on the list, it is removed from the list. Otherwise, a message is given indicating that the item was not on the list.

printOut(alist)

The function printOut accepts one parameter, which is a list. This function prints out a header: GROCERY LIST followed by a list of all of the items in the list, one at a time.

The main part of your program will start by creating an empty list.   The user will then be allowed to choose any of the following UNTIL he/she wishes to exit.

 

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme

Get Free Quote!

326 Experts Online