PROBLEM 1 Create a program that prompts for student's final grades in a given class (the grades are integer values in the range 1-9). The program then displays the class grade average, the highest grade, and how many students in the class failed the course (a grade less than 4 is a failing grade). If more than 10 students failed the course a message "The teacher is mad!" is displayed at the very end. An illegitimate input value for grade is used to indicate that there are no more students' grades to be entered. An example running session looks as follow: Enter student's grade: 8 Enter student's grade: 7 Enter student's grade: 3 Enter student's grade: 5 Enter student's grade: 3 Enter student's grade: -1 Class average: 5.2 Highest grade: 8 Number of students that failed the course: 2
Create a program that prompts for student’s final grades in a given class (the grades are integer values in the range 1-9). The program then displays the class grade average, the highest grade, and how many students in the class failed the course (a grade less than 4 is a failing grade). If more than 10 students failed the course a message “The teacher is mad!” is displayed at the very end. An illegitimate input value for grade is used to indicate that there are no more students’ grades to be entered. An example running session looks as follow:
Enter student’s grade: 8
Enter student’s grade: 7
Enter student’s grade: 3
Enter student’s grade: 5
Enter student’s grade: 3
Enter student’s grade: -1
Class average: 5.2
Highest grade: 8
Number of students that failed the course: 2
Write a program to produce the first 100 Fibonacci numbers. A Fibonacci number is one that is the product of the prior two generated numbers. The sequence is seeded with the values of 0 and 1, so that the sequence starts off as 0 1 1 2 3 ... Fibonacci numbers are used in computing hash table locations for file management systems.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images