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, 22.06.2019 17:30, bl88676
1. before plugging in a new device to a computer you should unplug all other devices turn off the computer turn on the computer 2. many of the maintenance tools for a computer can be found in the control panel under administrative tools display personalization
Answers: 1
image
Computers and Technology, 23.06.2019 05:00, sharkboy578
Acompany is inviting design for its new corporate logo from its users. this is an example of ? a. crowdfunding b. crowdvoting c. crowdsourced design d. crowdtracking
Answers: 3
image
Computers and Technology, 23.06.2019 08:00, Buddy01
Match the items with their respective descriptions.
Answers: 1
image
Computers and Technology, 23.06.2019 11:00, swelch2010
Describe three characteristics of at-risk drivers. a. b. c. describe three characteristics of safe drivers. a. b. c. describe three driver errors that could cause a collision. a. b. c. how will this information affect you as a driver now and in the future? (2-3 sentences)
Answers: 2
You know the right answer?
Import java. util. Scanner;
class Main
{

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

Questions in other subjects: