Question: Write a C++ application for a small shop. Write Item class with following attributes itemCode itemName itemQuantity itemPrice Where itemPrice is of the type float
Write a C++ application for a small shop.
Write Item class with following attributes
itemCode
itemName
itemQuantity
itemPrice
Where itemPrice is of the type float and item Quantity is of the type int.
Write a methods addItem() as member of class. Write a method sale() in main() function to
On execution display a menu.
Press a to add an item in inventory.
Press s for sale invoice.
Press q to quit.
addItem() method is self explanatory.
On calling sale() method, user is asked to enter itemCode and itemQuantity if itemCode is zero sale() method must print invoice with itemCode, itemName, itemQuantity, and Total Price in each row. Grand Total on last line
Step by Step Solution
There are 3 Steps involved in it
include include include includ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (2 attachments)
635f5d9d48733_231836.pdf
180 KBs PDF File
635f5d9d48733_231836.docx
120 KBs Word File
