Preview

programming problem

Satisfactory Essays
Open Document
Open Document
980 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
programming problem
CheckPoint: Programming Problems

Complete the programming problems 1 and 2 as described below. DO NOT COMPLETE THE PROBLEMS FROM THE TEXT

For each of the following problems, use the top-down modular approach when writing the pseudocode to design a suitable program to solve each problem. Be sure to include an “analysis” for each problem. Note: you need to write 2 separate programs that will handle each problem separately. That means you will also have 2 analyses.

Problem 1

Design a program that will ask a user to input the names of inventory items, the quantity of the items currently in inventory, and the cost of the items. The user will enter “999” as the item name when they are finished and have no more items to enter. Create a file named “INVENTORY” with records with the following format:

Item name, quantity, cost

Problem 2

Design a program that will read and display the contents of the INVENTORY file created in Problem 1. Each inventory record should appear a on a separate line and include the total value of inventory (quantity multiplied by cost) for that item. Also create column headings to be displayed one time only. At then end of the display provide a statement identifying the total cost of inventory for all inventory items. For example,

Item Name Quantity Cost Total Value

Hammers 200 1.00 200.00
Screw drivers 100 1.25 125.00

Total value of inventory is 325.00

Provide the analysis and pseudocode (no diagrams are required) for each problem.

Post as a single attachment in the eCampus Assignment section.
CheckPoint: Programming Problems

Complete the programming problems 1 and 2 as described below. DO NOT COMPLETE THE PROBLEMS FROM THE TEXT

For each of the following problems, use the top-down modular approach when writing the pseudocode to design a suitable program to solve each problem. Be sure to include an “analysis” for each problem. Note: you

You May Also Find These Documents Helpful