Question: Properly document code using the CIS 161 Coding standards. Use integer type values for grades and averages. Initialize all variables properly. Initialize arrays using loops.
Properly document code using the CIS 161 Coding standards.
Use integer type values for grades and averages. Initialize all variables properly. Initialize arrays using loops.
Read the first and last name for each student.
Read grades, names, and absences from the keyboard input real-time for each student with an infinite amount of grades as follows:
The input request should look like the below for each student (without quotes):
Please enter Student 1s First name:
Please enter Student 1s Last name: (on a newline)
Please enter Student 1grade1:
Please enter Student 1 grade2: (on a newline)
etc.
Terminate the grade input when the entered grade is out of bounds (grades must be between 0 and 100).
Please enter Student 1s absences: (on a newline)
Then, get Student twos first name, last name, grades and absences.
Concatenate the each students First and Last Name so that one variable per student is used in the output for step 8 (below).
Concatenate the output to provide the list of grades in 7a and 7b. Note, casting may be required.
If the number of absences per student is less than or equal to 2, display the first and last name of the student and all grades entered per student and their grade average.
a. The output should be as below (example only based on inputted grades) :
1. Jessie Venturas grades: 90, 90, 95, 99. Average is 93. Jessie Venturas final grade for CIS161 is an A (see grading scale below)
b. If the number of absences is greater than 2, output the following (example):
1. John Wayne was dropped from CIS161 due to 3 absences. (Based on Students name and number of absences entered in step 5)
8. Use logical operators (Chapter 3.4) to accomplish the following: If the student has an A in the class and absences are less than 3 output the following (example) 2 blank lines down:
a. Jessie Ventura has an A and less than 3 absences and should be recommended for Valedictorian of the Century. (on a newline)
Extra credit: Determine if any names (first or last) entered in steps 4.a.i and 4.a.ii are blank. If they are blank, prompt the user to input that name again.
Grading scale:
90-100 A
80-89 B
70-79 C
60-69 D
Below 60 F
P.S Don't use Scanf
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
