Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
Please help!
Posted by Matt Gerrans on November 13, 2001 at 4:07 PM
So... what's your question? By the way, call me crazy, but I wouldn't choose killograms for the weight (or even mass) of a teabag, unless this tea is for the jolly green giant. - mfg > I'm new in java programming. > I got two simple question here, hope someone can help me... > Question 1: > Write an application or applet that accept the unit weight of a bag of tea in KG and the number of bag sold and displays the total price of the sale. computed as > > totalPrice = unitWeight * numberOfUnits * 5.99; > totalPriceWithTax = totalPrice + totalPrice * 0.0725; > where 5.99 is the cost per Kg and 0.0725 is the sales tax. Display the result in the following manner. > sample output: > Number of bags sold: 32 > Weight per bag: 5 kg > Price per kg: $5.99 > Sales tax: 7.25% > > Total price: $1027.884 > > Question 2: > A large company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9% of their gross sales for that week. For example, a salesperson that sales $5000 worth of merchandise in a week receives $200 plus 9% of $5000, or a total of $650. You have been supplied with a list of items sold by each salesperson. The values of these items are as follows: > Item Value > 1 239.99 > 2 129.75 > 3 99.95 > 4 350.89 > Develop a java application or applet that inputs one salesperson's items sold for last week and calculates and display the salesperson's earnings. There is no limit to the number of items sold by a salesperson.
Replies:
- slurp ~ Chin Loong November 13, 2001 at 9:24 PM
(24)
- Sure...i'd love to:-) Hiran November 14, 2001 at 3:26 AM
(23)
- wazzzupppp ~~~~ Chin Loong November 14, 2001 at 10:34 AM
(22)
- Wasabi sure packs a kick!!!! Hiran November 14, 2001 at 1:44 PM
(21)
- green green grass by the river Chin Loong November 14, 2001 at 9:00 PM
(15)
- green green grass by the river Matt Gerrans November 15, 2001 at 4:01 AM
(14)
- ba - na - na ? Chin Loong November 15, 2001 at 9:08 AM
(13)
- Interesting..... Hiran November 15, 2001 at 12:12 PM
(12)
- Java and Mocha Matt Gerrans November 15, 2001 at 5:29 PM
(11)
- squishy stuffs Chin Loong November 15, 2001 at 8:23 PM
(10)
- Durians Bill Venners November 21, 2001 at 12:25 PM
(4)
- yes, the spiky ones Chin Loong November 22, 2001 at 7:01 AM
(3)
- oh Chin Loong November 22, 2001 at 7:03 AM
(2)
- Good Food Bill Venners December 01, 2001 at 5:42 PM
(1)
- !?!?!??!? Chin Loong December 02, 2001 at 4:06 AM
(0)
- Thnx Chin Hiran November 18, 2001 at 12:37 AM
(4)
- That's weird Hiran November 14, 2001 at 1:48 PM
(4)
- HTML is Weird Matt Gerrans November 15, 2001 at 4:38 PM
(3)
- heheheh Chin Loong November 15, 2001 at 8:27 PM
(2)
- test again Chin Loong November 15, 2001 at 11:18 PM
(1)
|