Question: Write a MATLAB program that will: Load student data from the Excel file student _ data.xlsl . The student _ data file contains each student
Write a MATLAB program that will:
Load student data from the Excel file studentdata.xlsl The studentdata file contains each students grades for four exams in a class as well as weight for each exam. Close the file. num txt rawxlsreadstudentdata.xlsx
Create an examWeight vector called examWeight, to hold the exam weights from the excel file. The numbers in the first row.
Create a Student structure array, called students, that will be populated with each students information name grades available in the Excel file. A Student structure should have five fields extracted from the excel file. name exam exam exam final, finalGrade, letterGrade After initialized the Student array, fill the structure array with data from the Excel file. the finalGrade and letterGrade to be filled in later.
Determine average for each of the four exams. Save your average grade in to a variable called avggradeofexams in order, it is a x vector that holds the average for each exams.
Determine the final course grade for each student. The final course grade for each student is calculated by:
finalGradeeeWeighteeWeighteeWeightfinalfinalWeight
Save your findalGrade in the corresponding structure field of the strudent structure of each student.
Determine how many students are above the class average, save it in a variable called numaboveaverage
Determine the letter grade for each student, save it in the letterGrade field of each student.
finalGrade A
finalGrade B
finalGrade C
finalGrade D
otherwise F
Do the following on your own MATLAB installation to check your understanding yourself. No need to turn in the following parts:
Add two columns into the studentdata.xlsl file to the right of the Final column called Final Grade and Letter Grade. The Final Grade contains each students final course grade, and the Letter Grade contains each students letter grade for the class.
Create a new text file called studentgrade.txt that contains each students name, final course grade, and letter grade for the course, one student at a line, separate fields with tabspaces
Element by element operation is allowed if that make it easier for a problem.
The program should work for studentdata.xlsl file in this format with any length.At the end, the first five students have info like the following:
Student id: Name: Ashlyn, Exam: Exam: Exam: Final: Final Grade: Letter Grade: C
Student id: Name: Aston, Exam: Exam: Exam: Final: Final Grade: Letter Grade: A
Student id: Name: Austin, Exam: Exam: Exam: Final: Final Grade: Letter Grade: B
Student id: Name: Baer, Exam: Exam: Exam: Final: Final Grade: Letter Grade: C
Student id: Name: Battle, Exam: Exam: Exam: Final: Final Grade: Letter Grade: A
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
