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, 21.06.2019 21:30
Ajeweler designing a pin has decided to use five stones chosen from diamonds, rubies, and emeralds. in how many ways can the stones be selected?
Answers: 3
question
Computers and Technology, 22.06.2019 14:40
You begin your first day of responsibilities by examining the recent is security breach at gearup to get ideas for safeguards you will take. at gearup, criminals accessed the company's improperly-secured wireless system and stole customers' credit card information as well as employee social security numbers. what kind of computer crime did gearup face?
Answers: 3
question
Computers and Technology, 23.06.2019 12:40
Curriculum exam to process a resident's payment, you must click on onesite payments home page. from the a. reports b. my settings o c.transactions o d. rent tab
Answers: 1
question
Computers and Technology, 23.06.2019 18:50
What is transmission control protocol/internet protocol (tcp/ip)? software that prevents direct communication between a sending and receiving computer and is used to monitor packets for security reasons a standard that specifies the format of data as well as the rules to be followed during transmission a simple network protocol that allows the transfer of files between two computers on the internet a standard internet protocol that provides the technical foundation for the public internet as well as for large numbers of private networks
Answers: 2
You know the right answer?
// DebugFive1 // Adds your lunch bill
// Burger and hot dog are $2.59
// Grilled cheese...
Questions
question
English, 06.01.2021 20:00
question
Chemistry, 06.01.2021 20:00
question
Mathematics, 06.01.2021 20:00
question
Arts, 06.01.2021 20:00
question
Mathematics, 06.01.2021 20:00
question
Physics, 06.01.2021 20:00
Questions on the website: 13722361