Loops Programming Tasks
ONLY upload your HeAD with Code copied as text and Screenshots of console windows with the code running
Complete 5 chips worth of tasks
as always you are being marked on you code, the comments, and the help given in the forum...
You should use a menu in the Sub Main() to take the user to the appropriate solution
Loop Exercises
Beginners Tasks
Write payroll program that asks for the user to enter how many hours they work on each day (just number them 1-->7) and ask for the hourly rate. and outputs the total paymant for the week [2 chips]
Write a times table program that asks the user what times table they would like displayed. Then outputs this first 12 items in the times table one after another with each line using this format 2 x 2 = 4 [2 chip]
Write a program that asks the user to enter ten numbers. the program should output the sum, average, largest and smallest numbers. [2 chip]
Write a program that displays an addition table like this one. you can't easily format the table but clever concatenation or a nested loop should get the desired effect. [3 chips]
1 |
2 |
3 |
4 |
|
1 |
2 |
3 |
4 |
5 |
2 |
3 |
4 |
5 |
6 |
3 |
4 |
5 |
6 |
7 |
4 |
5 |
6 |
7 |
8 |
Write a password protection program (make the password a constant = "password" within the code) [ 3 chips]
Guess the number game
Write a game that asks the user to guess a random whole number between 1 and 100. the computer should tell the user if they are two high two low or correct. [3 chips] for a bonus chip the user should be asked it they want easy, medium or hard. (e.g Easy should have unlimited guesses, medium 10 guesess hard 5 guesses )
Intermediate Tasks
Write a Higher lower game
The game should display a random number between 1 an15 then ask the user to guess if it is higher or lower. the game should then generate a second random number.. If the user guessed correctly then their score should be increased by one and displayed. if they guessed incorrectly the game should end by dosplaying their score and the current max score and asking if they would like to play again
Best of N Rock paper Scissors.
Extend the Rock, Paper, Scissors game that you might of done in the last set of tasks... Ask for a name to be inputted and then the number of games to be played.. the running score for each player should be displayed after each game... After the set number of games the winner should be announced.
Project Euler
At least another 3 tasks knocked off WITH a short paragraph on how you have found a "good" solution (better than brute force)