Question: 1.a-Write a matlab program that takes an option from a user and computer. Options are Stone, Paper and Scissors. Then, program should give result of

1.a-Write a matlab program that takes an option from a user and computer. Options are Stone, Paper and Scissors. Then, program should give result of the game. Note: You should do this homework by using if (1.a) and switch structures (1.b).

1.c-Take grades for first and second exam. If grades are not in the interval of 0 and 100, write an error message. If so, calculate the average grade. Then, show the letter grade of average grade.

0 <= grade < 60,

F 60<= grade < 70,

D 70<= grade< 80,

C 80<= grade < 90,

B 90<= grade <= 100, A

Example: Enter your first grade: 75

Enter your second grade: 75

Average grade: 75.0000

75.0 is C

Enter your first grade: 88

Enter your second grade: 93

Average grade: 90.5000

90.5 is A

Enter your first grade: -10

Enter your second grade: 30

Wrong first grade.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!