Question
In this lab, you work with the same visual Basic program you worked with in labs 5-1 and 5-3. As in those earlier labs, the
In this lab, you work with the same visual Basic program you worked with in labs 5-1 and 5-3. As in those earlier labs, the completed program should print the numbers 0 through 10, along with their values multiplied by 2 and by 10. However, in this lab you should accomplish this using a DO Until Loop. In this lab, you work with the same visual Basic program you worked with in labs 5-1 and 5-3. As in those earlier labs, the completed program should print the numbers 0 through 10, along with their values multiplied by 2 and by 10. However, in this lab you should accomplish this using a DO Until Loop.
1.Open the source code file named NewestMultiply.vb using notepad.
2.Write a do Until Loop that uses the loop control variable to take on the valued 0 through 10.
3. In the body of the loop, calculate the value of the loop control variable multilplied by 2 and by 10.
4. save this source code file in a directory of your choice and then make it that directory your working directory.
5. Compile the source code file NewestMultiply.vb.
' NewestMultiply.vb - This program prints the numbers 0 through 10 along ' with these values multiplied by 2 and by 10. ' Input: None ' Output: Prints the numbers 0 through 10 along with these values multiplied by 2 and by 10. Option Explicit On Option Strict On Module NewestMultiply Sub Main() ' Declarations Const Head1 As String = "Number: " Const Head2 As String = "Multiplied by 2: " Const Head3 As String = "Multiplied by 10: " Dim NumberCounter As Integer ' Numbers 0 through 10 Dim ByTen As Integer ' Stores the number multiplied by 10 Dim ByTwo As Integer ' Stores the number multiplied by 2 Const NUM_LOOPS As Integer = 10 ' Constant used to control loop ' This is the work done in the housekeeping() procedure System.Console.WriteLine("0 through 10 multiplied by 2 and by 10") ' This is the work done in the detailLoop() procedure ' Write your Do Until loop here End Sub ' End of Main() procedure End Module ' End of NewestMultiply module
Step 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