Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a GUI program named PizzaPricesGUI that prompts the user to choose a pizza size-- S, M, L, Xand then displays the price as $6.99,
Write a GUI program named PizzaPricesGUI that prompts the user to choose a pizza size-- S, M, L, Xand then displays the price as $6.99, $8.99, $12.50, or $15.00, respectively.
Be aware of different error messages that your program should generate: Must use TryParse to evaluate input (see screenshot ----> cheese is not valid, please re-enter size) Character entered is not found in the array of valid character sizes (see screenshot ---> Sorry -- T is an invalid pizza size) The result should look like this screenshot:
Pizza Soe Ode, Form Welcome to Slice of Heaven Pizz3 What size pizza do you want to order? Enter 5 for Small Welcome to Slice of Heaven Pizza What size pizza do you want to order Enter Sfor Welcome to Sice of Heaven Pizza Welcome to Sice of Heaven Pizza What size picrs do youwantto order? What size pizs do youwant to order? for Lage for Lage Place Onder Pace Onder Somy Tis an invalid pzza size Price ia 9899
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