Question: Solve this problem using MATLAB. COMMENTS YOU CANNOT USE : goto , return . Key programming concepts: variables, input, output, if statements. Your ice cream
Solve this problem using MATLAB. COMMENTS YOU CANNOT USE: goto, return.
Key programming concepts: variables, input, output, if statements.

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
Get step-by-step solutions from verified subject matter experts
