Question: In matlab write a script for the following problem using built in functions or functions that you create Your are the professor at Hogwarts School
In matlab write a script for the following problem using built in functions or functions that you create

Your are the professor at Hogwarts School of Witchcraft and Wizardry. As part of their curriculum, students must take a tough numerical methods class. Being at Hogwarts. naturally everyone is very interested in learning about all the mixing potions, spells, and other trickery. Unfortunately their interest in numerical methods is not so much. Being the nice professor that you are. you have decided to drop their lowest Quiz score. Your task is to develop a function that takes as an input a .txt' file, looks at all the Quiz grades for ALL students, determines which grade is the most convenient to drop (here the grade that is most convenient should be the grade that has the least contribution to the overall grade). Your script should: Read data (from a .txt file rightarrow The text file is your input) Weight and Point Value for each individual quiz List of the names and scores for each of the students enrolled in class Separate the names and scores Figure out which is their lowest score (which you will drop) Calculate the student's new score Output: List of students with their original grades (out of 30) List of students with adjusted grades (out of 30) Things to keep in mind: Each Quiz might or might not weigh the same (read-in the individual weights) Each Quiz has a different point value (possible points) Use the above information to determine which quiz grade to drop for each student Make your code as generic as possible, so that you can re-use this code for next semester. This means, try not to hardwire any values, so that you can just read in the data and the code should perform the same way. regardless of how many quizzes or how many students there are. Structure of the input file: (Keeps going) - Your code should automatically find out how many students there are in this class. Your are the professor at Hogwarts School of Witchcraft and Wizardry. As part of their curriculum, students must take a tough numerical methods class. Being at Hogwarts. naturally everyone is very interested in learning about all the mixing potions, spells, and other trickery. Unfortunately their interest in numerical methods is not so much. Being the nice professor that you are. you have decided to drop their lowest Quiz score. Your task is to develop a function that takes as an input a .txt' file, looks at all the Quiz grades for ALL students, determines which grade is the most convenient to drop (here the grade that is most convenient should be the grade that has the least contribution to the overall grade). Your script should: Read data (from a .txt file rightarrow The text file is your input) Weight and Point Value for each individual quiz List of the names and scores for each of the students enrolled in class Separate the names and scores Figure out which is their lowest score (which you will drop) Calculate the student's new score Output: List of students with their original grades (out of 30) List of students with adjusted grades (out of 30) Things to keep in mind: Each Quiz might or might not weigh the same (read-in the individual weights) Each Quiz has a different point value (possible points) Use the above information to determine which quiz grade to drop for each student Make your code as generic as possible, so that you can re-use this code for next semester. This means, try not to hardwire any values, so that you can just read in the data and the code should perform the same way. regardless of how many quizzes or how many students there are. Structure of the input file: (Keeps going) - Your code should automatically find out how many students there are in this class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
