subject

Import java. util. Scanner;
class Main
{

public static void main(String[] args) {
double flour = (1.5);
double sugar = (2);
double butter = (1.75);
double flour2 = (flour / 40);
double sugar2 = (sugar / 40);
double butter2 = (butter / 40);
Scanner scanner = new Scanner(System. in); System. out. println("how many cookies? ");
double cookies = scanner. nextLine();
double flour3 = (flour2*cookies);
double sugar3 = (sugar2*cookies);
double butter3 = (butter2*cookies);
System. out. println("you need" + flour3 + " flour");

}
}

What is the error in this program and how do you fix it?

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:00
Ihave buncha points. does anyone want any?
Answers: 1
question
Computers and Technology, 22.06.2019 07:00
Idon understand these and need some ! ?
Answers: 2
question
Computers and Technology, 24.06.2019 00:00
Consider the series where in this problem you must attempt to use the ratio test to decide whether the series converges. compute enter the numerical value of the limit l if it converges, inf if it diverges to infinity, minf if it diverges to negative infinity, or div if it diverges but not to infinity or negative infinity.
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
How can we take picture in this app
Answers: 1
You know the right answer?
Import java. util. Scanner;
class Main
{

public static void main(String[] a...
Questions
question
Mathematics, 13.11.2019 08:31
question
Biology, 13.11.2019 08:31
question
Chemistry, 13.11.2019 08:31
question
Mathematics, 13.11.2019 08:31
Questions on the website: 13722367