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

  Assume that the variables gpa , deanslist and studentname

Assume that the variables gpa , deansList and studentName , have been initialized. Write a statement that adds 1 to deansList and prints studentName to standard out if gpa exceeds 3.5.

  Convert inches into yards feet and inches

Convert inches into yards, feet, and inches

  The managing director of aussie best car abc has invited

the managing director of aussie best car abc has invited you to build a new computer system for them in python. the abc

  Assignment on python code

A robot is asked to navigate a maze. It is placed at a certain position (the starting position) in the maze and is asked to try to reach another position (the goal position)

  Write a class named employee

Write a class named Employee that holds the following data about an employee in attributes: name, ID number, department, and job title

  Track the current position and direction of the ball

If the player chooses to play against an automated paddle, your program should control the motion of the paddle. You can track the current position and direction of the ball to estimate whether it should move up or down from its current position.

  Write program that will calculate a tip and a tax on a meal

Write a program that will calculate a XXX% tip and a 6% tax on a meal price. Each programming assignment should have the following header, with italicized text appropriately replaced.

  Write a function trans(m) which returns the transpose

Write a function trans(M) which returns the transpose of an n-by-n matrix M. The matrix M is represented by a list of n lists, each of length n. Transposing M means that each M[i][j] is swapped (once!) with M[j][i].

  Write a python program that executes the steps

Given the previous Introduction, write a Python program that executes the following steps: 1. Asks the user to enter a string (Obj) containing all the object names (see example below); 2. Asks the user to enter a string describing the initial state, ..

  Write a program that generates two integers

Write a program that generates two integers under 100, show them on screen, and prompts the user to enter the sum of these two integers. The program then reports true if the answer is correct, false otherwise.

  Write a python program that prints out a table

Write a Python program that prints out a table of values of all even powers of 2 from 2**0 through 2**32. For each value, print the value in decimal, hexadecimal, and binary.

  Write a program that asks for the users age

Write a program that asks for the user's age. Based on their response print "You can vote" (18 years old or older) or "You can't vote" and also whether or not he/she is a senior citizen (over 64). If senior citizen print "You're a Senior Citizen.

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