Design an algorithm that will produce a reorder list of products from a product inventory file. Each input product record contains the item number, the quantity on hand for the item, the quantity on order, the minimum inventory level for that item, and an obsolete code (‘X’ if the item is obsolete, blank if it is not). Your program is to read the product file and determine which items are to be reordered. An item is to be reordered if it is not obsolete and if the quantity of the item currently on hand, plus the amount on order, is less than its minimum inventory level. Print a detail line for each item to be reordered, listing the item number, quantity on hand, quantity on order and minimum inventory level. Print headings and column headings at the top of each page, allowing for 45 detail lines per page, and at the end of the report, print the total number of items to be reordered. A/ Defining table B/ Hierarchy chart C/ Solution algorithm D/ desk checks

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter7: File Handling And Applications
Section: Chapter Questions
Problem 3PE
icon
Related questions
Question

Design an algorithm that will produce a reorder list of products from a product inventory file. Each input product record contains the item number, the quantity on hand for the item, the quantity on order, the minimum inventory level for that item, and an
obsolete code (‘X’ if the item is obsolete, blank if it is not).
Your program is to read the product file and determine which items are to be reordered. An item is to be reordered if it is not obsolete and if the quantity of the item currently on hand, plus the amount on order, is less than its minimum inventory level. Print a detail line for each item to be reordered, listing the item number,
quantity on hand, quantity on order and minimum inventory level. Print headings and column headings at the top of each page, allowing for 45 detail lines per page, and at the end of the report, print the total number of items to be reordered.

A/ Defining table

B/ Hierarchy chart

C/ Solution algorithm

D/ desk checks

Simple Program and Design A Step by step Approach 5th edition

ISBN 1423901320

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Computational Systems
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning