Part 1: Sales
Case Study
Ally Cares began offering home services to their clients in 2003. Although Ally Movers started as a service business to support seniors, they now provide service to anyone who needs it. Services include house cleaning, running errands, lawn care, home day care, and pet walking.
Clients are invoiced monthly and clients are expected to pay upon receipt of their invoice.
Your team leader has written the following scenario to capture some of Ally Cares’ requirements. Please remember that an ‘invoice’ is a ‘sale’ that hasn’t been paid for!
| Use Case Name | Create Invoice | ||
| Triggering Event | End of the month | ||
| Brief Description | Allows the Business Owner to create an invoice | ||
| Actors | Business Owner | ||
| Related Use Cases | |||
| Preconditions | Business Owner has opened the Main Menu. | ||
| Post Conditions | Invoice is saved to the database and now can be printed to deliver to the client | ||
| Flow of activities | Actor | System | |
| 1. | Requests to record an invoice | Displays a list of clients. Prompts for selection.
|
|
| 2. | Selects a client. | Displays a list of services that were performed for the client during the date range. Calculates a unique invoice number for the invoice. Calculates the invoice date as the system date. Displays the Invoice. | |
| 3. | Selects a service | Displays the cost/hour for that service and prompts for number of hours | |
| 4. | Enters number of hours | Adds the invoice detail. Calculates the cost of the service as cost/hour * number of hours. Calculates the HST. Displays the Invoice detail. Updates the Invoice total. Displays the invoice total. | |
| 5. | Repeats above 2 steps until all details are created | Prompts to print or email. | |
| 6. | Chooses to print | Saves the invoice and details. Prints the invoice. | |
| Exception Conditions | · Business Owner chooses to cancel adding the invoice. | ||
Question 1 (worth 5 marks)
Create a class diagram that supports the scenario.
Question 2 (worth 10 marks)
Complete sequence diagrams to support the above scenario.
Question 3 (worth 2 marks)
Ally Cares is thinking of offering a 10% discount to their clients who recommend their services. How would you change your model to support this?
Question 4 (worth 2 marks)
The above scenario assumes that the cost/hour for a service is the same for each employee. What would happen if the cost/hour changed for each employee providing the service? How would you change your model? Please describe in English.
Part 2: Scheduling
You participated in a scheduling activity as part of week 9. Please use that activity as the case study for this part of the test.
Question 5 – Class Diagram (worth 10 marks)
Your task is to create a class diagram to support the activity in it’s entirety and the scenario described below.
| Use Case Name | Query Schedules | ||
| Triggering Event | One of Ally’s contract workers wants to see their schedule for next week. | ||
| Brief Description | Allows a contract worker to request their scheduled jobs for the week. The query must produce an online report displaying the worker’s assigned work, the trailer that they are using, the other workers assigned to the job, the start time and end time of the job, the directions and notes associated with the job. | ||
| Actors | Contract worker | ||
| Related Use Cases | |||
| Preconditions | Worker has opened the Employee Menu | ||
| Post Conditions | Online report is displayed to the worker. | ||
| Flow of activities | Actor | System | |
| 1. | Requests Schedule | Uses login information to retrieve a schedule for the worker for the week.
|
|
| Exception Conditions |
|
||
Question 6 – Sequence diagram (worth 5 marks)
Please complete an object level sequence diagram to support the above scenario.




