Application that will allow user to maintain collections

Assignment Help Python Programming
Reference no: EM131477196

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: EM131477196

Questions Cloud

Calculate the minimum variance portfolio : Consider the following statistics for a portfolio composed of shares of Companies A and B.
Create and convert to excel a profit and loss budget : Create and convert to Excel a Profit and Loss Budget for 2021 based on the following information. Monthly expected sales increase: 3% (compounding)
How it is impacting business processes and applications : Discuss how IT is impacting the business processes and applications of e-Business? Is change control necessary for use of modified technologies?
Were there advantages to diversifying between the two stock : Consider the monthly returns for Ford and General Motors stock given below. Were there advantages to diversifying between these two stocks? Explain.
Application that will allow user to maintain collections : 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.
How do teaching principles varied learning styles : How do teaching principles, varied learning styles (for both nurses and patients), and teaching methodologies impact the approach to education?
What are the return and the standard deviation of portfolio : The following spreadsheet presents data for stocks A and B. What are the return and the standard deviation of a portfolio composed of 30% of stock A and 70%.
Compare a use case description and an activity diagram : Compare a use case description and an activity diagram. Devise scenario in which you would use a case description and devise a scenario in which you would use.
What is the current health status of this minority group : Compare and contrast the health status of the minority group you have selected to the national average.

Reviews

len1477196

4/28/2017 3:54:09 AM

A python Assignment. complete the implementation of the Collection class. I will provide the main template for the assignment as a Python file. 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.

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

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