Answered step by step
Verified Expert Solution
Link Copied!

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 ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Matlab An Introduction with Applications

Authors: Amos Gilat

5th edition

1118629868, 978-1118801802, 1118801806, 978-1118629864

More Books

Students also viewed these Programming questions

Question

Does the person have her/his vita posted?

Answered: 1 week ago

Question

-x/2 x/4 If A = -x/2 and A-1 =6 then x equals

Answered: 1 week ago

Question

11. What kind of words are Brocas patients least likely to use?

Answered: 1 week ago