Usetutoringspotscode to get 8% OFF on your first order!

  • time icon24/7 online - support@tutoringspots.com
  • phone icon1-316-444-1378 or 44-141-628-6690
  • login iconLogin

MATLAB menu,

MATLAB menu,
Project 1: Grade Calculator
CS 122 • 25 Points Total

Objectives
• Create a small MATLAB program (script)
• Execute a small MATLAB program (script)
• Document your results
Grading System and Structure
Use the CS122 syllabus (available on BbLearn) to research the grading structure for the course. What are the four assessment categories and their respective weights?

Using the Top-Down Design Process (Chapter 4.1):
1. State the problem that you are trying to solve
2. Determine the requirements (input/output) to solve the problem
3. Develop an algorithm for calculating an overall grade in CS122
4. Convert the algorithm to MATLAB syntax
5. Test your program
Getting Started With MATLAB
At the MATLAB menu, enter File ? New script, to type the commands below. Enter File ? Save As to save this program. Give the script a descriptive name. Make sure to file it in a directory where you can find it later!
The sample MATLAB syntax below will prompt a user for grades in the Homework category, and calculates the total weighted percent of homework for the class.
% Homework grade (consists of homework, projects, in-class exercises)
hw = 0;
hw_weight = 0.30;
hw = input(‘Enter a grade matrix for homework (row1 = earned pts x row2 = total points): ‘);
total_hw = sum(hw,2);
hw_percent = total_hw(1) ./ total_hw(2);
total_weighted_hw = hw_percent * hw_weight;
disp(total_weighted_hw);
Take the time to learn to learn how the MATLAB code above actually works, and apply similar logic to calculate grades for each assessment category. Then sum the grades for each category to calculate the overall grade, and use this as the main output from the program.
Use comments in your to illustrate your new-found knowledge. All text after the percent (%) sign on the same line is taken as comment — MATLAB simply ignores anything to the right of this sign.
To test your program, enter at least one grade for each assessment category (do not use your own grades!) and check the overall grade result for correctness. Document your result by copying/pasting your results into your Project Report (Word document).

Project Report
The final step of this assignment is to create a Project Report (Word document) in the format discussed in the CS122L Lab Submission Guidelines.
The Project Report should contain the following information:
1. Purpose
Describe the purpose of your program.
2. Approach
Describe your approach to completing this project.
3. Methods
Mathematical processes and calculations followed.
4. Implementation
Results and “m” file(s) of your code.
5. Conclusions
Describe any significant problems or challenges you encountered and how you solved them.

Submit your results (Project Report and “.m” file) in the correct place in Blackboard Learn (http://bblearn.nau.edu) by the due date of Friday, March 25, 2016.

You can leave a response, or trackback from your own site.

Leave a Reply

Powered by WordPress | Designed by: Premium WordPress Themes | Thanks to Themes Gallery, Bromoney and Wordpress Themes