In this assignment you will be creating a very simple inventory tracking system for a small business called Simple Inc. They keep everything simple and want their software the same way. The inventory system should allow viewing all the records or adding additional records. Simple Inc. only wants to know the basic information: Item Number, Item Category, Cost, City and Date. Simple slogan is keep it simple!
Requirements
1.A menu should be provided for navigation
Should be shown when program is first executed
Should be shown after adding or view has been performed
User should be prompted: (A)dd record, (V)iew records or (Q)uit.
When quitting program, the message Inventory program terminated. should be displayed before termination.
2.Record creation by user
Add one or more records without the need to restart the program
Each attribute of the record will be requested individually
Attributes are described in section 8
3.Records viewed by user
All records are displayed
4.User Should be able to quit program
5.All data will persist whether program is running or not
This means it should be saved to file
Name of the file: inventory.txt
The format of each line is:
6.< Item Number> < space>< Item Category>< space>< cost>< space>< city>< space >< date>n Example record in file: 11111 Household 23.33 J
7.Records will have the following fields
Item Number of type int
Item Category of type string (Assume one word)
Item Cost of type float (should allow only two decimal places)
Item City location of type string (Assume one word)
Item Entry date of type string
Example: 1/9/2017
Example:
Add record, (V)iew records or (Q)uit? A Item Number: 11111 Category: Household Cost: 23.33 City: Jacksonville Date: 10/18/2017 Record has been added. Add record, (V)iew records or (Q)uit? V 11111 Houshold 23.33 Jacksonville 10/18/2017 Add record, (V)iew records or (Q)uit? Q Inventory program terminated.
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference
and should not be submitted as is. We are not held liable for any misuse of the solutions.
Please see the frequently asked questions page
for further questions and inquiries.
Kindly complete the form.
Please provide a valid email address and we will get back to you within 24 hours.
Payment is through PayPal, Buy me a Coffee
or Cryptocurrency.
We are a nonprofit organization however we need funds to keep this organization operating
and to be able to complete our research and development projects.