ShinRa
Companion Cube
- Joined
- Jun 23, 2003
- Messages
- 5,044
- Reaction score
- 84
Guys, I am so desparate right now its not even funny. I have to write an incredibly simple program, and if i dont, i fail out of the course. If i fail out of the course, I wont get into the college i wanted to. I am begging you, someone please, if anyone has java experience, can someone please write the code for me for this program?
This is what the sheet says:
Different packages of ground beef have different percentages of fat and different costs per pound. Write a program that asks the user for:
1. The price per pound of package "A"
2. The percent lean (non-fat) in package "A"
3. The price per pound of package "B"
4. The percent lean (non-fat) in package "B"
The program then calculates the cost per pound of lean (non-fat) beef for each package and writes which is the best value.
Example:
Price per pound package A: 2.89
Percent lean package A: 85
Price per pound package B: 3.49
Percent lean package B: 93
Package A cost per pound: 3.4
Package B cost per pound: 3.75
Package A is the best value.
Assume the two packages will not come out equal in value. Input must be verified. Currency must be verified as such.
And thats it. If anyone, ANYONE, with the littlest programming skill who knows what to do, please I beg of you to write the code for me. If not, I'm going to fail and not go to college, I'm really not kidding. Please help out a man in desparate need. All I need is the .java file with the code in it.
God bless anyone who helps me.
This is what the sheet says:
Different packages of ground beef have different percentages of fat and different costs per pound. Write a program that asks the user for:
1. The price per pound of package "A"
2. The percent lean (non-fat) in package "A"
3. The price per pound of package "B"
4. The percent lean (non-fat) in package "B"
The program then calculates the cost per pound of lean (non-fat) beef for each package and writes which is the best value.
Example:
Price per pound package A: 2.89
Percent lean package A: 85
Price per pound package B: 3.49
Percent lean package B: 93
Package A cost per pound: 3.4
Package B cost per pound: 3.75
Package A is the best value.
Assume the two packages will not come out equal in value. Input must be verified. Currency must be verified as such.
And thats it. If anyone, ANYONE, with the littlest programming skill who knows what to do, please I beg of you to write the code for me. If not, I'm going to fail and not go to college, I'm really not kidding. Please help out a man in desparate need. All I need is the .java file with the code in it.
God bless anyone who helps me.