Hey Friends I Need some start up on bookstore program.

A bookstore named "X" summarizes its monthly transactions by keeping the following information for each book in stock:

Book Identification number,

Inventory balance at the beginning of the month,

Number of copies received during the month,

Number of copies sold during the month.

Write a C++ program that accepts this data for each book and then displays: 1. the input information, 2. an updated book inventory balance, 3. a message and 4. a new order amount.

It should create a report with headings across the page that includes the input information, the updated book inventory balance, a message and the new order amount.

Requirements:

Input: this is the Data for the month of January.

Data: ID# Inventory start  #received   #sold

      1         100          25       110

      2         75           50       150

      3         120          1        121 



Processing Calculation:

New Balance= inventory balance at the beginning of the month + number of copies received during the month - number of copies sold during the month.

Output: Create report with Headings. The headings should identify the store name and the month. There should be column headings for the data in the report, the updated balance, a message field and a new order amount.

For the: Message Field and the New order amount:

1. In case the balance is negative:

display the message "Negative balance" to draw attention to this problem for the store owner.

New order amount= updated balance + 100

2. In case the balance is less than 50 books:

display the message "Low inventory" to draw attention to the store owner.

New order amount= updated balance + 50

3. If the balance is okay:

display the message "Inventory OK"

new order amount=updated balance + 25

--> "pseudo code will work too"
Thanks for the help.
closed account (DSLq5Di1)
What part of the assignment are you having trouble with? take it one step at a time and ask us questions specific to the problem you are stuck on.
Topic archived. No new replies allowed.