Question: Pls do this MATLAB ONLY USING WHAT IT IS TELLING YOU TO USE try to do it correctly after submitting it pls copy and paste
Pls do this MATLAB ONLY USING WHAT IT IS TELLING YOU TO USE try to do it correctly after submitting it pls
copy and paste the matlab code, in the space provided below Write a script that calculates the average of the marks of a quarter, and that fulfills the following:
- each A-4 pts. B=3pts. C=2pts. D=1 pt. F=0 pts
- ask the user how many notes he wants to enter (minimum 2, maximum 10, for which he must verify if he meets the requirement, using IF)
- once the person says the number of grades, a for-loop begins that will ask for the grade (in string. A, B, C, D, F) and the number of credits for each course (they can be from 1 to 4 credits each course)
- using a cycle I, assign the corresponding points and multiply them by the credits.
- At the end of the program, you must have added all the points and apart all the credits. then divide the points by the credits - save in a vector, each of the notes and credits
Example Marcos took 4 courses in the trimester. his notes were: course 1: A of 3rd year 2: B of 1crd course 3: F of 3crd h course 4: A of 4crd therefore the points are: 4x3 (4 points of A for the 3 crd of course1) + 3x1 (3 points of B for 1crd of course2)+ 0x3 (0 points of F for 3crd of course3)+ 4x4 ( 4 points of A for 4crd of the course4 = 31 points in total the credits were: 3+1+3+4 = 11 quarterly average = 11/31 = 2.81 the note should be "rounded" up to 2 decimal places exercise score correct use of input commands, including numerics and strings (20 points) correct use of FOR (20 points) correct use of the IF to verify the number of courses (10 points) correct use of the IF for assigning points per grade (20 points) correct use of formulas and mathematical procedure (10 points) correct use of vectors (10 points) correct use of fprintf command (10 points)
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
