C++ prgramming help

Dev c++ / 4.99
March 11, 2009 at 21:12:36
Specs: Windows Vista, 2gb
I'm having a hard time programing .
IF you could please help me .. i would really appreciate.
Thank you World!

Write a C++ Program that emulates a point of sale

terminal at a Grocery Store. Use as few Global Variables as possible. Consider writing functions that perform the following tasks:
Accepts the Name of an Item
Accepts the Price of an Item
Accepts the Quantity of the item
Accepts a % Discount
Accepts a Tax category
Computes the subtotal of all items purchased
Computes the total tax on all Taxable items
Computes the Total Sales
Suggested Functions
Get_Item – Ask for name and quantity and Price of the item to be purchased
Get_Discount – Asks if the item is to be discounted and if so how much.
Get_Tax – Asks if the item is taxable
Compute_Cost – figures cost of Item

Use a sentinel to stop asking for new items
Keep a running total for Sub total, Tax and Total Sales
Format out put as you go.
Runtime Requirements:
Keep data in straight columns
Start all costs with $
Don't accept negative values
Enter at least 5 items with one example of the following
One non-tax item
One taxed item
One discounted item
One non-discounted item
Invalid input for price, quantity, discount and tax
Is the tax on a discounted item on the full amount or the discounted amount?

Sample Output
Welcome to Dan's Mini Mart
Thanks for purchasing these Items

Enter the name of the Item Soap
Enter the Price of the Item $ 2.35
Enter the quantity purchased 2
Enter the discount in % 15
Is this a taxable item (Y/N) y
Soap is $2.35 X 2 = $4.70 - 15% = $3.99 + Tax of $0.33
Press enter for next item or Q to Quit :
Enter the name of the Item Bread
Enter the Price of the Item $ 1.49
Enter the quantity purchased 3
Enter the discount in % 0
Is this a taxable item (Y/N) n
Bread is $1.49 X 3 = $4.47 - 0% = $4.47 + NoTax
Press enter for next item or Q to Quit :q

Thanks for shopping at Dan's Mini Mart Total Total Final
Cost Tax Cost
$8.47 $0.33 $8.79
Press any key to continue

- arora 786

See More: C++ prgramming help

Report •

March 11, 2009 at 22:25:30
Awesome. When you get past the, "Have people on the Internet do my homework for free" stage, let us know.

If you start doing your homework yourself, but run into problems, feel free to ask us. Make sure to include the code you're having problems with.

If you prefer to have the Internet to do your homework, well, that's an option, too.

Report •
Related Solutions

Ask Question