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

CS4001NI Programming Coursework - Study Guide

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

The document is about the coursework of the module programming in London Metropolitan University. It is cw1.

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
47
Written in
2020/2021
Type
Other
Person
Unknown

Subjects

Content preview

Module Code & Module Title
CS4001NI Programming


Assessment Weightage & Type
30% Individual Coursework


Year and Semester
2018-19 Autumn


Student Name: Prajun Lungeli
London Met ID: 18029493
College ID: NP01CP4A180010
Assignment Due Date: 25th January 2019

Assignment Submission Date: 25th January 2019




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 mark of zero will be
awarded.

,Contents

Introduction ................................................................................................................................... 1
Class Diagram ............................................................................................................................... 2
• Developer Class ................................................................................................................ 2
• SeniorDeveloper class ..................................................................................................... 3
• JuniorDeveloper class ..................................................................................................... 4
Pseudocode ................................................................................................................................... 5
• Developer class ................................................................................................................. 5
• SeniorDeveloper class ..................................................................................................... 6
• JuniorDeveloper class ..................................................................................................... 9
Method Description .................................................................................................................... 13
• Developer Method ........................................................................................................... 13
• SeniorDeveloper Method ............................................................................................... 14
• JuniorDeveloper Method ............................................................................................... 15
Test ................................................................................................................................................ 16
• Test 1 ................................................................................................................................. 16
• Test 2 ................................................................................................................................. 20
• Test3 .................................................................................................................................. 22
• Test4 .................................................................................................................................. 26
Error .............................................................................................................................................. 28
• First error .......................................................................................................................... 28
• Second error .................................................................................................................... 28
• Third error......................................................................................................................... 29
Conclusion ................................................................................................................................... 30
Appendix ...................................................................................................................................... 31
• Developer class code ..................................................................................................... 31
• SeniorDeveloper class code ......................................................................................... 33
• JuniorDeveloper class code ......................................................................................... 38
References ................................................................................................................................... 43

,Table of figures
Figure 1: Java ................................................................................................................................. 1
Figure 2: BlueJ IDE ........................................................................................................................ 1
Figure 3: Running SeniorDeveloper constructor ........................................................................ 16
Figure 4: Adding value to instance variable through constructor ............................................. 17
Figure 5: Inspecting SeniorDevloper class ................................................................................. 17
Figure 6: Running hireDeveloper method................................................................................... 18
Figure 7: Filling data through hireDeveloper method ................................................................ 18
Figure 8: Displaying message after hiring developer ................................................................ 19
Figure 9: Re-inspecting SeniorDeveloper class ......................................................................... 19
Figure 10: Inspecting SeniorDeveloper class ............................................................................. 20
Figure 11: Running contractTermination method ...................................................................... 21
Figure 12: Displaying message after termination of contract .................................................... 21
Figure 13: Re-inspecting SeniorDeveloper class ....................................................................... 21
Figure 14: Running JuniorDeveloper class constructor............................................................. 22
Figure 15: Adding value to instance variable through JuniorDeveloper constructor .............. 23
Figure 16: Inspecting JuniorDeveloper class ............................................................................. 23
Figure 17: Running appointDeveloper method .......................................................................... 24
Figure 18: Filling data through appointDeveloper method ........................................................ 24
Figure 19: Displaying message after appointing developer ...................................................... 25
Figure 20: Re-inspecting JuniorDeveloper class ....................................................................... 25
Figure 21: Running devInfo method ............................................................................................ 26
Figure 22: Displaying information of SeniorDeveloper class .................................................... 27
Figure 23 : Running juniorDevInfo method ................................................................................. 27
Figure 24: Displaying information of JuniorDeveloper class ..................................................... 27
Figure 25 : First error.................................................................................................................... 28
Figure 26: First error correction ................................................................................................... 28
Figure 27: Second error ............................................................................................................... 28
Figure 28: Second error correction ............................................................................................. 29
Figure 29: Third error ................................................................................................................... 29
Figure 30: Third error correction.................................................................................................. 29

, Table of Tables

Table 1: Developer class diagram ......................................................................................... 2
Table 2: SeniorDeveloper class diagram ............................................................................... 3
Table 3: JuniorDeveloper class diagram ............................................................................... 4
Table 4: Developer class method description ...................................................................... 13
Table 5: SeniorDeveloper class method description ............................................................ 14
Table 6: JuniorDeveloper class method description ............................................................ 15
Table 7: first test ................................................................................................................. 16
Table 8: second test ............................................................................................................ 20
Table 9: third test ................................................................................................................ 22
Table 10: fourth test ............................................................................................................ 26
$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