programming problem

Topics: Problem solving, Programming language, Real number Pages: 5 (980 words) Published: April 26, 2014
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.00200.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 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.00200.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 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...
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • problems and prospects in tripur garment industry Essay
  • Essay about Problems Encountered by Students in Taking Up College Courses
  • Problems Facing Human Services Clients Essay
  • ACC 460 Week 3 Learning Team Ch 4 6 Textbook Problems Research Paper
  • Problem Solving Essay
  • Problem Solving Essay
  • The Research Problem Essay
  • Essay about Problem Energizers

Become a StudyMode Member

Sign Up - It's Free