Question: Need help with computer programming using matlab for this question: Principal at XYZ Elementary school would like to start a mentorship program between the fifth
Need help with computer programming using matlab for this question:
Principal at XYZ Elementary school would like to start a mentorship program between the fifth grade and kindergarten students. Table 1 shows the ages of the students in these grades. Write a script that matches the students as in Table 2 without using min, max, and sort functions. (For ex: oldest student in fifth grade is paired with the youngest student in Kindergarten and youngest student in fifth grade is paired with the oldest student in Kindergarten). Then print the results using fprintf function. Print out should indicate the name of all student pairs at different lines. For ex, Line 1Kate is paired with April and Line 2 Laura is paired with Brenda. (40 points) Table 1 Students' ages Kindergarten students' ages Fifth grade students' ages April 5 Kate 12.9 Brenda 5.2 Laura 12 Cesar 5.1 Mason 12.3 David 5.9 Nicole 12.1 Edward 5.5 Osvaldo 12.8 Frank 4.9 Paul 12.2 Gonzales 5.8 Rose 12.7 Heidi 5.3 Sam 12.4 Issa 5.4 Terry 12.6 James 5.7 Utrich 12.5 Table 2 Matchning of the students Kindergarten students Fifth grade students Frank 4.9 Kate 12.9 April 5.0 Osvaldo 12.8 Cesar 5.1 Rose 12.7 Brenda 5.2 Terry 12.6 Heidi 5.3 Utrich 12.5 Issa 5.4 Sam 12.4 Edward 5.5 Mason 12.3 James 5.7 Paul 12.2 Gonzales 5.8 Nicole 12.1 David 5.9 Laura 12
Table 1 Students' ages
Kindergarten students' ages
Fifth grade students' ages
April 5 Kate 12.9
Brenda 5.2 Laura 12
Cesar 5.1 Mason 12.3
David 5.9 Nicole 12.1
Edward 5.5 Osvaldo 12.8
Frank 4.9 Paul 12.2
Gonzales 5.8 Rose 12.7
Heidi 5.3 Sam 12.4
Issa 5.4 Terry 12.6
James 5.7 Utrich 12.5
Table 2 Matchning of the students
Kindergarten students
Fifth grade students
Frank 4.9 Kate 12.9
April 5.0 Osvaldo 12.8
Cesar 5.1 Rose 12.7
Brenda 5.2 Terry 12.6
Heidi 5.3 Utrich 12.5
Issa 5.4 Sam 12.4
Edward 5.5 Mason 12.3
James 5.7 Paul 12.2
Gonzales 5.8 Nicole 12.1
David 5.9 Laura 12
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
