Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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 yet

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Fundamentals Study Guide

Authors: Dr. Sergio Pisano

1st Edition

B09K1WW84J, 979-8985115307

More Books

Students also viewed these Databases questions