Hi so I was doing some java excersies, then I came across this one:
Different packages of ground beef have different percentages of fat and different costs per pound. Write a program that asks the user for:
The price per pound of package "A"
The percent lean in package "A"
The price per pound of package "B"
The percent lean in package "B"
The program then calculates the cost per pound of lean (non-fat) beef for each package and writes out which is the best value.
Thank you for your replies, I was thinking about representing the currency using integers and cents, maybe I should considering the exercise didn't state I couldn't unlike others. I also looked at line 18, could you maybe tell me what formula to use because I have always been extremely lacking in mathematics, and I am talking extremely bad xD.
Also I don't know if you are wondering but if you are, I know I didn't need the parenthesis on line 18 It just helps me somehow hehe.