This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: ///// | o o | (| ^ |) | [_] |-----+-----+ |Suzan| +-----+ This is not an art class, so I will not be judging you on your artistic ability. But have fun with your design! Part 2: Write a program SumOfReciprocals that computes the sum of the reciprocals 1/1 + 1/2 + . .. + 1/5 and prints out the result. Also please answer the following questions as comments in the program: 1. When you got the program to run the first time (after correcting syntax errors), was the result 1? 2. Was this the result you were expecting? 3. How did you correct the problem? Grading 80% correct output 10% answering the questions in Part 2 10% style -- 5% each for comments and indentation and spacing...
View Full Document
This note was uploaded on 08/18/2011 for the course COMPUTER S CSC 113 taught by Professor Dr.safwanqasem during the Spring '11 term at King Saud University.
- Spring '11