BuiltWithNOF
Write Code

1. Questions

2. Review Elisa:  Can a computer be a counselor?  Can a computer learn?  What are the limits? Jobs?

3. Review Craps

4. Practice Examination Problems:

     a. Find the average of all even scores in the 80s.

     b. Find the highest score that is odd and below 70.

     c.

Write a program to get scores and ages from the user until the user enters a 0 for the age. If the person is over 65, then add 5 points to their score and output this fact. For all scores at this point, if they are now over 90, output this fact, and get the name of the person. If the user is under 12 years old,  get this person's name and output a message using this name (see below). At the end of the program, output the lowest initial score, the average initial score, how many people were under 12, and how many total bonus points were awarded for  people over 65.
Example output
Enter score
66
Enter  age
75
Your are over 65 and your new score is 80
Enter  score
92
Enter age
44
You are over 90
What is your name?
Jim
Enter score
88
Enter age
33
Enter  score
54
Enter age
11
What is your name?
Tim
Good job,  Tim!
Enter score
0
Enter age
0
The lowest initial score is  44
The average initial score is 75
1 person under 12
A total of 5 bonus points were awarded

[Home] [Syllabus] [Sessions] [Writing Code] [Help] [Setup] [Instructor]