Basic Matlab Programming
Machine Problem MP4A Date
Student Name Course /Section
Estimated Completion Time: 120 minutes
File Name: MP4A_Surname
Problem Statement:
In tennis, a set is finished when one of the players wins 6 games and the other one
wins less than 5, or, if both players win at least 5 games, until one of the players wins
7 games.
Determine if it is possible for a tennis set to be finished with the score score1:
score2.
Sample Output:
1. Input:
score1: 3
score2: 6
Expected Output: true
2. Input:
score1: 8
score2: 5
Expected Output: false
3. Input:
score1: 6
score2: 5
Expected Output: false
Laboratory Exercise Score Sheet
Criteria Score
1 Correct Output 50
Total 50
Raymond B. Sedilla
Instructor