Question: Loop1 While(won NUM_GAMES) { lblPrompt.Text= Enter the number of games won from +Min.ToString()+ to +NumOfGames.ToString()+ ;; won=int.Parese(txtPrompt.Text); } ratio=(double)won/NUM/NUM_GAMES; lblResult.Text=Winning percentage: + ratio.Tostring(p); int number=0;

Loop1

While(wonNUM_GAMES)

{

lblPrompt.Text= Enter the number of games won from +Min.ToString()+ to +NumOfGames.ToString()+ ;;

won=int.Parese(txtPrompt.Text);

}

ratio=(double)won/NUM/NUM_GAMES;

lblResult.Text=Winning percentage: + ratio.Tostring(p);

int number=0;

int numOfLoops=0;

String message=;

lblPrompt.Text= Enter the number of time to display: ;

number=int.Pares(txtPromt.Text);

Loop2

Do

{

Message+=numOfLoops+ Make It So );

}

While (numOfLoops

lblResult.Text=message;

Loop3

Message=;

For(numOfLoops=0; numOfLoops

{

Message+=numOfLoops+ -Engage );

}

lblResault.Text=message;

 Loop1 While(wonNUM_GAMES) { lblPrompt.Text= Enter the number of games won from

I. Write the loop body in loop 3, use correct C# syntax. 2. How many iterations in loop 3 if the user types in 5? 3. What is the updating value in loop 3? 4. Which loop(s) is a pretest? Write the corresponding Loop number only. if more than 1 loop satisfies this question, separate each number with a comma in ascending order 5. Which loop(s) is a posttest? Write the corresponding Loop number only. if more than 1 loop satisfies this question, separate each number with a comma in ascending order. 6. Which loop(s) has a sentinel value? Write the corresponding Loop number only. if more than 1 loop satisfies this question, separate each number with a comma in ascending order. 7. What is the test expression in loop 2? 8. What is the control variable in loop 1 9. Is there a loop which is indefinite? If so, which loop number & how do you know? 10. Is there a loop which is infinite? If so, which loop number & how do you know

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!