100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Other

CS4001NI Programming Coursework 1- Study Guide 2

Rating
-
Sold
-
Pages
64
Uploaded on
02-03-2022
Written in
2020/2021

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

Institution
Course











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Study
Course

Document information

Uploaded on
March 2, 2022
Number of pages
64
Written in
2020/2021
Type
Other
Person
Unknown

Subjects

Content preview

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
$6.49
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
Erickgoose

Get to know the seller

Seller avatar
Erickgoose London Metropolitan University
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
3 year
Number of followers
1
Documents
31
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions