Design and write a complete C program including adequate comments to compute the cost in US dollars per hour of our C programming class (COP 1220). The program needs no input, just output. Don't worry about rounding the answer to two decimal places. By default C prints six decimal places for floating point output. For this program the default output is fine.
Use the information in the table below to compute the cost (Assume no other fees apply):
Number of Classes | 13 |
---|---|
Hours per Class | 3 |
Number of Credits | 3 |
Cost per Credit | $50.00 |
Cost for Textbook | $22.75 |
Send comments and mail to pollock@acm.org. |