Draw a State Chart Diagram describing the interaction protocol of MyTimeSheet. Here is a specification for a class MyTimeSheet. The operations are all public.   MyTimeSheet(); // constructor       // postcondition: checkHours() is 0   void addHours (int hours, int minutes);       // precondition: hours >=0, 0<= minutes <=60, hours+minutes >0       // postcondition: checkHours() > 0   float checkHours();   void issuePaycheck();       // postcondition: checkHours() is 0

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 19RQ
icon
Related questions
Question

Draw a State Chart Diagram describing the interaction protocol of MyTimeSheet.

Here is a specification for a class MyTimeSheet. The operations are all public.

 

MyTimeSheet(); // constructor

      // postcondition: checkHours() is 0

 

void addHours (int hours, int minutes);

      // precondition: hours >=0, 0<= minutes <=60, hours+minutes >0

      // postcondition: checkHours() > 0

 

float checkHours();

 

void issuePaycheck();

      // postcondition: checkHours() is 0

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT