A company is supplying 4 types of soft drinks like Pepsi, Sprite, Orange Soda and a new lemon drink to 100 stores. The company has a new promotion which gives a free dozen of lemon drink for every 24 dozen of Pepsi, for every 30 dozen of Sprite and every 10 dozen of Orange soda. The company provides many discounts on their sales which can be listed as follows:
>2% discount if sale >= $10,000
>3% discount if sale >= $20,000 2% additional discount if the bill is paid within 30 days (counter loop) 10 dozens of free lemon drinks if the total purchased dozen is >= 1000.
Write a program in Java to read the order for the number and type of soft drinks, soda cost, shipping and handling cost, date of invoice, payment date. Then compute the total discount, total number dozens of soda, total number of free soda received, shipping cost, and total cost.
For this problem use the following data
5000 doz Pepsi
6000 doz Sprite
7500 doz orange
$ 1.50 per dozen
$ .25 shipping cost per dozen.
>>2
You should write a program in Java to read the order for the number and type of soft drinks, soda cost, shipping and handling cost, date of invoice, payment date. Then you should compute the total discount, total number dozens of soda, total number of free soda received, shipping cost, and total cost.
The purpose of OOP is to act as a "herding mechanism" that keeps mediocre programmers in mediocre organizations from "doing too much damage". This is at the expense of slowing down productive programmers who know how to use more powerful and more compact techniques.
Now demand an explanation from your teacher as to why is he trying to keep a nigga down with Java
The point of assignments like this isn't to teach you anything about programming, but get you comfortable with the syntax enough that you're not making silly mistakes all the time..
that being said, i'll gladly do your homework for you... in PHP