Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
3
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.81 KB | None | 0 0
  1. A program is required to store, retrieve, and process data.  Below are the processes for the requirements for the program.
  2. 1A menu must be created to allow the user to perform the following tasks:
  3. • Create a file
  4. • Display a file
  5. • Process a file
  6. • Exit the program
  7. 2When the user selects Create a file, the user must be allowed to enter the following data which must be saved to PRODUCT.TXT.
  8. Inventory
  9. Number
  10. =========   Item
  11. Description
  12. =============== Unit
  13. Cost
  14. =========   Markup
  15. %
  16. =========
  17. 10  Hammer  9.00    5
  18. 20  Rake    12.00   50
  19. 30  Saw 25.00   25
  20. 40  Lamp    300.00  30
  21. 50  Sofa    500.00  10
  22.  
  23. 3When 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.
  24.  
  25. 4When the user selects Process the data the following report should be generated:
  26. Inventory
  27. Number  Item
  28. Description Unit
  29. Cost    Markup
  30. %   Markup
  31. Amount  Unit
  32. Price  
  33. 30  Saw 25.00   5%  $9999.99    $99999.99  
  34.             10% $9999.99    $99999.99  
  35.             15% $9999.99    $99999.99  
  36.             20% $9999.99    $99999.99  
  37.             **25%   $9999.99    $99999.99   **
  38.             30% $9999.99    $99999.99  
  39.             35% $9999.99    $99999.99  
  40.             40% $9999.99    $99999.99  
  41.             45% $9999.99    $99999.99  
  42.             50% $9999.99    $99999.99  
  43.  
  44.  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 %.
  45. Calculate and display the following values below each report using the following format:
  46. ## - Markup percentages are available to increase profits.
  47. ## -  Markup percentages are available for sale purposes before selling at cost.
  48. # - 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