Question: Write a program segment for the following using CASE. If the value of the character variable CHAR_VAR is A or a, add 1 to integer
Write a program segment for the following using CASE.
If the value of the character variable CHAR_VAR is A or a, add 1 to integer variable JETT. If the value of CHAR_VAR is B or b, subtract Y from Z giving the value to JETT. If the value of CHAR_VAR is C or c, subtract Z from Y giving the value to JETT. Any other value would result to an error message INVALID ENTRY.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
