Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB M3 HW: Robotic Ice Cream. PLEASE DO NOT USE THE 'return' or 'goto' commands. Your ice cream kiosk will sell three different sizes: Small

MATLAB M3 HW: Robotic Ice Cream. PLEASE DO NOT USE THE 'return' or 'goto' commands.

image text in transcribedimage text in transcribed

Your ice cream kiosk will sell three different sizes: Small at $3.99, Regular at $4.99 and Large at $5.99. It also has 4 flavors to choose from: Vanilla, Chocolate, Strawberry, and Birthday Cake, along with 4 different toppings ($0.99 each): Sprinkles, Hot Fudge, Caramel, Brownie Bits. Present this information using the following display in your program: Welcome to the Ice Cream Kiosk! Make your choices below: Sizes: 1) Small 2) Regular 3) Large Flavors: A) Vanilla B) Chocolate C) Strawberry D) Birthday Cake Toppings: E) Sprinkles F) Hot Fudge G) Caramel H) Brownie Bits I) None Your program must calculate the final sales price, including a 6% sales tax, for a single ice cream order. Please note that the user will only make 1 order at a time and can only choose 1 topping per order. If the user tries to place an order that is invalid, simply state this on the screen and end the program (do not try to restart the ordering process). The program should NOT ask any more questions after receiving an invalid option. Sample Output The following test cases do not cover all possible scenarios (develop your own!) but should indicate if your code is on the right track. To guarantee full credit, your program's output should exactly match the output below. Test Case 1: Welcome to the Ice Cream Kiosk! Make your choices below: Sizes: 1) Small 2) Regular 3) Large Flavors: A) Vanilla B) Chocolate C) Strawberry D) Birthday Cake Toppings: E) Sprinkles F) Hot Fudge G) Caramel H) Brownie Bits Enter your size: 5 Invalid size! Please start another order... I) None Test Case 2: Welcome to the Ice Cream Kiosk! Make your choices below: Sizes: 1) Small 2) Regular 3) Large Flavors: A) Vanilla B) Chocolate C) Strawberry D) Birthday Cake Toppings: E) Sprinkles F) Hot Fudge G) Caramel H) Brownie Bits Enter your size: 1 Enter base flavor: A Enter your topping: I Final price with tax: $4.23 I) None COP2271 MATLAB HW3 Test Case 3: Welcome to the Ice Cream Kiosk! Make your choices below: Sizes: 1) Small 2) Regular 3) Large Flavors: A) Vanilla B) Chocolate C) Strawberry D) Birthday Cake Toppings: E) Sprinkles F) Hot Fudge G) Caramel H) Brownie Bits Enter your size: 3 Enter base flavor: u Invalid flavor! Please start another order... I) None Test Case 4: Welcome to the Ice Cream Kiosk! Make your choices below: Sizes: 1) Small 2) Regular 3) Large Flavors: A) Vanilla B) Chocolate C) Strawberry D) Birthday Cake Toppings: E) Sprinkles F) Hot Fudge G) Caramel H) Brownie Bits Enter your size: 2 Enter base flavor: C Enter your topping: G Final price with tax: $6.34 I) None Test Case 5: Welcome to the Ice Cream Kiosk! Make your choices below: Sizes: 1) Small 2) Regular 3) Large Flavors: A) Vanilla B) Chocolate C) Strawberry D) Birthday Cake Toppings: E) Sprinkles F) Hot Fudge G) Caramel H) Brownie Bits Enter your size: 3 Enter base flavor: D Enter your topping: E Final price with tax: $7.40 I) None

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

Concepts Of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

4th Edition

0619064625, 978-0619064624

More Books

Students also viewed these Databases questions

Question

4. Choose appropriate and powerful language

Answered: 1 week ago

Question

3. Would you say that effective teamwork saved their lives?

Answered: 1 week ago