Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help! I've been struggling with this question for sometime, any and all advice is very much welcome. Thank you! 3.21 Chapter 3 Decision Program
Please help! I've been struggling with this question for sometime, any and all advice is very much welcome.
Thank you!
3.21 Chapter 3 Decision Program Ask your user to enter an A or a B as follows: Enter option: A or B Allow the user to enter both uppercase and lowercase letters. If an A or a B is not entered, display an error message as follows: Sorry, you should have entered A or B When an A has been entered, ask the user to enter a positive numeric value. Display 50% of that value. The following assumes that the entries are A and 54.50: Enter option: A or B Enter a positive amount for Option A 50% of 54.5 is 27.25 If a positive number has not been entered, display an error message, such as: Invalid amount should enter a number more than If the option entry is a B, perform similar operations, but the entered value is to be negative. The solution that you program is being checked against has used printin0 and not print0 throughout the codeStep 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