Question: Develop a set of test cases for the algorithm in Exercise E3.14. Data from Exercise E3.14. Draw a flowchart for the algorithm in Exercise E3.13.

Develop a set of test cases for the algorithm in Exercise E3.14.

Data from Exercise E3.14.

Draw a flowchart for the algorithm in Exercise E3.13.

Data from Exercise E3.13.

Draw a flowchart for the algorithm in Exercise R3.12.


Data from Exercise R3.12.

In a scheduling program, we want to check whether two appointments overlap. For simplicity, appointments start at a full hour, and we use military time (with hours 0–24). The following pseudocode describes an algorithm that determines whether the appointment with start time start1 and end time end1 overlaps with the appointment with start time start2 and end time end2.


If start1 > start2
s = start1
Else
s = start2
If end1 < end2
e = endl
Else
e = end2
If s < e
The appointments overlap.
Else
The appointments don’t overlap. Trace this algorithm with an appointment from 10–12 and one from 11–13, then with
an appointment from 10–11 and one from 12–13.

Step by Step Solution

3.55 Rating (169 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Test cases for the algorithm in Exercise E314 Input a3 b4 c5 Expected Output The input forms a right... View full answer

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 Java Concepts Late Objects Questions!