# home study engineering computer science questions and answers in this lab you add a 5192166

home / study / engineering / computer science / questions and answers / in this lab, you add a loop and the statements … Question In this lab, you add a loop and the statements that make up the loop body to a visual basic program provided with the data files for this book. When completed, the program should calculate two totals: the number of left-handed people and the number of right handed people in your class. Your loop should execute until the user enters the character X instead of an L for left- handed or R for right handed. The input for this program are as follows: 1.Open the source code file named leftOrRight.vb 2. Write a loop body that allows you to calculate a total of left-handed and a total of right-handed people in your class. 3. Save this source code file in a directory of your choice, and then make that directory your working directory. 4. Compile the source code file LeftOrRight.vb 5. Execute the program using the data listed above, record the output of this program. &#39; LeftOrRight.vb – This program calculates the total number of left-handed and right-handed &#39; students in a class. &#39; Input: L for left-handed; R for right handed; X to quit. &#39; Output: Prints the number of left-handed students and the number of right-handed students. Option Explicit On Option Strict On Module LeftOrRight Sub Main() &#39; Declarations Dim leftOrRight As String &#39; L or R for one student Dim rightTotal As Integer = 0 &#39; Number of right-handed students Dim leftTotal As Integer = 0 &#39; Number of left-handed students &#39; This is the work done in the housekeeping() procedure leftOrRight = InputBox\$(“Enter L if you are left-handed, R if you are right-handed or X to quit.”) &#39; This is the work done in the detailLoop() procedure &#39; Write your loop here. &#39; This is the work done in the endOfJob() procedure &#39; Output number of left or right-handed students. System.Console.WriteLine(“Number of left-handed students: ” & leftTotal) System.Console.WriteLine(“Number of right-handed students: ” & rightTotal) End Sub &#39; End of Main() procedure End Module &#39; End of LeftOrRight Module