Build a menu-driven application

Assignment Help Python Programming
Reference no: EM131465026

Project Description: For project we are going to build a menu-driven application that will allow a user to maintain their collections. For example, I might have a coin collection, or a record collection, or a collection of all my valuable items.

An Item includes the following properties:
- Category - the category the item belongs to. For example, 'Records', 'Antiques', 'Coins', etc.
- Description - the description of the item. For example, 1940 Sewing machine
- Value - the value of the item in dollars
- Quantity - the number of items of this type that I have. For example, I might have two 1940 Sewing Machines

A Collection contains Item objects as described above.

The main menu is as follows:

Welcome to my Collection Manager
1. Display all items in my collection
2. Display all categories of my items
3. Display all items in a given category
4. Search for an item by description
5. Add an new item to my collection
6. Display all items above a given value
7. Calculate the total value of my collection S. Save to disk
L. Load data from disk
Q. Quit

Please enter a setection:

The following functionality should be implemented for the following menu items:

1. Display all items in my collection All items in the collection should be displayed in a nicely formatted table, for example:

Description

Category

Value Amount

Moby Dick

Book

10.00

1

War and Peace

Book

50.00

1

Desk

Antique

250.00

1

1924 silver Dollar

Coins

37.50

5

Sewing Machine

Antique

450.00

1

Beatles - Let it Be

Record

125.00

1

2. Display all categories of my items
Please enter a selection: Categories
Book
Antique Coins
Record

3. Display all items of a given category

Please enter a selection: 3 Enter category: Antique

Items for category: Antique

Description                  Category              Value Amount

Desk                             Antique                250.00      1

Sewing Machine               Antique             450.00     1

If the provided category does not exist a message should be displayed to the user.

4. Search for an item by description

Please enter a selection: 4

Enter item's description: Desk

Description                    Category             Value   Amount

Desk                               Antique              250.00      1

If the provided item description does not exist a message should be displayed to the user.

5. Add a new item to my collection
Please enter a selection: 5
Enter the item's category: Coin
Enter the item's description: 1925 Sitver Dottar Enter the item's value: 75.00
Enter the item's quantity: 1
Item added

6. Display all items above a certain value
Please enter a selection: Enter the value: 100.00
Items over $100.00

Description                    Category              Value   Amount

Desk                               Antique              250.00     1

Sewing Machine                 Antique              450.00     1

Beatles - Let it Be            Record               125.00     1

7. Display the total value of my collection

Please enter a selection: Collection value: $1072.50

S. Save data

Please enter a se'ection: Data saved...
Save the Collection data to a file on disk.
Note: this is already implemented by my using pickle
L. Load data from disk
Please enter a sel.ection: Data Loaded.
Load data from a disk file and initialize the collection from this data. Note: this is already implemented by my using pickle
Q. Quit
Please enter a selection:
Thanks for using my Collection Manager
Exit the application.

Implementation Details

This application must be implemented using the Object-Oriented features of Python. I will provide the main template for the assignment as a Python file.
Your solution MUST include classes for the Item and Collection. These are provided in the template. I have already implemented the Item class and I have also provided some of the implementation for the Collection class.

I am also providing the implementation for the main function, which handles user menu selection and calls the appropriate Collection class methods depending on the user selections.

You MUST complete the implementation of the Collection class. Please refer to the inline documentation in the provided Python file as well as the video demo that I will provide.

I chose to provide a partial implementation because it is important that you can understand someone else's code and be able to extend and modify it to solve a problem. Professional programmers spend most their time working with code that was written by someone else.

Attachment:- project.pdf

Reference no: EM131465026

Questions Cloud

Kinds of monsters that threaten our safety or way of life : we have our own kinds of "monsters" that threaten our safety or way of life.
When you declare the variable before the block begins : In order to use a variable both with a try or catch block and afterward, you must declare the variable before the __________ block begins.
The need-to-know or least privilege guideline : The "need-to-know" or "least privilege" guideline is one of the security principles for assuring ___.
Should jerry go to the general manager : The award of the Scott contract on January 3, 1987, left Park Industries elated. The Scott Project, if managed correctly, offered tremendous opportunities.
Build a menu-driven application : Build a menu-driven application that will allow a user to maintain their collections. For example, I might have a coin collection, or a record collection, or a collection of all my valuable items.
Conglomerate lines within the host and source countries. : Multinational enterprises may diversify their operations along vertical, horizontal, and conglomerate lines within the host and source countries.
Write brief description of three challenges a social worker : Write a brief description of three challenges a social worker might face when developing a genogram with an individual or family.
Example of our legal system finding a loophole : Is this an example of our legal system finding a loophole in the law and attempting to extract a large financial settlement with a successful corporation?
Security controls are the mechanisms : Security controls are the (main) mechanisms/means used to reduce risk consequence and risk likelihood:

Reviews

len1465026

4/17/2017 3:44:23 AM

I need a menu created in Python. For project 5 we are going to build a menu-driven application that will allow a user to maintain their collections. For example, I might have a coin collection, or a record collection, or a collection of all my valuable items. You MUST complete the implementation of the Collection class. Please refer to the inline documentation in the provided Python file as well as the video demo that I will provide. I chose to provide a partial implementation because it is important that you can understand someone else's code and be able to extend and modify it to solve a problem. Professional programmers spend most their time working with code that was written by someone else.

Write a Review

Python Programming Questions & Answers

  Display the percent-ages of the overall grade

Write a program that uses a bar chart to display the percent-ages of the overall grade represented by the project, quizzes the midterm exam and the final exam

  Output the starting position and length

X Strings: Input a string. Output the starting position and length of the first occurrence of the longest substring of capital Xs in that string. The first letter is in position 1.

  Prepare program that will compute tip and tax on meal price

CS21A Lab 3: Functions- Write a program that will calculate a XXX% tip and a 6% tax on a meal price. Python comes with a standard library of functions. Some of the functions that you have used already are input, type, and range.

  Write a non-fruitful function drawequitriangle

Write a non-fruitful function drawEquitriangle(someturtle, somesize) which calls drawPoly from the previous question to have its turtle draw a equilateral triangle

  Aussie best car abcdeclares that based on its yearly sales

aussie best car abcdeclares that based on its yearly sales it will award a bonus as follows. the bonus will be equally

  Identify whether an individual character is a numeric digit

You may identify whether an individual character is a numeric digit via expr[pos].isdigit() There are similar funtions isalpha for letters and isalnum for alphanumerics (letters or digits).

  Find the number of vowels in the string

Using list and one definition for find the Number of vowels in the String.

  Write a function comp(d1,u1,d2,u2)

Write a function comp(d1,u1,d2,u2)

  Write a function that will take two arguments

Write a function that will take two arguments: a word to be searched for and a list of strings containing the grid and write code to read, in turn, each line of the file, remove the newline character and append the resulting string to a list of stri..

  Evaluate a user''s expression

Write a function that will evaluate a user's expression. It should call the getExpression function that you previously wrote to get the expression to evaluate from the user. You should evaluate the expression step-by-step.

  Write a python script that will implement the given command

Write a python script that will implement the following command: The idea is that the contents of sourcedirectory1 and sourcedirectory2 are going to be copied and merged together into a new destination directory.

  Create a python program that allows user enter class name

Create a Python program that allows user enter class name, faculty name, name of each student, and letter grade each student earned.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd