Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ICS3U Loops Exercises #1-6_Ver2 While Loop Exercises Sample Output: 1. Write a program which generates a Ver3_Text Based Coding - Bundle5. LoopsWhi random number between

imageimage
ICS3U Loops Exercises #1-6_Ver2 While Loop Exercises Sample Output: 1. Write a program which generates a Ver\3_Text Based Coding - Bundle\5. Loops\Whi random number between 1 and 10. Im thinking of a number between 1 and 10. . . Prompt the user to guess the I think it's. . . 10 Wrong ! number. Continue prompting the I think it's. . . 9 user for a guess until the proper Wrong! number is guessed. I think it's. . . 5 Wrong ! I think it's. .. 6 Save as: WhileEX1_LastName Correct ! > > > 2. Modify your program in question #1 Ver\3_Text Based Coding - Bundle\5. Loops\Whil by generating a number between 0 I'm thinking of a number between 1 and 100. . . I think it's. .. 5 and 100. After each guess, tell the Too low! user whether the guess was Too High! I think it's. . . 10 or Too Low! Too low! I think it's. . . 50 Save as WhileEX2_LastName Too low! I think it's. . . 60 Too low! I think it's. .. 80 Too low! I think it's. . . 90 Too high! I think it's. . . 81 You got it! 3. Write a program which will prompt a user to enter a series of natural = RESTART: C:\Users\Carmeli numbers. When the user enters a 0 or Ver\3 Text Based Coding - a negative number the program will Enter a number: 10 end and display the lowest and Enter a number: 20 highest numbers in the series. Enter a number: 55 Enter a number: -4 Save as WhileEX3_LastName Min: 10 Max: 55 Accumulator & Counters Exercises Sample Output: 4. Write a program which will ask a user Ver\3_Text Based Coding - Bundle\5. Loops\ACCEX1.p; to enter a series of names until the Enter a name (enter End to end the program) : Tom word "End" is entered. The program Enter a name (enter End to end the program) : David will then display the number of names Enter a name (enter End to end the program) : John Enter a name (enter End to end the program) : End entered. You entered 3 names Save as: AccEX1_LastNameICS3U 5. Write a program which will ask a Enter 10 scores: user to enter 10 scores. The 1 program then displays the average of the 10 scores. 3 4 5 Save as: AccEX2_LastName 7 9 10 The average of your 10 scores is 5.5 6. Modify the High/Low program (WhileEX2) so that it will display the I'm thinking of a number between 1 and 100. .. number of attempts the player I think it's. .. 50 made before guessing the right Too low! number. I think it's. . . 80 Too high! Save as: AccEX3_LastName I think it's. . . 70 Too high! I think it's. . . 60 Too low! I think it's. . . 65 Too high! I think it's. .. 63 You got it! And it only took you 6 guesses! > > >

ICS3U Loops Exercises #1-6_Ver2 Sample Output: Ver\3_Text Based Coding Bundle\5. Loops\Whi Im thinking of a number between 1 and 10... I think it's... 10 Wrong! I think it's... 9 Wrong! I think it's... 5 Wrong! I think it's... 6 Correct! >>> | While Loop Exercises 1. Write a program which generates a random number between 1 and 10. Prompt the user to guess the number. Continue prompting the user for a guess until the proper number is guessed. Save as: WhileEx1_LastName 2. Modify your program in question #1 by generating a number between 0 and 100. After each guess, tell the user whether the guess was Too High! I think it's... 10 or Too Low! Too low! I think it's... 50 Too low! Save as WhileEX2_LastName I think it's... 60 Too low! I think it's... 80 Too low! I think it's... 90 Too high! I think it's... 81 You got it! >>> 3. Write a program which will prompt a user to enter a series of natural numbers. When the user enters a 0 or a negative number the program will end and display the lowest and highest numbers in the series. Save as While EX3_LastName Accumulator & Counters Exercises 4. Write a program which will ask a user to enter a series of names until the word "End" is entered. The program will then display the number of names entered. Save as: AccEX1_LastName Ver\3_Text Based Coding - Bundle\5. Loops\Whil I'm thinking of a number between 1 and 100... I think it's... 5 Too low! = RESTART: C:\Users\Carmeli _Ver\3_Text Based Coding - Enter a number: 10 Enter a number: 20 Enter a number: 55 Enter a number: -4 Min: 10 Max: 55 >>> 1 Sample Output: Ver\3_Text Based Coding - Bundle\5. Loops ACCEX1.p: Enter a name (enter End to end the program): Tom Enter a name (enter End to end the program): David Enter a name (enter End to end the program): John Enter a name (enter End to end the program) : End You entered 3 names I

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Matlab An Introduction with Applications

Authors: Amos Gilat

5th edition

1118629868, 978-1118801802, 1118801806, 978-1118629864

More Books

Students also viewed these Programming questions

Question

implement sumofvalues function C + +

Answered: 1 week ago

Question

How does the concept of hegemony relate to culture?

Answered: 1 week ago