Some Questions
Document: Software Engineering 1: Course Notes
Variations
Session 2: Week 3/4
STOP!
If you are completely satisfied that you have got the
WOTCOST.C program working correctly and
satisfactorily, then you can go on to consider the following
questions.
- Are there any restrictions on the numbers that this program can
deal with? Try to find out using very big and very small numbers -
and anything else you can think of.
- What happens if you feed in negative numbers to this
program? What should happen (in your opinion)?
- What happens if you feed in too many numbers? Too few? What should happen?
- What happens if you feed in non-numbers? What should happen?
- If you change things in the program it will generally cause
compiler and/or linker errors. Try to find what is the simplest, most
innocuous, change you can make which gives rise to the greatest number
of weird and incomprehensible error and warning messages
at compile time.
Document: Software Engineering 1: Course Notes
Variations
Session 2: Week 3/4
STOP!
McMullin@ugmail.eeng.dcu.ie
Wed Mar 15 10:20:49 GMT 1995