2 Replies - 974 Views - Last Post: 08 December 2006 - 03:48 PM Rate Topic: -----

#1 watanabe  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 08-October 06

NEW to C++ needs help getting off the blocks.

Posted 08 December 2006 - 02:27 PM

required to simulate the operations of a wholesale company which buys products from suppliers (manufacturers or imports) and sells them to retailers. Every client (retailer or supplier) has contact information, such as name, address, contact person, and telephone number. It is assumed that each supplier provides one product, and every retailer can buy many items in one transaction. Suppose there are 5-10 products and each product has a purchase price and a selling price. Your system should hold stock amounts of products. When selling, the system checks the stock amount of the product. If it is greater than the selling amount, the program subtracts selling amount from stock amount, calculates the total price which is based on selling price and prints a receipt slip. If the stock amount is less than the selling amount, the program prints an “out of stock” message and then place an order to the supplier of that product. When ordering, the program should add the ordering amount to the stock amount, calculate the total price of the order which is based on purchase price, and print an order form.

The program should be able to:
a) display stock information;
B) display clients’ information;
c) sell products and show receipt;
d) place order and show order form;

You should use base class to define the same information of clients, use inheritance and polymorphism to declare different data and functions, and use file to store the information of products and clients.

Attached File(s)



Is This A Good Question/Topic? 0
  • +

Replies To: NEW to C++ needs help getting off the blocks.

#2 BitByte  Icon User is offline

  • D.I.C Head

Reputation: 11
  • View blog
  • Posts: 194
  • Joined: 09-August 06

Re: NEW to C++ needs help getting off the blocks.

Posted 08 December 2006 - 03:47 PM

Just posting your assignment like that is not going to get you anywhere. You have to post some of your own code which you have managed to do up to where you are stuck. Everyone else on the forum will tell you the same thing. Post some code then ask for help.
Was This Post Helpful? 0
  • +
  • -

#3 Tareth  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 08-December 06

Re: NEW to C++ needs help getting off the blocks.

Posted 08 December 2006 - 03:48 PM

This isn't something a teacher would give to a begining C++ class without giving the nessicary lectures and/or labs beforehand.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1