Before you begin:
- If you have the textbook, read through the end of chapter 2. Pay special attention
to the C programs (particularly pages 21, 63 and 74).
- Read all of the instructions below to make sure you understand the problems completely
before attempting to solve them.
- For each problem, plan to accomplish all parts of the 5-step problem-solving process
outlined in the text:
- Problem statement - okay, so this part is done already, but you still have to verify that
you understand the problems.
- Input/output description - this part is done too: see the sample runs below. Also you
can execute (but not read) our solutions at CSIL to learn more about how we expect your
solutions to work. Run either solution as follows, substituting either
bmi or logbase for PGMNAME :
-bash-4.2$ ~kyledewey/cs16/p1/PGMNAME
Just one clarification: print all floating point values formatted with 1-digit precision.
- Hand example - do this part to know exactly what calculations are necessary, and
the order in which those calculations must be done.
- Algorithm development - we give you some clues about the overall program structures
below, but you must apply what you learned from the hand example to get the
calculations right. In the text's process, this step also includes getting the programs
typed in and working!
- Testing - Don't skip this step. Find and fix your errors before turning in.
|