Software Design – Session 5

Software Design & Development J27C 76

Session Title: Making Decisions

Session Topics

  • True and False
  • Logical Operators
  • If, else, and else if
  • Boolean datatype
  • Comparison operators

Files & handouts

Exercise/s

Password check

Create a simple password program.

The user has to enter the password.

Print comments if the password is correct or incorrect.


View Solution

Grade check

Your client has asked for a simple program that takes in a student’s exam marks as a percentage.

The program should output the student’s grade depending on the mark.

Make sure that the user’s input is within the range.


View Solution