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

1 Expert Approved Answer
Step: 1 Unlock

include include include includ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (2 attachments)

PDF file Icon

635f5d9d48733_231836.pdf

180 KBs PDF File

Word file Icon

635f5d9d48733_231836.docx

120 KBs Word File

Students Have Also Explored These Related Programming Questions!