BuiltWithNOF
Write Applications

Test Question: Write a java application that gets test scores from the user until a 0 is entered. For each score tell if it is odd or even. If the current score is the highest you have seen so far, print this fact and get the person’s name.  When the user enters 0, print the average of all the even scores.  Print the name of the person with the highest score. Print how many scores were in the 80s.

More practice:

Write a java application to get pairs of numbers until the sum of the 2 numbers is exactly 10. For each pair of numbers, tell which one is bigger.  When the loop is exited, print how many numbers were even.  Print the average of all the odd numbers.  Print the highest sum for all the pairs of numbers.

Write a java program to get scores from the user until the user enters a number greater than 100. For each number entered, ask the name of the person with this score. If the score is less than 50, tell this person to study more.  When you exit the loop, print the average of all the scores less than 50. Find the highest score in the 80s.

 

[Java at Evergreen] [Syllabus] [To Do List] [Lessons/Programs] [Evaluation/Review] [Help] [FAQ/GWIFO] [Discuss/Reports] [Resources] [Readings] [Portfolio] [Instructor]