Lab 3 Exercises

Page 1 of 2
Lab 3 – Exercises
1.
Obtain a copy of the Visual Logic program outputFiveMessagesBroken.vls. a. Fix its code so that the new version of the program generates the following output:
b.
Use Notepad++ (*.txt file) to write the formal structured pseudocode for the fixed version of the Visual Logic program outputFiveMessagesBroken.vls. i. The pseudocode must use appropriate indentation ii. The pseudocode must use the appropriate keywords
c.
Items 1a (25%) and 1b (25%) are worth 50% of the Exercises Assignment.
2.
Create a Visual Logic program that sums a sequence of 10 consecutive integer numbers. The program should allow the user to enter the starting number in the sequence. For example, if the user enters the starting sequence number 9, the program should display the sum of the 10 consecutive integer numbers: 9, 10, 11, 12, 13, 14, 15, 16, 17, and 18 (which is 135). The program should only accept a starting sequence number ≥ 0 (i.e., positive values). The Visual Logic program is worth 50% of the Exercises Assignment. a. Expected Outputs: i. Invalid Input
Page 2 of 2
ii.
Valid Input
Powered by