LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 511 users online 225268 members 996 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
Muffinman
Cool Things: Legacys
Mood: Speechless
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
3 online / 45 MPM
Christmas!
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Adding Reply

Adding Reply
Archived Topic: It will not be bumped to the top of the forum.
Topic Need help with C++
Membername   Not a member? Sign Up Free (takes 20 seconds)
Password   Forgotten your password?
Post

Font:   Size:   Color:

FAQ Keyword Search:
Post Options
Favorites Manager
Notify me of new replies to this topic by email
Notify me of new replies to this topic by private message
Original Post
Llane Posted at 9:06 am on Sep. 8, 2008
I need help with starting this program..if anyone is willing to help me...help would be very appreciative..

A customer in a store is purchasing five items. The prices of the items are:

Apple2.99/lb
Orange4.99/lb
Plum5.99/lb
Grape4.99/lb
Cherry3.99/lb

Write a program that holds the price of items and quantity purchased in variables. It should ask the user to enter the quantity purchased for each item in pounds. Once the user enters the quantity of an item, the program should display the item's name, quantity sold, price, sale amount without tax, and amount with tax in one line. The program should also display the subtotal without tax and subtotal with tax so far (assume tax is 10%) in the next line. After entering quantity for all five items the program should display a detail receipt.

Following is a sample execution (bold letters are user input):

Enter Apple Quantity: 3
Apple2.99/lb3lb9.9710.96
Subtotal9.9710.97
Enter Apple Quantity: 3
Apple4.99/lb2lb9.9810.98
Subtotal          19.9521.95

ITEMQtyPriceAmount

Apple 3lb2.99     9.97
Orange 2lb2.99     9.97

Replies
Khadgar Posted at 9:10 am on Sep. 8, 2008
It's not hard...

but I'm not doing your school assignment for you.

Here is a flowchart:


DISPLAY - prices on screen
\/
INPUT - amount of apples
\/
DISPLAY - apple data
\/
INPUT - amount of plum
\/
DISPLAY - plum data
\/
INPUT - amount of grapes
\/
DISPLAY - grape data
\/
INPUT - amount of cherries
\/
DISPLAY - cherry data
\/
DISPLAY - total data

sparkyjo Posted at 9:07 am on Sep. 8, 2008
Post from this position was omitted due to content violations
All 2 previous replies displayed.