LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 500 users online 221751 members 710 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
greatescape
Interests: "One good thing about music...
Mood: Sick
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
8 online / 14 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

Need help with C++
Replies: 2Last Post Sep. 8, 2008 9:10am by Khadgar
Welcome to LiveWire!
We're Stronger Together.
Join the Community
Single page for this topic Email Print Favorite
( Llane )


Advisor
Reply
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


-------
The Only Thing New In The World, Is The History You Don't Know


9:06 am on Sep. 8, 2008 | Joined: Feb. 2007 | Days Active: 34
Join to learn more about Llane Tennessee, United States | Straight Male | Posts: 105 | Points: 455
LiveWire Humor
Post from this position was omitted due to content violations
Khadgar


Wealthy Hobo

Patron
Reply
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



-------
------
-----
----
---


9:10 am on Sep. 8, 2008 | Joined: Feb. 2006 | Days Active: 721
Join to learn more about Khadgar California, United States | Asexual Male | Posts: 16,438 | Points: 4,067
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic