Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need help with doing this program using matlab.. Thank you ! Outline: 1. Displ

ID: 3873614 • Letter: I

Question


I need help with doing this program using matlab.. Thank you !

Outline: 1. Display a short welcome message 2. Prompt the user to input the name of the course and test number 3. Prompt the user to input the vector of the test grades 4. Using the built-in functions compute the mean and median 5. Using the built-in function sort the scores in descending order 6. Display a brief report, including all of the above indicated inputs and result(s), which is to the user formatted in a logical and readable fashion. 7. Sample run 8. >117 p3 9. 10. Welcome to the class statistics script 12. 13. 14. Enter the Course Name: CompSci 240 15. Enter the test's number: 2 16. Enter the scores on one line inside brackets:12 3 45654789 10] 17 18. 19. 20. 21 22. The mean is 5.33 23. The median is 5.00 24. 25. 26. Rank Score 27. 1 10.00 28. 2 9.00 29. 3 8.00 30. 4 7.00 31. 5 6.00 32. 6 5.00 33. 7 5.00 34. 8 4.00 35. 9 4.00 36. 10 3.00 CompSci 240 Test #2 37. 1 2.00 38. 12 1.00 39 40. 41. Goodbye 42

Explanation / Answer

Hi,
Here is the code you can use,

fprintf('welcome to the class statistics report') %welcome message
name = input('enter the course name:','s')% course name prompt
number = input('enter the test number:')% test number prompt
grades= input('enter the scores on one line inside brackets []: ')%scores prompt
Mean = mean(grades);%built in mean function
Median = median(grades);% built in median
% printing data %/
fprintf('Course: %s ', name)
fprintf('Test#%i ', number)
fprintf('The mean is %i ', Mean)
fprintf('The mean is %i ', Median)
rank=tiedrank(grades);% this gives ranks based on scores
fprintf('Rank Score ')
for i=1:length(grades)
fprintf('%i %i ',grades(i),rank(i))
endThumbs up if this was helpful, otherwise let me know in comments

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote