Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this task, you should create a simple accounting program, in the main menu of the application you will have the following options: 1.
In this task, you should create a simple accounting program, in the main menu of the application you will have the following options: 1. Create Receipt 2. Add Item 3. Edit Item 4. Delete Item 5. Exit if you entered 1, you should allow the user to add item code and quantity, and if the user adds 0 as the code the program will print the receipt. Enter Selection: 1 Enter Item Code: 100 Enter Item Qty : 2 Enter Item Code: 101 Enter Item Qty : 1 Enter Item Code: 110 Enter Item Qty : 1 Enter Item Code: 0 -Receipt- ITEM NAME QTY PRICE TOTAL Item 100 Name 2 1.00 2.00 Item 101 Name 1 5.00 5.00 Item 110 Name 1 10.00 10.00 TOTAL: $17.00 if the user entered 2: Enter Selection: 2 Enter Item Code : 101 Enter Item Name : Item 101 Name Enter Item Price: 1 Item saved! if the user entered 3: Enter Selection: 3 Enter Item Code : 101 Enter Item New Name : (If empty leave it as it is) Enter Item New Price: 2 Item saved! if the user entered 4 : Enter Selection: 3 Enter Item Code : 101 Item deleted! All items should be saved in a text file items.txt. Think about your program, and design your UML digram, then solve the code.
Step by Step Solution
★★★★★
3.49 Rating (156 Votes )
There are 3 Steps involved in it
Step: 1
ANSWER The following is the source code for the program It has the fuction to add delete modify and search record Moreover the receipt function demanded was done under show record function which shows ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started