Math_Practice_Program - Additive sums should be...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CSC 113 Midterm Project: Math Practice Program Assigned: October 15, 2010 Due: October 29, 2010 Objective: To test your knowledge of loops, strings, conditional statements, logic, graphing, and screen outputs. Prompt: Your 10 year old cousin is struggling in math class, and you decide to use your newfound MATLAB skills to help the poor kid out by giving him some practice. Write a program that randomly generates 10 basic math problems featuring addition, subtraction, multiplication, and division. The program should display the question visually and prompt for an answer. When finished, a total number of correct answers should be displayed, as well as a bar graph indicating how many of each question type was featured and how many of each question type was answered correctly. Criteria: Questions and answers should all be positive integers
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Additive sums should be <=100 The number youre subtracting from should be <= 100 Multipliers should go up to 12x12 Dividend should be <=100 Bonus points may be awarded for creativity and ingenuity Submission: Projects will be graded in class on Friday, October 29. You must be present to receive a grade, and you should be prepared to explain how sections of your code work. Late projects will not be accepted . Hints: Become familiar with fprintf . Consider using switch/case statements. You can plot a bar graph using the bar function. Help: Steven Hair 01hair@cardinalmail.cua.edu Nathan Doane 96doane@cardinalmail.cua.edu Office Hours: Mondays 10:00-11:00am Thursdays 3:00-5:00pm Website: http://faculty.cua.edu/regalia/csc113...
View Full Document

Ask a homework question - tutors are online