Computers and Technology

// 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);
}
}

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:00, michael3592
When is an original work considered public domain? a. when posted via social media b. when it is posted on the internet c. when a copyright symbol is not included with the piece of work d. when explicit permission is given by the author / owner
Answers: 1
image
Computers and Technology, 23.06.2019 08:00, hernandez09297
What is a scenario where records stored in a computer frequently need to be checked
Answers: 2
image
Computers and Technology, 23.06.2019 11:00, jolleyrancher78
What are the possible consequences of computer hacking? what is computer piracy? describe some examples. what are the effects of computer piracy? what are the possible consequences of computer piracy? what is intentional virus setting? describe some examples. what are the effects of intentional virus setting? what are the possible consequences of intentional virus setting? what is invasion of privacy? describe some examples. what are the effects of invasion of privacy? what are the possible consequences of invasion of privacy? what is an acceptable use policy and what is the purpose of the acceptable use policy what is intellectual property and how can you use it?
Answers: 1
image
Computers and Technology, 23.06.2019 20:00, noah12345678
What multimedia system creates an immersive, real-life experience that the user can interact with?
Answers: 1
Do you know the correct answer?
// DebugFive1 // Adds your lunch bill
// Burger and hot dog are $2.59
// Grilled cheese...

Questions in other subjects:

Konu
Mathematics, 03.03.2020 21:44
Konu
English, 03.03.2020 21:44
Konu
Advanced Placement (AP), 03.03.2020 21:44
Konu
Mathematics, 03.03.2020 21:44