Home / Expert Answers / Computer Science / question-1-write-down-a-matlab-program-to-calculate-the-total-average-of-a-student-for-a-specific-c-pa610

(Solved): Question 1. Write down a MATLAB program to calculate the total average of a student for a specific c ...



Question 1. Write down a MATLAB program to calculate the total average of a student for a specific course. The end-semester total average is calculated as follows: Total Average = MT1 * 0.25 + MT2 *0.25 +Lab*0.1 + Final *0.4 Your program inputs are: MT1, MT2, Lab, Final. The program will display the message "The student passed from this course" if the total average is greater than or equal to 50; otherwise the message "The student failed from this course" must be displayed on the screen. 

 

Question 2. Write down a MATLAB program that contains an if statement that may be used to compute the area of a square (area = side * side) or a triangle (area = 1 over 2* base * height) after prompting the user to type the first character of the geometric shape name ('S' for square, 'T' for triangle).

 

Question 3. Consider the following problem: Find the average of a list of ten numbers that are entered from the keyboard, print (display) these numbers, their summation and average. Write down a MATLAB program for the solution of this problem using for loop.

 

Question 4. Write a matlab code to read 5 numbers from the keyboard and then print odd and even numbers using while and for loop.

 

Question 5. Write a matlab code to read 10 student's age from the keyboard and if the age of each student is equal to 18 exit from the program otherwise print "the age is not equal to 18". You should use break and continue in your code.

???????E1. Write down a MATLAB program to calculate the total average of a student for a specific course. The end-semester total aveE1. Write a matlab code to read 5 numbers from the keyboard and then print odd and even numbers using while and for loop.

E2???????

E1. Write down a MATLAB program to calculate the total average of a student for a specific course. The end-semester total average is calculated as follows: Total Average \( = \) MT \( 1 * 0.25+ \) MT2 \( * 0.25+ \) Lab \( * 0.1+ \) Final \( * 0.4 \) Your program inputs are: MT1, MT2, Lab, Final. The program will display the message "The student passed from this course" if the total average is greater than or equal to 50 ; otherwise the message "The student failed from this course" must be displayed on the screen. E2. Write down a MATLAB program that contains an if statement that may be used to compute the area of a square (area \( = \) side * side) or a triangle (area \( =1 / 2^{*} \) base * height) after prompting the user to type the first character of the geometric shape name ( ' \( S \) ' for square, ' \( T \) ' for triangle). E3. Consider the following problem: Find the average of a list of ten numbers that are entered from the keyboard, print (display) these numbers, their summation and average. Write down a MATLAB program for the solution of this problem using for loop. E1. Write a matlab code to read 5 numbers from the keyboard and then print odd and even numbers using while and for loop. E2. Write a matlab code to read 10 student's age from the keyboard and if the age of each student is equal to 18 exit from the program otherwise print "the age is not equal to \( 18 " \) ". You should use break and continue in your code.


We have an Answer from Expert

View Expert Answer

Expert Answer


According to Chegg guidelines, we are only allowed to solve one question at a time. But ,since questions are not that huge therefore first two questio
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe