Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Program 1: Test Scores
- Write a program that processes test scores…
- • Read a list of scores in from a file (one per line).
- • Output a letter grade for each as well as “pass” or “fail” (fail is less than 65).
- • Output the number of scores processed and the class average.
- • Output the maximum and minimum scores in the list.
- • Gorilla proofing: Adjust your program to handle negative scores or scores above 100 appropriately.
- Program 2: Square Roots
- Write a program that finds the square root of a number accurate to 3 decimal places without using sqrt!
- • The user inputs the number that needs rooting
- • The computer guesses where to start
- • The computer iterates the following until done…
- ..............................Newguess = 0.5 (lastguess + (number / lastguess) )
- ..............................(How will you test if done without using the squareroot method?)
- • Output each guess.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement