100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CS4001NI Programming Coursework 1- Study Guide 2 £5.27   Add to cart

Other

CS4001NI Programming Coursework 1- Study Guide 2

 36 views  0 purchase

This document is about the coursework of the module Programming at London Metropolitan University.

Preview 4 out of 64  pages

  • March 2, 2022
  • 64
  • 2020/2021
  • Other
  • Unknown
All documents for this subject (3)
avatar-seller
Erickgoose
CS4001NI - PROGRAMMING


30% Individual Coursework


2019-20 Autumn


Student Name: Arjun Shrestha
Module Leader: Dhruba Sen
London Met ID:19031271
College ID: NP01NT4A190043
Assignment Due Date: 11th December 2019
Assignment Submission Date: 13th January 2020


I confirm that I understand my coursework needs to be submitted online via Google Classroom under the
relevant module page before the deadline in order for my assignment to be accepted and marked. I am
fully aware that late submissions will be treated as non-submission and a marks of zero will be awarded.

,Table of Contents
1. Introduction .............................................................................................................. 1
2. Class Diagram.......................................................................................................... 1
2.1. Class diagram of staffHire .................................................................................. 2
2.2. Class diagram of fullTimeStaffHire ..................................................................... 3
2.3. Class diagram of partTimeStaffHire ................................................................... 4
3. Pseudo code ............................................................................................................ 5
3.1. Pseudo code of staffHire .................................................................................... 5
3.2. Pseudo code for class fullTimeStaffHire............................................................. 7
3.3. Pseudo code for partTimeStaffHire .................................................................. 13
4. Method Description ................................................................................................ 21
4.1. Method Description of StaffHire ....................................................................... 21
4.1.1. Setdesignation ........................................................................................... 21
4.1.2. Getdesignation .......................................................................................... 21
4.1.3. Display ....................................................................................................... 21
4.2. Method Description of FullTimeStaffHire: ......................................................... 21
4.2.1. SetworkingHour ......................................................................................... 21
4.2.2. GetworkingHour ......................................................................................... 21
4.2.3. hireFullTimeStaff ....................................................................................... 21
4.2.4. Display ....................................................................................................... 21
4.3. Method Description of PartTimeStaffHire ............................................................ 22
4.3.1. Setshifts ..................................................................................................... 22
4.3.2. Getshifts .................................................................................................... 22
4.3.3. hirePartTimeStaff ....................................................................................... 22
4.3.4. Terminated ................................................................................................ 22
4.3.5. Display ....................................................................................................... 22
5. Test ........................................................................................................................ 23
5.1. Test 1 ............................................................................................................... 23
5.2. Test 2 ............................................................................................................... 27
5.3. Test 3 ............................................................................................................... 31
5.4. Test 4 ............................................................................................................... 36

, 5.4.1. Test 4.1...................................................................................................... 36
5.4.2. Test 4.2...................................................................................................... 38
6. Error detection........................................................................................................ 41
6.1. Error 1 .............................................................................................................. 41
6.2. Error 2 .............................................................................................................. 43
6.3. Error 3 .............................................................................................................. 44
7. Conclusion ............................................................................................................. 45
8. Appendix ................................................................................................................ 46
8.1. StaffHire ........................................................................................................... 46
8.2. FullTimeStaffHire ............................................................................................. 47
8.3. PartTimeStaffHire ............................................................................................. 52

, List Of Figures
Figure 1 Relation between the parent and child class ..................................................... 1

Figure 2 Creation of object in class fullTimeHire ........................................................... 24

Figure 3 Inspection of object before hiring .................................................................... 25

Figure 4 Hiring staff ....................................................................................................... 26

Figure 5 Re-inspecting after hiring ................................................................................ 26

Figure 6 Creation of object in PartTimeStaffHire ........................................................... 28

Figure 7 Inspection of the object ................................................................................... 29

Figure 8 Appointing Part Time Staff .............................................................................. 30

Figure 9 Re-inspection after appointing the staff ........................................................... 30

Figure 10 Creation of object for Part time staff .............................................................. 32

Figure 11 Inspection of object of part time staff ............................................................. 33

Figure 12 Hiring second part time staff .......................................................................... 33

Figure 13 Re-inspecting after hiring 2nd part time staff ................................................. 34

Figure 14 Re-inspection after terminating staff .............................................................. 35

Figure 15 Displaying the details of full time staff ........................................................... 37

Figure 16 Displaying details of the Part Time Staff ....................................................... 40

Figure 17 Error 1 (Run-Time error)............................................................................... 41

Figure 18 Cause of the error ......................................................................................... 42

Figure 19 Corretion of the error 1 .................................................................................. 42

Figure 20 Output after correction................................................................................... 43

Figure 21 Error 2 ........................................................................................................... 43

Figure 22 Correction of Error 2 ...................................................................................... 43

Figure 23 Error 3 ........................................................................................................... 44

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Erickgoose. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for £5.27. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

75323 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy revision notes and other study material for 14 years now

Start selling
£5.27
  • (0)
  Add to cart