In this task, you should create a simple accounting program, in the main menu of the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
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 the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
1) You should create a scenario for 3 separate transactions that address the following issues A-Issue stock at an amount above par value in the 3rd quarter, B-Declare in quarter 2 and distribute in...
-
ITEM NO. QTY UNIT DESCRIPTION UNIT PRICE TOTAL 1 1 PCS UMBRELLA RACK STAND ORGANIZER 4,375.00 4,375.00 2 1 PCS TOWEL RACK 450.00 450.00 3 17 PCS SPRAY BOTTLE (MEDIUM) 30.00 510.00 ***NOTHING...
-
Accounting Quiz Chapter 3 Saved Help Save & Exit Submit 1 Required information Part 1 of 15 The Foundational 15 (LO3-1, LO3-2, LO3-3, LOQuiz Chapter 3 Saved Help Save & Exit Submit 1 Foundational 3-1...
-
How do complementary assets and social complexity influence a firm's organization?
-
John Brigley, CPA, is the controller of Baden Foods, a large privately owned food processing company located in southern Ontario. Brigley received his designation as a certified professional...
-
4.2 The input-output curve of a gas-fired generating unit is approximated by the following function: H(P) = 120 +9.3P+0.0025P (MJ/h) This unit has a minimum stable generation of 200 MW and a maximum...
-
For each of the following situations, calculate the population standard error of the mean \(\sigma \mathrm{X}^{-}\)and the \(z\)-statistic \((z)\), make a decision about the null hypothesis, and...
-
Assume that the Clampton Company in the previous problem expects to pay income taxes of 40 percent and that a loss on the sale or disposal of equipment is treated as an ordinary deduction, resulting...
-
Remarks: Describe a convention for a hub to find out about its nearby neighbors. You ought to indicate the arrangement of your messages and the size of any message fields. [4 marks] Using the...
-
Novelty Inc. developed a new product in 2020 and its financial results follow. To increase acceptance by retailers, Novelty sold the product to retailers with an unconditional right of return, which...
-
compute A=AA, AAAA, and A+. Describe the pattern that emerges, and use this pattern to find A 1001. Interpret your answers geometrically, in terms of rotations, reflections, shears, and orthogonal...
-
The rate of hydrolysis, K, of methyl acetate is 4 times faster at 25 C than at 4.6 C. Using the Arrhenius expression for reaction rate, Ea K = K exp(-4) KBT where Ko, the theoretical rate of...
-
In the protein, the side chains of the amino acids (denoted by R) are exposed to different environments in the cell. Below is a fragment of a cell membrane with the channel protein spanning the...
-
1. A student determines the freezing point of a solution of 0.92 g of unknown in 23.78 g of t-butyl alcohol. He obtains the following time and temperature readings (times are in minutes, temperatures...
-
A student proposes the following Lewis structure for the dinitrogen monoxide (NO) molecule. N=0=N Assign a formal charge to each atom in the student's Lewis structure. atom left N ** O right N formal...
-
Describe the separation techniques of decantation, filtration, extraction, and sublimation. Compare homogenous and heterogenous mixtures, provide a definition for each one of them and state the...
-
Kim and Walter come to see you as they are having problems making ends meet each month. They are starting to miss payments because their expenses exceed their income each month. You have prepared...
-
Prove the following D,(cos x) = - sin x (Hint: Apply the identity cos(A + B) = cos A cos B sin A sin B)
-
An airplane uses a parachute and other means of braking as it slows down on the runway after landing. Its acceleration is given by a = -0.0035v2 -3 m/s2. Since a = dv/dt, the rate of change of the...
-
The position x as a function of time of a particle that moves along a straight line is given by: x(t) = (-3 + 4t)e-0.4t ft The velocity v(t) of the particle is determined by the derivative of x(t)...
-
Write a user-defined function that multiplies two polynomials. Name the function p=polymul t (pl1, p2). The two input arguments pl and p2 are vectors of the coefficients of the two polynomials. The...
-
Are there actually situations in which the use of one or more of the older sales technologies might be superior to something new? When and why would older approaches perhaps be a better choice in...
-
Consider any three of the newer types of sales technology presented in the chapter. For each, provide as many specific applications as you can think of that could enhance the buyerseller relationship...
-
Why would a salesperson be reluctant to adopt CRM? What can management do to help gain salesperson adoption and usage?
Study smarter with the SolutionInn App