Answer in MatLab please! 3. Write a user-defined function called fgrade_email (where email is your Tulane email before the @sign) that calculates a student's final grade in a course using the scores from three midterm exams, a final exam, and six homework assignments. The midterms are graded on a scale from 0 to 100 and each accounts for 15% of the course grade. The final exam is graded on a scale from 0 to 100 and accounts for 40% of the course grade. The six homework assignments are each graded on a scale from 0 to 10. The homework assignment with the lowest grade is dropped, and the average of the remaining assignments accounts for 15% of the course grade. In addition, the following adjustment is made when the grade is calculated. If the average grade for the three midterms is higher than the grade for the final exam, then the grade of the final exam is not used and the average grade of the three midterms accounts for 85% of the course grade. The program calculates a course grade that is a number between 0 and 100. The function has one input argument, a matrix R in which the elements in each row are the grades for one student. The first six columns are the homework grades (numbers between 0 and 10), the next three columns are the midterm grades (numbers between 0 and 100), and the last column is the final grade (a number between 0 and 100). The function has one output argument, a column vector g with the student grades for the course. Each row has a course grade of the student with the grades in the corresponding row of the matrix R. The function can be used to calculate the grades of any number of students. For one student, the matrix R has one row. The main script file should ask the user how many students' grades they would like to enter. For each student, the main script file asks for a vector of grades. These vectors are put together to form the matrix that the function takes in as input. The script file should display the grades of each student like in the following example (the answer for case b): Student #1's final grade is 85.15. Student #2's final grade is 64.82. Student #3's final grade is 77.70. Student #4's final grade is 82.50 Use the function to calculate the course grades for the students in the following cases: (a) 1 student [8,9,6,10,9,7,76,86,91,80] (b) 4 students — [7,10,6,9,10,9,91,71,81,88], [5,5,6,1,8,6,59,72,66,59], [6,8,10,4,5,9,72,78,84,78 [7,7,8,8,9,8,83,82,81,84]

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Answer in MatLab please!
3. Write a user-defined function called fgrade_email (where email is your Tulane email before
the @sign) that calculates a student's final grade in a course using the scores from three
midterm exams, a final exam, and six homework assignments. The midterms are graded
on a scale from 0 to 100 and each accounts for 15% of the course grade. The final exam
is graded on a scale from 0 to 100 and accounts for 40% of the course grade. The six
homework assignments are each graded on a scale from 0 to 10. The homework assignment
with the lowest grade is dropped, and the average of the remaining assignments accounts
for 15% of the course grade. In addition, the following adjustment is made when the grade
is calculated. If the average grade for the three midterms is higher than the grade for the
final exam, then the grade of the final exam is not used and the average grade of the three
midterms accounts for 85% of the course grade. The program calculates a course grade that
is a number between 0 and 100.
The function has one input argument, a matrix R in which the elements in each row are the
grades for one student. The first six columns are the homework grades (numbers between
0 and 10), the next three columns are the midterm grades (numbers between 0 and 100),
and the last column is the final grade (a number between 0 and 100). The function has one
output argument, a column vector g with the student grades for the course. Each row has a
course grade of the student with the grades in the corresponding row of the matrix R. The
function can be used to calculate the grades of any number of students. For one student,
the matrix R has one row.
The main script file should ask the user how many students' grades they would like to
enter. For each student, the main script file asks for a vector of grades. These vectors are
put together to form the matrix that the function takes in as input. The script file should
display the grades of each student like in the following example (the answer for case b):
Student #1's final grade is 85.15.
Student #2's final grade is 64.82.
Student #3's final grade is 77.70.
Student #4's final grade is 82.50
Use the function to calculate the course grades for the students in the following cases:
(a) 1 student [8,9,6,10,9,7,76,86,91,80]
(b) 4 students - [7,10,6,9,10,9,91,71,81,88], [5,5,6,1,8,6,59,72,66,59], [6,8,10,4,5,9,72,78,84,78]
[7,7,8,8,9,8,83,82,81,84]
Solution: Other answers: (a) 84.58
Transcribed Image Text:Answer in MatLab please! 3. Write a user-defined function called fgrade_email (where email is your Tulane email before the @sign) that calculates a student's final grade in a course using the scores from three midterm exams, a final exam, and six homework assignments. The midterms are graded on a scale from 0 to 100 and each accounts for 15% of the course grade. The final exam is graded on a scale from 0 to 100 and accounts for 40% of the course grade. The six homework assignments are each graded on a scale from 0 to 10. The homework assignment with the lowest grade is dropped, and the average of the remaining assignments accounts for 15% of the course grade. In addition, the following adjustment is made when the grade is calculated. If the average grade for the three midterms is higher than the grade for the final exam, then the grade of the final exam is not used and the average grade of the three midterms accounts for 85% of the course grade. The program calculates a course grade that is a number between 0 and 100. The function has one input argument, a matrix R in which the elements in each row are the grades for one student. The first six columns are the homework grades (numbers between 0 and 10), the next three columns are the midterm grades (numbers between 0 and 100), and the last column is the final grade (a number between 0 and 100). The function has one output argument, a column vector g with the student grades for the course. Each row has a course grade of the student with the grades in the corresponding row of the matrix R. The function can be used to calculate the grades of any number of students. For one student, the matrix R has one row. The main script file should ask the user how many students' grades they would like to enter. For each student, the main script file asks for a vector of grades. These vectors are put together to form the matrix that the function takes in as input. The script file should display the grades of each student like in the following example (the answer for case b): Student #1's final grade is 85.15. Student #2's final grade is 64.82. Student #3's final grade is 77.70. Student #4's final grade is 82.50 Use the function to calculate the course grades for the students in the following cases: (a) 1 student [8,9,6,10,9,7,76,86,91,80] (b) 4 students - [7,10,6,9,10,9,91,71,81,88], [5,5,6,1,8,6,59,72,66,59], [6,8,10,4,5,9,72,78,84,78] [7,7,8,8,9,8,83,82,81,84] Solution: Other answers: (a) 84.58
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY