Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

its java, the programming language us java Activity 1 A new restaurant near university is celebrating its 3rd year of opening. For this occasion, they

image text in transcribed
its java, the programming language us java
Activity 1 A new restaurant near university is celebrating its 3rd year of opening. For this occasion, they are giving away special offers to customers. The manager wants you to write a program for customers that will do the following things: 1. Draw a flowchart in your notebook to show the logic flow of this program. You may read through the rest of the steps to get a better What variables need to be idea, but make sure you create the flowchart before coding declared before starting? What data types must be used? 2. Write your comments! You should always write comments, even if it doesn't say so in the steps/instructions. 3. Have a welcome message to the customer that describes this special event as well as the possible discounts: a 50/50 chance to either get a 20% discount, or a 25% discount. 4. Simulate a coin toss to determine which discount the customer will get. How can you do this using random numbers? 5. Display which discount the customer has received along with a nice message. How will you display a specific message depending on the coin toss's result? TIP Throughout these activities, pay attention to the difference between a switch statement and an if / If else statement. How is the organization different, and how can you take tafobieta Ardilla

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

Step: 3

blur-text-image

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

Seven Databases In Seven Weeks A Guide To Modern Databases And The NoSQL Movement

Authors: Eric Redmond ,Jim Wilson

1st Edition

1934356921, 978-1934356920

More Books

Students also viewed these Databases questions