Question

Convert the following Do While loop to a Do Until loop: strInput = String.Empty Do While...

Convert the following Do While loop to a Do Until loop:

strInput = String.Empty

Do While strInput.ToUpper <> "Y"

strInput = InputBox ("Are you sure you want to quit?")

Loop

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Dim strInput As String = String.Empty
Do
strInput = InputBox("Are you sure you want to quit?")
Loop Until strInput.ToUpper = "Y"

use\;until\;instead\;of\;while\;and\;=\;instead\;of\;<>

Add a comment
Know the answer?
Add Answer to:
Convert the following Do While loop to a Do Until loop: strInput = String.Empty Do While...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 11) 16 pts. Convert the following for loop to a while loop. (You may want to...

    11) 16 pts. Convert the following for loop to a while loop. (You may want to do the following question first.) int mine [5] = {10, 11, 12); for (int j=1; j < 5; j++) cout <<j<< "" << mine[jl <<" " << end1; 12) 6 pts. What is the output of the previous question? 13) 4 pts. Circle the variables that would NOT cause syntax errors 2-smaTT , entry# break -my-int

  • using C++ 1. Convert the following while loop into a for loop: int count = 0;...

    using C++ 1. Convert the following while loop into a for loop: int count = 0; while (count < 10) x = count + sin(x); y = count + cos(y); count++;

  • C++ beginners coding: Nested loop, Do-While Code for problem: Until the user wants to quit (by...

    C++ beginners coding: Nested loop, Do-While Code for problem: Until the user wants to quit (by typing "q" or "Q") assume there is a # (assuming it's positive), print all multiple of 3 from 3 to their #. The user should be asked to quit only after one run of the program.

  • c++ convert do while loop below to a for loop #define MAX VALUE 5 #define START...

    c++ convert do while loop below to a for loop #define MAX VALUE 5 #define START VALUE 5 //START_VALUE always <-MAX VALUE int main() convert do while loop below to a for loop int j - MAX VALUE; do cout <<<<endl; ; while > 0); I

  • Q. 07 (2 points) Convert the following while loop to a for loop: int count =...

    Q. 07 (2 points) Convert the following while loop to a for loop: int count = 0; while (count<50) cout<<"count iscounts endl count+

  • Convert the following while loop into a for loop. int 1 - 50: int sum-07 while...

    Convert the following while loop into a for loop. int 1 - 50: int sum-07 while (sum < 1000) sum - sum + 1; Question 35 (2 points) Saved Given an int variable k that has already been declared, use a while loop to print a single line consisting of 80 dollar signs. Use no variables other than k. int sum = 0; for(int i = 100;sum < 10000;1-- sum = sum + i;

  • Is the following statement true for R? "It is always possible to convert a while loop...

    Is the following statement true for R? "It is always possible to convert a while loop to a for loop." True False

  • Convert the following nested for loop into a nested while loop: for(i = 1 ; i...

    Convert the following nested for loop into a nested while loop: for(i = 1 ; i <= rows; i++)                     {                         for (j = 1 ; j <= rows; j++)                             {                                 if (bombCells[i][j])                                     {                                         System.out.print(" * ");                                     }                                 else                                     {                                         System.out.print(" . ");                                     }                             }                         System.out.println();                     }

  • FOR C# PROGRAM Convert the following for loop to a while loop: for (int counter=0; counter<101;...

    FOR C# PROGRAM Convert the following for loop to a while loop: for (int counter=0; counter<101; counter++) { sum += counter; }

  • A simple game of chance Using a while loop write a simple coin flip game. Specifics:...

    A simple game of chance Using a while loop write a simple coin flip game. Specifics: The user starts with a bank of $10.00 It costs a dollar to play A correct guess pays $2.00 The while loop is used for the game loop. It should ask if the user wants to play. The while loop will check for a value of 'Y' or 'N'. You should also allow for lower case letters to be input. You MUST prime the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT