Question: Inside a text file you are required to create a data set for 100+N1 people, where N1 is the last digit of your student number.(2

Inside a text file you are required to create a data set for 100+N1 people, where N1 is the last digit of your student number.(2 for me) The text file should contain five columns of data for each person. The first column will contain student numbers. These numbers will have the form 20200001, 20200002, 20200003, for all the people in the list. The other four columns will contain examm 1, examm 2, lab and final examm grades for each person, respectively. These grades will be random numbers between 0 and 100. Note that, the grades should be integers.

Develop a computer program which would read these data and calculate the total grade for each student. The weight of the each item for final grade calculation is; examm 1 25 %, examm 2 20%, lab 15% and final examm 40%. The final grades should be rounded to integers. After this, your program should specify the letter grade for each student. The rules for letter grade distribution are as follows:

1. Anybody whose final examm grade is less than 35 will automatically receive FF.

2. Anybody whose lab grade less than 10 will also automatically receive FF.

3. For the rest of the class excluding the people who failed at the first two steps, you would calculate the arithmetic average (mean) and standard deviation of the grades.

4. You will set CC grade to the mean grade you calculated in the previous step. Then you would add half the standard deviation to mean to set the starting point for the CB grade. Adding half the standard deviation once more would yield the starting point for the BB grade, etc Following this procedure you would also calculate the starting points for the BA and AA grades.

5. For the grades lower than CC (DC, DD, FD and FF) you would successively subtract half of the standard deviation from the mean grade

.After the letter grades are calculated the program would ask the user what type of information is asked for. The program should ask the user whether the user wants to see overall grade distribution or grade information for an individual. Here your program should watch for invalid input. If the user enters an invalid input, the program should warn the user and ask for the input again until the user enters a valid input. In this phase the program should NOT stop until the user enters a valid input.

If the user selects to see overall grade distribution your program should write in a text file; the number of people who received AA, the number of people who received BA, etc for all grades. The program should also write the number of people who passed and the number of people who failed into the text file. You should design the format of the output such that it should be neatly written and explanatory. Your program should also produce three figures. 1) A pie chart for letter grade distribution, 2) a histogram of letter grades, 3) a bar chart for total grades of each student long with a horizontal line showing the mean of the class calculated in step 3 above. The name of the text file should be class_info with the extension of txt or dat.

If the user selects to see grade info for an individual, your program should ask for the ID number of the person. If the user enters an ID number which is not in the list, then the program should warn the user and ask to enter the ID number again. The program should continue to warn the user until the user enters correct Id number. When the user enters a valid ID number the program should give the grade information. For grade information your program should write the examm grades (examm 1, examm 2, lab, final examm, total grade, letter grade) of the student in a text file as a table along with the class average calculated in step 3 above. You should design the format of the output such that it should be neatly written and explanatory. The name of the text file should be the ID number of the student with the extension of txt or dat. After the information is given the program should ask the user to enter the ID number of another student to receive the information for that person. This process should continue until the user enters -1.

matlab program for these please thanks in advance

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!