A
alck1234
Hi,
I need help on my mini project on object orientated programming. The
question goes like this:
A mini-mart has just installed a bar code reader to improve efficiency
at their checkouts.
Assume that the bar code is to access a file that store the product
descriptions, unit price
and quantity of each product sold in the shop. Assume that there are
only 10 products in
this mini-mart.
The format of the product stored in the file is shown below :
Barcode : a text string of 4 numeric character
Product description : a text string of 20 characters
Unit price : a floating point value
Quantity : an integer
Design the necessary classes and member functions to achieve the
following tasks :
a. Read the list of products available in the mini-mart from a text
file.
b. Allow user to enter the bar code of a product via keyboard and the
quantity
purchase during check out.
c. Display the product description, unit price, quantity and the total
cost of all the
products bought by a customer.
d. Update the quantity of each product in stock after a purchase is
done.
e. Write the bar code and product description to a text file if the
level of stock is less
than 10.
f. Continue the program until user press a ‘Q’ to exit.
Please enlighten me on how can i start to write the program?
Thanks alot
I need help on my mini project on object orientated programming. The
question goes like this:
A mini-mart has just installed a bar code reader to improve efficiency
at their checkouts.
Assume that the bar code is to access a file that store the product
descriptions, unit price
and quantity of each product sold in the shop. Assume that there are
only 10 products in
this mini-mart.
The format of the product stored in the file is shown below :
Barcode : a text string of 4 numeric character
Product description : a text string of 20 characters
Unit price : a floating point value
Quantity : an integer
Design the necessary classes and member functions to achieve the
following tasks :
a. Read the list of products available in the mini-mart from a text
file.
b. Allow user to enter the bar code of a product via keyboard and the
quantity
purchase during check out.
c. Display the product description, unit price, quantity and the total
cost of all the
products bought by a customer.
d. Update the quantity of each product in stock after a purchase is
done.
e. Write the bar code and product description to a text file if the
level of stock is less
than 10.
f. Continue the program until user press a ‘Q’ to exit.
Please enlighten me on how can i start to write the program?
Thanks alot