Variations
Document: Software Engineering 1: Course Notes
Conclusion
Session 2: Week 3/4
Some Questions
If you succeed in getting the basic WOTCOST.C program
working, and you have tested it thoroughly, then you can go on to try
the following:
- WOTCOST1.C: Behaves exactly like the given program,
except that it first displays an additional message like "Welcome to
the WOTCOST program".
- WOTCOST2.C: Behaves like the given program, except
that it expects the interest rate to be entered already as an absolute
value such as 0.15,
rather than as a percentage.
- WOTCOST3.C: Behaves exactly like the given program
- but the variable names are changed to more meaningful ones (like
"principal", "years" etc.).
- WOTCOST4.C: Behaves exactly like the given program
except that it prompts separately for each of the input values to
be entered.
- WOTTIME.C: Similar in concept to the given program;
but it is given the principle, interest rate, and monthly
repayment; it has to calculate how long the loan will take to pay off.
- WOTCOST5.C: Behaves exactly like the given program,
except that it rejects any attempt to enter a negative value for
any of the inputs.
Document: Software Engineering 1: Course Notes
Conclusion
Session 2: Week 3/4
Some Questions
McMullin@ugmail.eeng.dcu.ie
Wed Mar 15 10:20:49 GMT 1995