Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

If - Else Conditionals My Solutions > Suppose that we have a gradebook that includes five students and thier scores on ten assignments. These students

image text in transcribed

If - Else Conditionals My Solutions > Suppose that we have a gradebook that includes five students and thier scores on ten assignments. These students are Alex, Brittany, Cora, Dasan, Elijah, and are ordered such that each row reflects one of the students, respecively (and alphabetically). Write the code, using else statements, to answer the following questions. Cora: Cora is a first year student, and her instructional team wants to know if they need to reach out and ask her how she is doing. If Cora has recieved scores below 75 on more than three of her assignments, then we need to set email_cora to 1. Else, set email_cora to 0. Dasan: know if has Dasan comes to office hours and asks great questions. It seems like Dasan has the right personality to be a TA next year. As a first check, it would be helpful received at least an 80 on at least 6 of the 10 assignments. If so, then set maybe_ta_dasan to 1, and if not, then set maybe_ta_dasan to 0. Elijah: Elijah is retaking this class. He's doing pretty well this year, but since he's taking this class again, we really need to keep an eye out for if Elijah needs some encouragement to come to more office hours. If Elijah has recevied below a 70 on any of his assignments, let's reach out. In this case, set email_elijah to 1, and if not, set email_elijah to 0. Tough Quiz: It seems as if some of the quizzes were tougher than intended. The instructor is thinking about curving some of these quizzes. One of these was assignment 4. If the average score of this quiz (across the five students) was not less than 75, then set keep quiz to 1, and otherwise set keep quiz to 0. Be sure to use a - this time! All of these: For each of these 4 tests, add the code to make use of disp() and display message that makes sense for each case. Script Save C Reset 39 MATLAB Documentation 1 % This first line makes a gradebook for us. As it turns out, these have turned in all assignments. 2 grades = round( 40#rand(5,10)) + 60 If - Else Conditionals My Solutions > Suppose that we have a gradebook that includes five students and thier scores on ten assignments. These students are Alex, Brittany, Cora, Dasan, Elijah, and are ordered such that each row reflects one of the students, respecively (and alphabetically). Write the code, using else statements, to answer the following questions. Cora: Cora is a first year student, and her instructional team wants to know if they need to reach out and ask her how she is doing. If Cora has recieved scores below 75 on more than three of her assignments, then we need to set email_cora to 1. Else, set email_cora to 0. Dasan: know if has Dasan comes to office hours and asks great questions. It seems like Dasan has the right personality to be a TA next year. As a first check, it would be helpful received at least an 80 on at least 6 of the 10 assignments. If so, then set maybe_ta_dasan to 1, and if not, then set maybe_ta_dasan to 0. Elijah: Elijah is retaking this class. He's doing pretty well this year, but since he's taking this class again, we really need to keep an eye out for if Elijah needs some encouragement to come to more office hours. If Elijah has recevied below a 70 on any of his assignments, let's reach out. In this case, set email_elijah to 1, and if not, set email_elijah to 0. Tough Quiz: It seems as if some of the quizzes were tougher than intended. The instructor is thinking about curving some of these quizzes. One of these was assignment 4. If the average score of this quiz (across the five students) was not less than 75, then set keep quiz to 1, and otherwise set keep quiz to 0. Be sure to use a - this time! All of these: For each of these 4 tests, add the code to make use of disp() and display message that makes sense for each case. Script Save C Reset 39 MATLAB Documentation 1 % This first line makes a gradebook for us. As it turns out, these have turned in all assignments. 2 grades = round( 40#rand(5,10)) + 60

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analysis Using SQL And Excel

Authors: Gordon S Linoff

2nd Edition

111902143X, 9781119021438

More Books

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago