The Artima Developer Community
Sponsored Link

Java Answers Forum
write a java application

1 reply on 1 page. Most recent reply: Jul 22, 2004 6:53 AM by Jeroen Wenting

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
john

Posts: 4
Nickname: dcool
Registered: Jul, 2004

write a java application Posted: Jul 21, 2004 3:40 AM
Reply to this message Reply
Advertisement
The company sells the coffee in 2-kilo bags only, and the price of a single 2-kilo bag is £5.50. When a customer places an order, the company ships the order in boxes. The boxes come in three sizes: the large box holds twenty 2-kilo bags, the medium 10 bags and the small 5 bags. The cost of a large bag is £2, a medium box is £1 and a small box is £0.50. The order is shipped using the least number of boxes. For example, the order of 25 bags will be shipped in two boxes, one large and one small. Develop a Java program that computes the total cost of an order. Display the output in the following format.

please enter number of bags ordered:
25
number of bags ordered: 25 - £137.5
boxes used:
1 large - £2.0
1 small - £0.5
your total cost is £140.0.

the programm should also work on all instances that is when both large bags are used and also were all bags are used.
Thanks


Jeroen Wenting

Posts: 88
Nickname: jwenting
Registered: Mar, 2004

Re: write a java application Posted: Jul 22, 2004 6:53 AM
Reply to this message Reply
Minimal fee is for 1 week of 40 hours at €150 an hour.
I look forward to your payment so I can get working on doing your homework for you.

Cash only, no checks or foreign currency accepted, no creditcards.

Flat View: This topic has 1 reply on 1 page
Topic: How to pass an object in Response Previous Topic   Next Topic Topic: how to draw different color lines

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use