subject

// DebugFive1 // Adds your lunch bill
// Burger and hot dog are $2.59
// Grilled cheese and fish are $1.99
// Fries are 89 cents
import java. util.*;
public class DebugFive1
{
public static void main(String args[])
{
Scanner input = new Scanner(System. in);
final double HIGH_PRICE = 2.59;
final double MED_PRICE = 1.99;
final double LOW_PRICE = 0.89;
String usersChoiceString;
int usersChoice;
double bill;
System. out. println("Order please\n1 - Burger\n2 - Hotdog" +
"\n3 - Grilled cheese\n4 - Fish sandwich");
usersChoiceString = input. next();
usersChoice == Integer. parseInt(usersChoiceString);
if(usersChoice == 1 && usersChoice == 2)
bill = bill + HIGH_PRICE;
else
bill = bill + MED_PRICE;
System. out. println("Fries with that?\n1 - Yes\n2 - No";
usersChoiceString = input. next()
usersChoice = Integer. parseInt(usersChoiceString);
if (usersChoice = 1)
bill = bill + LOW_PRICE;
System. out. println("Bill is " + bill);
}
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:00
Sam is a data analyst at an advertising firm. he often uses a spreadsheet that contains media ratings details. he would like to filter the spreadsheet data based on different filter criteria. which operators can he use to specify the combination of filter criteria? sam can use the ( blank ) operators to specify a combination of filter criteria.
Answers: 3
question
Computers and Technology, 23.06.2019 17:00
The more powerful, 60 volt cables and the main power shut-off on an hev are both colored orange.
Answers: 1
question
Computers and Technology, 24.06.2019 03:30
Which explains extrinsic motivation? a)motivation in which there is a reward b)motivation that is personally satisfying c)motivation that is personally meaningful d)motivation in which the subject is interesting
Answers: 1
question
Computers and Technology, 24.06.2019 18:50
Which style did jack use on the vocabulary words in reports?
Answers: 2
You know the right answer?
// DebugFive1 // Adds your lunch bill
// Burger and hot dog are $2.59
// Grilled cheese...
Questions
question
History, 02.10.2020 15:01
Questions on the website: 13722360