Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- A program is required to store, retrieve, and process data. Below are the processes for the requirements for the program.
- 1. A menu must be created to allow the user to perform the following tasks:
- • Create a file
- • Display a file
- • Process a file
- • Exit the program
- 2. When the user selects Create a file, the user must be allowed to enter the following data which must be saved to PRODUCT.TXT.
- Inventory
- Number
- ========= Item
- Description
- =============== Unit
- Cost
- ========= Markup
- %
- =========
- 10 Hammer 9.00 5
- 20 Rake 12.00 50
- 30 Saw 25.00 25
- 40 Lamp 300.00 30
- 50 Sofa 500.00 10
- 3. When the user selects Display a file – the data must be retrieved and displayed as a report or a clean fresh screen. The data should be appropriate aligned similar to the above. The user should be able to review the report and press a key to continue.
- 4. When the user selects Process the data the following report should be generated:
- Inventory
- Number Item
- Description Unit
- Cost Markup
- % Markup
- Amount Unit
- Price
- 30 Saw 25.00 5% $9999.99 $99999.99
- 10% $9999.99 $99999.99
- 15% $9999.99 $99999.99
- 20% $9999.99 $99999.99
- **25% $9999.99 $99999.99 **
- 30% $9999.99 $99999.99
- 35% $9999.99 $99999.99
- 40% $9999.99 $99999.99
- 45% $9999.99 $99999.99
- 50% $9999.99 $99999.99
- The report uses the markup percentage to calculate the markup amount and unit price. The initial markup percentage for each item is 5% up to a total of 50 %.
- Calculate and display the following values below each report using the following format:
- ## - Markup percentages are available to increase profits.
- ## - Markup percentages are available for sale purposes before selling at cost.
- # - indicates the number of %’s available to increase profits, or the number of %’s available before selling at cost.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement