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, 22.06.2019 17:40
Gabe wants to move text from one document to another document. he should copy the text, paste the text, and open the new document highlight the text, select the cut command, move to the new document, make sure the cursor is in the correct location, and select the paste command select the save as command, navigate to the new document, and click save highlight the text, open the new document, and press ctrl and v
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most? a)give the file a unique name b)name the file in yymmdd format c)use descriptive name while naming the files d)use capital letters while naming the file
Answers: 3
question
Computers and Technology, 23.06.2019 04:00
Laire writes a letter to her grandmother, in which she describes an amusement park she visited last week. she adds pictures of that place in her letter. which feature of a word processing program will claire to remove unwanted parts of the pictures?
Answers: 3
question
Computers and Technology, 23.06.2019 15:00
Plz ( which is an example of a good url?
Answers: 1
You know the right answer?
Import java. util. Scanner;
class Main
{

public static void main(String[] a...
Questions
question
Mathematics, 23.09.2019 22:00
Questions on the website: 13722362