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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 09:00, mimithurmond03
Which is the highest level of the hierarchy of needs model? a. humanity b. intrapersonal c. team d. interpersonal
Answers: 1
image
Computers and Technology, 23.06.2019 19:00, nayo2006
Acompany is hiring professionals for web designing. the firm is small with few resources. they want employees who possess problem-solving skills and can independently carry out responsibilities. which kind of employee should they select?
Answers: 2
image
Computers and Technology, 23.06.2019 20:30, lucywood2024
What is the biggest difference between section breaks and regular page breaks
Answers: 1
image
Computers and Technology, 24.06.2019 00:40, dheydar3506
What is the error in the following pseudocode? module main() call raisetopower(2, 1.5) end module module raisetopower(real value, integer power) declare real result set result = value^power display result end module
Answers: 1
You know the right answer?
Import java. util. Scanner;
class Main
{

public static void main(String[] a...

Questions in other subjects:

Konu
Engineering, 23.06.2021 14:10