CS253: Software Development with C++

Fall 2020

Requirements

Show Lecture.Requirements as a slide show.

CS253 Requirements

Homework Requirements

Example

Consider the requirements for a homework assignment:

Read two integers. If the first isn’t divisible by the second, print “Oops!”

You might reason:

All numbers are divisible by all other numbers, just not evenly (forgot about zero). So, I never have to print “Oops!”

Or, you might think:

The assignment doesn’t say what to do if it is divisible. I’ll print “Oops!” unconditionally!

That sort of reasoning might succeed in court—not here.

Use Your Head

Real World

made at imgflip.com

Real World