Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Document preview thumbnail
Voorbeeld 4 van de 64 pagina's
Overig

CS4001NI Programming Coursework 1- Study Guide 2

Document preview thumbnail
Voorbeeld 4 van de 64 pagina's

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

Voorbeeld van de inhoud

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

Documentinformatie

Studie
Geüpload op
2 maart 2022
Aantal pagina's
64
Geschreven in
2020/2021
Type
Overig
Persoon
Onbekend
$6.99

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Verkocht
0
Volgers
1
Items
31
Laatst verkocht
-



Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen