Software Design – Session 7

Software Design & Development J27C 76

Session Title: while loops

Session Topics

  • Loops & iterations
  • Math.floor
  • Math.random

Files & handouts

Exercise/s

Guessing game v1

Your client would like you to make a number guessing game.

The user will try to guess a number between 1 and 100.

Appropriate messages should be given to the user.

 


View Solution

Guessing game v2

Your client is pleased with the program but would like to extend it by adding a random number to guess.

Ask the user if they wish to play again.

Please update your program!


View Solution