Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need help. Task #1 The if Statement, Comparing Strings, and Flags 1. Copy the file PizzaOrder.java (see Code Listing 3.1) from the Student Files or
Need help.
Task \#1 The if Statement, Comparing Strings, and Flags 1. Copy the file PizzaOrder.java (see Code Listing 3.1) from the Student Files or as directed by your instructor. 2. Compile and run Pizzaorder.java. You will be able to make selections, but at this point, you will always get a Hand-tossed pizza at a base cost of $12.99 no matter what you select, but you will be able to choose toppings, and they should Copyright @ 2019 Pearson Education, Inc., Hoboken NJ add into the price correctly. You will also notice that the output does not look like money. So we need to edit Pizzaorder. java to complete the program so that it works correctly. 3. Construct a simple if statement. The condition will compare the String input by the user as his or her first name with the first names of the owners, Mike and Diane. Be sure that the comparison is not case sensitive. 4. If the user has either first name, set the discount flag to true. This will not affect the price at this point yetStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started