Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please solve this in MATLAB so that I could compare it to my own code and see what is wrong Thank you! Your ice cream

image text in transcribedPlease solve this in MATLAB so that I could compare it to my own code and see what is wrong

Thank you!

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: 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 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. 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 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 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 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 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

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

Moving Objects Databases

Authors: Ralf Hartmut Güting, Markus Schneider

1st Edition

0120887991, 978-0120887996

More Books

Students also viewed these Databases questions

Question

Please help me evaluate this integral. 8 2 2 v - v

Answered: 1 week ago