Test Case - 7

Problem Set 4.3.1: Test Case (Class)

  1. Check Odd/Even for an Integer Number.

  2. Check Odd/Even for 5 Integer Numbers.

  3. Check Odd/Even for T Integer Numbers.

  4. Check Odd/Even until negative input.

  5. Check Odd/Even until the end of file.

Demonstration of:

  • Break Test Case Loop on a Condition.

  • Printing Case Number.

  • No New Line at the last output.

  • No Comma at the last output.

Problem Set 4.3.2: Test Case (Practice) [3]

  1. Check whether a Year is a Leap Year or Not.

  2. Check Leap Year or Not for 5 Years.

  3. Check Leap Year or Not for T Years.

  4. Check the Leap Year or Not until there is negative input.

  5. Check Leap Year or Not until the end of file.

Problem Set 4.3.3: Test Case (Practice) More Exercise (End of File, Termination Condition) [4]

  1. Summation of N Number (No Array) (Take Input of a Number in each iteration)

  2. Average of N Number (No Array) (Take Input of a Number in each iteration)

  3. Find the Maximum between N Numbers. (No Array) (Take Input of a Number in each iteration)

  4. Find the Minimum between N Numbers. (No Array) (Take Input of a Number in each iteration)

Last updated