Question: The students' first grades and final grades are entered separately in a vector.(Grades are integers from 0 to 100, assuming that each student enters the
The students' first grades and final grades are entered separately in a vector.(Grades are integers from 0 to 100, assuming that each student enters the exams and that the grades are entered correctly by the user). 40% of the first grade and 60% of the final grade will be calculated for each student and the Semester Grade (SG) will be calculated and kept in a vector.Final grades will be rounded to the nearest whole number.
| Semester Grade (SG) | Letter Success Grades (LSG) |
| 90-100 | AA |
| 82-89 | BA |
| 73-81 | BB |
| 65-72 | CB |
| 57-64 | CC |
| 48-56 | DC |
| 40-47 | DD |
| 0-39 | FF |
Then, using the table below, the final grades will be converted into Letter Success Grades (LSG) and kept in a separate vector: Finally, the frequency and percentage of each letter will be found and printed on the screen. Write the algorithm, flowchart and R program that performs the operations described above. Note the following in the program you will write: (I) First grades and final grades will not be entered from the keyboard, they will be defined as vectors in the program and entered in the code (do not use the readline command),(II) The program will determine the number of students (n) from the data entered,(III) A function will be written for the Letter Success Grades (LSG) account, the final grade of each student in the program will be sent to this function and the letter success grade will be returned. (IV) All functions to be used in the program must be written in the main program, not called from a separate R program (library).(V) Ready-made R commands should not be used to find the frequency and percentages of letter grades.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
