Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1)Write a complete program that asks the user to enter their dice roll value (a number between 2 and 12). If the user's dice roll

1)Write a complete program that asks the user to enter their dice roll value (a number between 2 and 12). If the user's dice roll is seven, print "Congratulations, you've been robbed!" Otherwise, print "Whew! That was close!"

2)

The local Ted & Barrys ice cream parlor place has asked you to help them test an online ordering program. You are to determine which statement(s) will be written to the console that tells the employees which scoops of ice cream the customers have ordered based on the following code.

BEGIN MAIN

CREATE flavor 1

SWITCH (flavor)

CASE 1: PRINT Chocolate

CASE 2: PRINTLINE Butter Pecan

BREAK

CASE 3: PRINT Strawberry

CASE 4: PRINTLINE Vanilla

BREAK

CASE 5: PRINT Rocky Road

BREAK

CASE 6: PRINT Mint Chocolate Chip

DEFAULT: PRINTLINE sundae.

END SWITCH

END MAIN

write the exact output

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

More Books

Students also viewed these Databases questions

Question

4. Choose appropriate and powerful language

Answered: 1 week ago

Question

2. Choose an appropriate organizational pattern for your speech

Answered: 1 week ago