Loop & variable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hungmaibaby
    New Member
    • Sep 2008
    • 1

    #1

    Loop & variable

    Hi all Im having difficulty with this problem please help or any advice would be nice
    A hardware store needs to print new price tags for all of the merchandise in the store. The store has an inventory database that contains a record of each item in the store, it's quantity, and the retail price. The inventory database has the following fields:

    File Name: Inventory
    Fields:
    Item number
    Description
    Quantity on hand
    Retail price
    Here are a few sample records from the inventory database:
    Fields --> Item Number Description Quantity on hand Retail Price
    Record 1 --> 6547 "Mail Box" 15 $25
    Record 2 --> 9845 "#2 Screw Driver" 75 $60
    Record 3 --> 1623 "Garden Hose" 26 $8


    Write the pseudocode for a modularized program that will:
    • Read each record from the inventory database
    • Print a price tag for each item in inventory. For example, record 2 will require 75 tags.
    • Count and print the total number of tags printed
    • Sum and print the total retail value of the inventory in the store
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    that seems to be an assignment /home work

    kindly post what you have tried so far to continue discussion on the topic,

    Comment

    Working...