Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
2 views

Insha's Programming

The document outlines the assignment requirements for the Pearson Higher National Diploma in Computing, specifically focusing on programming. It includes guidelines for internal verification of assessment decisions, assignment feedback forms, and detailed instructions for a GUI-based payroll system project. Students are expected to demonstrate understanding of algorithms, programming paradigms, and the use of an Integrated Development Environment (IDE) while adhering to academic integrity standards.

Uploaded by

Mohamed Muthaiyb
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Insha's Programming

The document outlines the assignment requirements for the Pearson Higher National Diploma in Computing, specifically focusing on programming. It includes guidelines for internal verification of assessment decisions, assignment feedback forms, and detailed instructions for a GUI-based payroll system project. Students are expected to demonstrate understanding of algorithms, programming paradigms, and the use of an Integrated Development Environment (IDE) while adhering to academic integrity standards.

Uploaded by

Mohamed Muthaiyb
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 30

Pearson Higher Nationals in

Computing

Unit 01: Programming


Assignment 01
Higher Nationals

Internal verification of assessment decisions – BTEC (RQF)

INTERNAL VERIFICATION – ASSESSMENT DECISIONS

Programme title Higher National Diploma in Computing

Assessor Internal Verifier

Unit(s)

Assignment title

Student’s name

List which Pass Merit Distinction


assessment criteria
the Assessor has
awarded.

INTERNAL VERIFIER CHECKLIST

Do the assessment criteria


awarded match those shown
in the assignment brief?
Y/N

Is the Pass/Merit/Distinction
grade awarded justified by the
Y/N
assessor’s comments on the
student work?

Has the work been assessed


accurately?
Y/N

Is the feedback to the


student:
Give details:

• Constructive?

• Linked to relevant assessment Y/N Y/N


criteria?
Y/N
• Identifying opportunities for
Y/N
improved performance?

• Agreeing actions?

Does the assessment decision


need amending?
Y/N

Assessor signature Date

Internal Verifier signature Date

Programme Leader signature


(if required)
Date
Confirm action completed

Remedial action
taken

Give details:

Assessor Date
signature

Internal Verifier
signature
Date

Programme
Leader signature
Date
(if required)
Higher Nationals - Summative Assignment Feedback Form

Student
Name/ID

Unit Title

Assignment Assessor
Number

Date Received
1st submission
Submission Date

Date Received
2nd submission
Re-submission
Date

Assessor Feedback:

LO1. Define basic algorithms to carry out an operation and outline the process of
programming an application.

Pass, Merit & Distinction P1 M1 D1


Descripts

LO2. Explain the characteristics of procedural, object-orientated and event-driven


programming, conduct an analysis of a suitable Integrated Development Environm
(IDE).

Pass, Merit & Distinction P2 M2 D2


Descripts

LO3. Implement basic algorithms in code using an IDE.

Pass, Merit & Distinction P3 M3 D3


Descripts
LO4. Determine the debugging process and explain the importance of a coding
standard.

Pass, Merit & Distinction P4 P5 M4 D4


Descripts

Grade: Assessor Signature: Date:

Resubmission Feedback:

Grade: Assessor Signature: Date:

Internal Verifier’s Comments:

Signature & Date:

* Please note that grade decisions are provisional. They are only confirmed
once internal and external moderation has taken place and grades decisions
have been agreed at the assessment board.
Assignment Feedback

Formative Feedback: Assessor to Student

Action Plan

Summative feedback

Feedback: Student to Assessor


Assessor Date
signature

Student Date
signature
Pearson Higher Nationals in

Computing

Unit 01: Programming

Assignment 01
General Guidelines

1. A Cover page or title page – You should always attach a title page to
your assignment. Use the previous page as your cover sheet and
make sure all the details are accurately filled.

2. Attach this brief as the first section of your assignment.

3. All the assignments should be prepared using word processing


software.

4. All the assignments should be printed on A4 sized papers. Use single


side printing.

5. Allow 1” for top, bottom, right margins and 1.25” for the left margin
of each page.

Word Processing Rules

1. The font size should be 12 point and should be in the style of Time
New Roman.

2. Use 1.5 line spacing. Left justify all paragraphs.

3. Ensure that all the headings are consistent in terms of the font size and
font style.

4. Use footer function in the word processor to insert Your Name,


Subject, Assignment No, and Page Number on each page. This is
useful if individual sheets become detached for any reason.

5. Use word processing application spell check and grammar check


function to help editing your assignment.

Important Points:

1. It is strictly prohibited to use textboxes to add texts in the


assignments, except for the compulsory information. e.g.: Figures,
tables of comparison etc. Adding text boxes in the body except for the
compulsory information mentioned will result in rejection of your work.
2. Carefully check the hand in date and the instructions given in the
assignment. Late submissions will not be accepted.

3. Ensure that you give yourself enough time to complete the assignment
by the due date.

4. Excuses of any nature will not be accepted for failure to hand in the
work on time.

5. You must take responsibility for managing your own time effectively.

6. If you are unable to hand in your assignment on time and have valid
reasons such as illness, you may apply (in writing) for an extension.

7. Failure to achieve at least PASS criteria will result in a REFERRAL grade.

8. Non-submission of work without valid reasons will lead to an automatic


RE FERRAL. You will then be asked to complete an alternative
assignment.

9. If you use other people’s work or ideas in your assignment, reference


them properly using HARVARD referencing system to avoid plagiarism.
You must provide both in-text citation and a reference list.

10. If you are proven to be guilty of plagiarism or any academic


misconduct, your grade could be reduced to A REFERRAL or at worst
you could be expelled from the course
Student Declaration

I hereby, declare that I know what plagiarism entails, namely to use another’s work and to present it
as my own without attributing the sources in the correct way. I further
understand what it means to copy another’s work.

I know that plagiarism is a punishable offence because it constitutes theft.


1. I know that plagiarism is a punishable offence because it constitutes theft.
2. I understand the plagiarism and copying policy of the Edexcel UK.
3. I know what the consequences will be if I plagiaries or copy another’s work in
any of the assignments for this program.
4. I declare therefore that all work presented by me for every aspect of my
program, will be my own, and where I have made use of another’s work, I will
attribute the source in the correct way.
5. I acknowledge that the attachment of this document signed or not,
constitutes a binding agreement between myself and Edexcel UK.
6. I understand that my assignment will not be considered as submitted if this
document is not attached to the attached.
7. I understand the plagiarism and copying policy of the Edexcel UK.
8. I know what the consequences will be if I plagiaries or copy another’s work in any of the
assignments for this program.
9. I declare therefore that all work presented by me for every aspect of my
program, will be my own, and where I have made use of another’s work, I will
attribute the source in the correct way.
10. I acknowledge that the attachment of this document signed or not, constitutes a
binding agreement between myself and Edexcel UK.
I understand that my assignment will not be considered as submitted if this
document is not attached to the attached

Student’s Signature: Date:


(Provide E-mail ID) (Provide Submission Date)
Higher National Diploma in Computing
Assignment Brief

Student Name /ID Number

Unit Number and Title Unit 01: Programming

Academic Year 2021/22

Unit Tutor

Assignment Title Design &Implement a GUI based system


using a suitable Integrated Development
Environment

Issue Date

Submission Date

IV Name & Date

Submission Format

This submission will have 3 components


1. Written Report
This submission is in the form of an individual written report. This should be written in
a concise, formal business style using single spacing and font size 12. You are
required to make use of headings, paragraphs and subsections as appropriate, and all
work must be supported with research and referenced using the Harvard referencing
system. Please also provide a bibliography using the Harvard referencing system.
(The recommended word count is 1,500–2,000 words for the report
excluding annexures)

2. Implemented System (Software)


The student should submit a GUI based system developed using an IDE. The system
should connect with a backend database and should have at least 5 different forms
and suitable functionality including insert, edit and delete of main entities and
transaction processing.

3. Presentation
With the submitted system student should do a presentation to demonstrate the
system that was developed. Time allocated is 10 to 15 min. Student may use 5 to 10
PowerPoint slides while doing the presentation, but live demonstration of the system
is required. Evaluator will also check the ability to modify and debug the system using
the IDE.

Unit Learning Outcomes:

LO1. Define basic algorithms to carry out an operation and outline


the process of programming an application.

LO2. Explain the characteristics of procedural, object-orientated


and event-driven programming.

LO3. Implement basic algorithms in code using an IDE.

LO4. Determine the debugging process and explain the


importance of a coding standard

Assignment Brief and Guidance:

Activity 1

A. The Fibonacci numbers are the numbers in the following integer sequence.
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ……..

In mathematical terms, the sequence Fn of Fibonacci numbers is defined by the recurrence


relation.

Fn = F n-1 + F n-2

B. Factorial of a non-negative integer, is multiplication of all integers smaller than or equal


to n. For example, factorial of 6 is 6*5*4*3*2*1 which is 720.
n! = n * (n - 1) * …….. 1

Define what an algorithm is and outline the characteristics of a good


algorithm. Write the algorithms to display the Fibonacci series and the
factorial value for a given number using Pseudo code. Determine the
steps involved in the process of writing and executing a program and
carry out an analysis of writing the code phase by discussing the
potential challenges faced.
Take a sample number and dry run the above two algorithms. Show the
outputs at the end of each iteration and the final output. Examine what
Big-O notation is and explain its role in evaluating efficiencies of
algorithms. Write the Python program code for the above two algorithms
and critically evaluate their efficiencies using Big-O notation.

Activity 2

2.1 Compare and discuss what is meant by a Programming


Paradigm and the main characteristics of Procedural, Object oriented
and Event-driven paradigms and the relationships among them. Write
small snippets of code as an example for the above three
programming paradigms using a suitable programming language(s)
and critically evaluate the code samples that you have given above in
relation to their structure and the unique characteristics.

Activity 3 and Activity 4 are based on the following Scenario.

Grifindo Toys is a small-scale Toy building company which is located in United Kingdom (UK)
and currently they have 50 employees working at their headquarters. They are looking for a
simple payroll system to calculate the salaries of their employees and you are hired as a
freelance software developer to build their payroll system.

Specifications for the payroll system as follows,

Grifindo Toys Payroll System mainly contains five components and the specifications for the
components are follows,

1. Employee Component.
 Admin should be able to register employee details to the system (including
monthly salary, overtime rates-hourly, allowances).
 Admin should be able to update all employee details in the system (Update and
Delete including monthly salary, overtime rates-hourly, allowances).
 Admin should be able to view individual employee details, view all employees
details, search employees.
2. Salary Component

Admin should be able to input the date range to calculate the salary. Salary cycle
begin date and the end date should be given to calculate the monthly salary.
Salary cycle begin date and end date will be defined in the settings component
and if the user enters something else the system should display an error message.

The admin should be able to enter the no of leaves an employee has taken with
number of absent days, no of holidays for the given date range. If an employee
has worked any overtime hours the admin should be able to enter that also when
calculating the Base pay value.
Base Pay need to calculate based on the following points,

Base Pay (Monthly Salary: salary_cycle_date_range, eg: 30 days): Each


employee will be paid monthly
If any employee couldn’t cover salary_cycle_date_range (eg:-30 days)
attendance the system should calculate the no-pay value according to the below
mention formula,

No-pay-value = (Total_Salary/salary_cycle_date_range) *No_of_absent_days

Base Pay need to calculate according to the below mentioned formula

Base Pay value = Monthly_Salary + Allowances +


(Over_time_rate*no_of_overtime_hours)

Gross Pay need to calculate according to the below mentioned formula

Gross Pay = Base_Pay_value – (No_pay_value +


Base_Pay_value*government_tax_rate)

All the calculated No-pay-value, Base-pay-value and Gross pay value should
record in the database under each employee for each month. This component
should generate reports such as monthly salary report for an employee, overall
salary summary for couple of months for an employee, No-pay-value, base-pay-
value, and gross pay value of all the employees for a given month range.

3. Settings Component
This component should allow the admin to change parameter values such as

i. Date Range for a salary cycle. Eg:- 30 days


ii. Salary cycle begin date
iii. Salary cycle end date
iv. No of leaves for an employee for a year.

Activity 3

Write the complete pseudocode for the salary component of the above system (report
generation is not needed). Use the visual studio IDE (using C#.net) to implement the
above three components. Ideally there should be three separate classes for the above
three components and the developer can decide the methods which need to include in
those classes. Design the suitable database structure for keeping the data of the above
system.
Analyze the features of an Integrated Development Environment (IDE) and explain how
those features help in application development. Evaluate the use of the Visual StudioIDE
for your application development contrasted with not using an IDE.
Activity 4
2.1 Design and build a small GUI system for the above scenario and it should be a complete
functional system with all the functions which has described in the above scenario with the
database structure which has designed in activity 3.
2.2 Examine debugging process and the features available in Visual studio
IDE for debugging your code more easily. Evaluate how you used the
debugging process to develop more secure, robust application with
examples.

2.3 Explain and outline the coding standards you have used in your
application development. Critically evaluate why a coding standard is
necessary for the team as well as for the individual.
Activity 2

2.2 Compare and discuss what is meant by a Programming


Paradigm and the main characteristics of Procedural, Object oriented
and Event-driven paradigms and the relationships among them. Write
small snippets of code as example for the above three programming
paradigms using a suitable programming language(s) and critically
evaluate the code samples that you have given above in relation to
their structure and the unique characteristics.

Activity 3 and Activity 4 are based on the following Scenario.

Grifindo Toys is a small-scale Toy building company which is located in United Kingdom (UK)
and currently they have 50 employees working at their headquarters. They are looking for a
simple payroll system to calculate the salaries of their employees and you are hired as a
freelance software developer to build their payroll system.

Specifications for the payroll system as follows,

Grifindo Toys Payroll System mainly contains five components and the specifications for the
components are follows,

4. Employee Component.
 Admin should be able to register employee details to the system (including
monthly salary, overtime rates-hourly, allowances).
 Admin should be able to update all employee details in the system (Update and
Delete including monthly salary, overtime rates-hourly, allowances).
 Admin should be able to view individual employee details, view all employees
details, search employees.
5. Salary Component

Admin should be able to input the date range to calculate the salary. Salary cycle
begin date and the end date should be given to calculate the monthly salary.
Salary cycle begin date and end date will be defined in the settings component
and if the user enters something else the system should display an error message.

The admin should be able to enter the no of leaves an employee has taken with
number of absent days, no of holidays for the given date range. If an employee
has worked any overtime hours the admin should be able to enter that also when
calculating the Base pay value.

Base Pay need to calculate based on the following points,

Base Pay (Monthly Salary: salary_cycle_date_range, eg: 30 days): Each


employee will be paid monthly
If any employee couldn’t cover salary_cycle_date_range (eg:-30 days)
attendance the system should calculate the no-pay value according to the below
mention formula,

No-pay-value = (Total_Salary/salary_cycle_date_range) *No_of_absent_days

Base Pay need to calculate according to the below mentioned formula

Base Pay value = Monthly_Salary + Allowances +


(Over_time_rate*no_of_overtime_hours)

Gross Pay need to calculate according to the below mentioned formula

Gross Pay = Base_Pay_value – (No_pay_value +


Base_Pay_value*government_tax_rate)

All the calculated No-pay-value, Base-pay-value and Gross pay value should
record in the database under each employee for each month. This component
should generate reports such as monthly salary report for an employee, overall
salary summary for couple of months for an employee, No-pay-value, base-pay-
value, and gross pay value of all the employees for a given month range.

6. Settings Component
This component should allow the admin to change parameter values such as

i. Date Range for a salary cycle. Eg:- 30 days


ii. Salary cycle begin date
iii. Salary cycle end date
iv. No of leaves for an employee for a year.

Activity 3

Write the complete pseudocode for the salary component of the above system (report
generation is not needed). Use the visual studio IDE (using C#.net) to implement the
above three components. Ideally there should be three separate classes for the above
three components and the developer can decide the methods which need to include in
those classes. Design the suitable database structure for keeping the data of the above
system.
Analyze the features of an Integrated Development Environment (IDE) and explain how
those features help in application development. Evaluate the use of the Visual StudioIDE
for your application development contrasted with not using an IDE.
Activity 4
2.4 Design and build a small GUI system for the above scenario and it should be a complete
functional system with all the functions which has described in the above scenario with the
database structure which has designed in activity 3.
2.5 Examine debugging process and the features available in Visual studio
IDE for debugging your code more easily. Evaluate how you used the
debugging process to develop more secure, robust application with
examples.

2.6 Explain and outline the coding standards you have used in your
application development. Critically evaluate why a coding standard is
necessary for the team as well as for the individual.

Grading Rubric

Grading Criteria Achieved Feedback


LO1 Define basic algorithms to carry out
an operation and outline the process of
programming an application.

P1 Define an algorithm and outline the process


in building an application

P2 Determine the steps taken from writing code


to execution.

M1 Analyse the process of writing code,


including the potential challenges faced.

D1 Evaluate the implementation of an algorithm


in a suitable language and the relationship
between the written algorithm and the code
variant

LO2 Explain the characteristics of


procedural, object orientated and
event-driven programming

P3 Discuss what procedural, object orientated


and event driven paradigms are; their
characteristics and the relationship between
them.

M2 Compare the procedural, object-orientated


and event driven paradigms used in given source
code of an application

D2 Critically evaluate the source code of an


application that implements the procedural,
object-orientated and event-driven paradigms, in
terms of the code structure and characteristics.
LO3 Implement basic algorithms in code
using an IDE.
P4 Write a program that implements an
algorithm using an IDE.

M3 Enhance the algorithm written, using the


features of the IDE to manage the development
process.

D3 Evaluate the use of an IDE for development


of applications contrasted with not using an IDE.

LO4 Determine the debugging process


and explain the importance of a coding
standard

P5 Explain the debugging process and explain


the debugging facilities available in the IDE.

P6 Explain the coding standard you have used in


your code.

M4 Examine how the debugging process can be


used to help develop more secure, robust
applications.

D4 Evaluate the role and purpose of a coding


standard and why it is necessary in a team as
well as for the individual.

Acknowledgement

I would like to express my sincere gratitude to the lecturers and staff of


ESOFT Metro Campus for their continuous guidance, support, and
encouragement throughout the completion of this assignment.
A special thanks to my programming instructor for providing valuable
insights and resources that helped me understand the core concepts of
algorithm design, programming paradigms, and GUI development using
Visual Studio.
I also extend my appreciation to my fellow classmates for their collaborative
spirit and helpful discussions that contributed to a better learning
experience.
Finally, I thank my family and friends for their constant motivation and
support during the preparation of this assignment.

Fathima Insha

Contents

Acknowledgement…………………………………………………………………………...1
4
1.1 Define what an algorithm is and outline the characteristics of a good
algorithm.
Develop algorithms for linear search and binary search using Pseudo
code………………..19 1.2 Describe the steps involved in the process of
writing and executing a program. Take an array of 10 or more elements and
dry run the above two algorithms. Show the outputs at
the end of each iteration and the final output……………………..
………………………..29

1.3 Define what Big-O notation is and explain its role in evaluating
efficiencies of algorithms. Write the Python program code for the above two
algorithms and critically
evaluate their efficiencies using Big-O
notation……………………………………………34

2.1 Define what is meant by a Programming Paradigm. Explain the main


characteristics of

Procedural, Object oriented and Event-driven paradigms and the


relationships among

them…………………………………………………………………………………………39
2.2 Write small snippets of code as example for the above three
programming paradigms

using a suitable programming language(s)


…………………………………………………42
2.3 Critically evaluate the code samples that you have above in relation to
their structure

and the unique


characteristics………………………………………………………………47

In the second example this codded example for Object oriented


programming paradigm using the programming language C#. The Object-
oriented programming is based on the concept
of "objects"…………………………………………………………………………………50
Activity 03………………………………………………………………………………….53
3.1 Design suable algorithms for vehicle tariff calculation for rents and
hires. Ideally 3 functions should be developed for this purpose as
follows………………………….....53 3.2 Implement the above algorithms using
visual studio IDE (using C#.net) and design the suitable database structure
for keeping the tariffs for vehicle types and different packages which must
be used for implementing the above functions……………………..56 3.3
Analyze the features of an Integrated Development Environment (IDE) and
explain how those features help in application development. Evaluate the
use of the Visual Studio IDE for your application development contrasted
with not using an IDE…………………72

4.1 Design and build a small system to calculate vehicle hire amounts and
record them in a database for customer billing and management reporting
for Ayubo drive. This includes the completing the database design started
in 3.2 and implementing one or more GUIs for vehicle, vehicle type, and
package add/edit/delete functions. It essentially requires an interface for
hire calculation and recording function described above. Generating
customer reports and customer invoices are not required for this course
work………………………77 4.2 What is debugging an application? Explain the
features available in Visual studio
IDE for debugging your code more easily. Evaluate how you used the
debugging process to develop more secure, robust application with
examples………………………………..110
4.3 Explain the coding standards you have used in your application
development. Critically evaluate why a coding standard is necessary for the
team as well as for the individual…...115
List of references…………………………………………………………………………...119

Figure of contents
Figure 1 How Linear search works…………………………………………………………
25

Figure 2 How Binary search works…………………………………………………………


27 Figure 3 Output for the C++
code…………………………………………………………..43
Figure 4 Output for the C#
code…………………………………………………………….45 Figure 5 Output for the
python paradigm…………………………………………………...46
Figure 6 Flowchart for rent
calculation……………………………………………………..53
Figure 7 Flow chart for day tour hire
calculation…………………………………………...54

Figure 8 Flow chart for long tour hire


calculation………………………………………….55
Figure 9 output for rent calculation code….
………………………………………………..57
Figure 10 Output for day tour
calculation…………………………………………………..59
Figure 11 Output for long tour
calculation…………………………………………………61

Figure 12 Ayubo Drive Database


Structure………………………………………………62

Figure 13 insert values for package


registration……………………………………………62

Figure 14 Before
update…………………………………………………………………….64
Figure 15 After update……………………………………………………………………...64
Figure 16 The Before Delete Package
Table……………………………………………….66
Figure 17 The after delete package
table………………………………………………….66 Figure 18 Insert values to
vehicle registration……………………………………………..67

Figure 19 Before update……………………………………………………………………68


Figure 20 After update……………………………………………………………………...69
Figure 21 Before
delete……………………………………………………………………..70
Figure 22 After delete………………………………………………………………………70
Figure 23 Example visual studio IDE………………………………………………………
72
Figure 24 Login page for ayubo
drive………………………………………………………77 Figure 25 Display exit
button……………………………………………………………….78
Figure 26 Login as
admin…………………………………………………………………...82 Figure 27 Main
menu……………………………………………………………………….83
Figure 28 Logout button……………………………………………………………………83
Figure 29 Insert values for vehicle
registration…………………………………………….85

Figure 30 Update seat


capacity……………………………………………………………..86

Figure 31 After update seat


capacity………………………………………………………..87

Figure 32 Delete value………………………………………………………………………


88 Figure 33 Insert driver
details……………………………………………………………….89 Figure 34 Update
over night charge…………………………………………………………90
Figure 35 Delete driver
id…………………………………………………………………...91
Figure 36 Insert package
detailes……………………………………………………………92

Figure 37 Update package type……………………………………………………………


93 Figure 38 Delete package
id…………………………………………………………………94
Figure 39 Login as
receptionist………………………………………………………………95

Figure 40 Main menu for


receptionist……………………………………………………….95 Figure 41 Insert rent
values………………………………………………………………….98
Figure 42 Update return
date………………………………………………………………...99 Figure 43 Delete rent
details………………………………………………………………..100
Figure 44 Insert details for day tour hire
calculation…...........................................................101
Figure 45 Update package
type………………………………………………………………102
Figure 46 Delete detail from day tour hire
calculation……………………………………..104
Figure 47 Insert detail for long tour hire
calculation………………………………………105 Figure 48 Update vehicle
type……………………………………………………………107

Figure 49 Delete details in long tour hire calculation……………………………………...109


Figure 50 The debugging
menu…………………………………………………………….110

Figure 51 Break point in code………………………………………………………………


111
Figure 52 Run to click in visual
studio……………………………………………………..111

Figure 53 Examine exceptions………………………………………………………………


112 Figure 54 Error
list…………………………………………………………………………..114
Figure 55 Exception…………………………………………………………………………
114

You might also like