CS10-8L Computer Programming Laboratory Machine Problem# 5 (Selection Program Structure 2) Date 06/25/2021
CS10-8L Computer Programming Laboratory Machine Problem# 5 (Selection Program Structure 2) Date 06/25/2021
CS10-8L Computer Programming Laboratory Machine Problem# 5 (Selection Program Structure 2) Date 06/25/2021
• Folder name: MP5_Surname.zip (Content: MP5-1_Surname.m, and MP5-2_Surname.m and a PDF file
of this document MP5_Surname.pdf); while if you use user defined function in your solution, filename
is the function name itself.
1.) The A character (char) data type is represented by a single alphabetic character (A-Z or a-z), or numeric
character (0-9), or special character (#, @, &, ^, etc.). Write a MATLAB script or user defined function that
accepts a character input and output whether it is ALPHABETIC, NUMERIC, or SPECIAL character. In addition,
if it is an ALPHABETIC character display if the input is LOWERCASE or UPPERCASE and VOWEL or
CONSONANT.
2.) Rock Paper Scissor (RSP) is a very simple game which is played by two users. The rules are as follows:
If both inputs of Player 1 and Player 2 are the same such as ‘R’, ‘S’, or ‘P' then it’s a tie.
Create a MATLAB script or user-defined function that implements this game. Input choice of player 1 and
player 2, it must accept either uppercase or lowercase letter. Display the winner.
V
Criteria Score
1.1) Comment (Name, Course Code and Section, Date and Program Description) 5
1.2) Indention and Intelligent/Descriptive naming of variables 3
1.3) Correct Program Logic 20
1.4) Correct Output 15
2.1) Comment (Name, Course Code and Section, Date and Program Description) 5
2.2) Indention and Intelligent/Descriptive naming of variables 3
2.4) Correct Program Logic 20
2.5) Correct Output 15
3.1) Correct Filename Format 4
3.2) Submission (advance = 10 pts., on time = 5 pts., and late = 0 pts.) 10
Total 100
_______________________ _______________
Prof. Cristina A. Pascua Date
Screenshot (Script file / User defined Function and output on the next page)
V
MP5-2
V