Question: 5. Make the modifications to the switch statement and compile, debug, and run. You should now be able to get crust types other than Hand-tossed.

 5. Make the modifications to the switch statement and compile, debug,

5. Make the modifications to the switch statement and compile, debug, and run. You should now be able to get crust types other than Hand-tossed. Run your program multiple times to make sure all cases of the switch statement operate correctly Task #4 Using a Flag as a Condition 1Write an if statement that uses the flag as the condition. Remember that the flag is a Boolean variable, therefore is true or false. It does not have to be compared to anything. The body of the if statement should contain two statements: a) A statement that prints a message indicating that the user is eligible for a $2.00 discount. b) A statement that reduces the variable cost by 2 Supply the lines of code heze Compile, debug, and run. Test your program using the owners' names (both capitalized and not) as well as a different name. The discount should be correctly at this time Task #5 Formatting Numbers Use a combination of printf statements to format output as currency

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!