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

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

1 Expert Approved Answer
Step: 1 Unlock

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 ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!