Write a VB program to ask user to assign a value to “i” to find the answer for the following three cases. 1. Case 1. Assume i = 1 and HowMuch = 0 IF i


Write a VB program to ask user to assign a value to “i” to find the answer for the following three cases.




1. Case 1. Assume i = 1 and HowMuch = 0
IF i < 5="">
HowMuch = HowMuch + 1
ELSEIF i = 5 THEN
HowMuch = HowMuch - 5
ELSE
HowMuch = HowMuch + 3
END IF
DISPLAY HowMuch
2. Case 2. Assume i = 5 and HowMuch = 0
IF i < 5="">
HowMuch = HowMuch + 1
ELSEIF i = 5 THEN
HowMuch = HowMuch - 5
ELSE
HowMuch = HowMuch + 3
END IF
DISPLAY HowMuch
3. Case 3. Assume i = 6 and HowMuch = 0
IF i < 5="">
HowMuch = HowMuch + 1
ELSEIF i = 5 THEN
HowMuch = HowMuch - 5
ELSE
HowMuch = HowMuch + 3
END IF
DISPLAY HowMuch



Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here