Question: Input Domain Partitioning Example Given the function described by: char student _ grade ( unsigned char score ) ; The function student grade takes in

Input Domain Partitioning Example
Given the function described by:
char student_grade(unsigned char score);
The function student grade takes in a positive, 8 bit number, between the values of 0 and 255, and
returns a char representing the student's letter grade.
Input Output
90>= score <=100A
80>= score <90B
70>= score <80C
60>= score <70D
0>= score <60F
100> score <=255
Notation. An [or a ]signifies that the endpoint is included. An ) or a (specifies that the interval
includes all points up to but not including the endpoint.
6. The input partitions are
a.[0,60),[60,70),(70,80),[80,90],[90,100],(100,255]
b.(0,60],(60,70],(70,80],(80,90],[90,100),[100,255)
c.[0,60],[70,100],[100,255]
d.[0,60),[60,70),[70,80),[80,90),[90,100],(100,255]
e.(0,255)

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 Finance Questions!