Question
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
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