1618 IT Fundamental & Procedural Programming
1618 IT Fundamental & Procedural Programming
Student declaration
I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that
making a false declaration is a form of malpractice.
Student’s signature
Grading grid
P1 M1 D1
Summative Feedback: Resubmission Feedback:
Lecturer Signature:
Assignment Brief 1 (RQF)
Higher National Certificate/Diploma in Computing
Student Name/ID Number: NGUYEN NHAT THANH
Submission Format:
Format:
● The 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.
Submission
● Students are compulsory to submit the assignment in due date and in a way requested by the
Tutor.
● The form of submission will be a soft copy posted on http://cms.greenwich.edu.vn/.
● Remember to convert the word file into PDF file before the submission on CMS.
Note:
● The individual Assignment must be your own work, and not copied by or from another student.
● If you use ideas, quotes or data (such as diagrams) from books, journals or other sources, you
must reference your sources, using the Harvard style.
● Make sure that you understand and follow the guidelines to avoid plagiarism. Failure to comply
this requirement will result in a failed assignment.
Assignment scenario
You have applied for a post as a trainee with a software development company and have been invited for
an interview. You have been asked to demonstrate your problem solving and basic programming skills. To
do this you have to prepare a report on using algorithms to solve problems.
You need to explain, using examples, how algorithms are used to solve simple business problems and the
steps needed to be followed to produce a working program solution. You should make clear your
assumption about your program. The problems to be solved will involve basic procedural programming
instructions - sequence instructions (input, output and assignment statements), loops, conditional
statements. Problems should be analysed and designed by the use of flowchart and demonstrated by the
use of modules (procedures).
Tasks:
• State your simple business problems to be solved.
• Analyse the problem and design the solutions by the use of suitable methods.
• Demonstrate the compilation and running of a program
• Evaluate how the problem is solved from the designed algorithm to the execution program
written by a specific programming language.
2. ALGORITHM:
2.1 Definition:
An algorithm is a finite series of well-defined instructions used to solve a class of problems or
START
Begin [PSEUDOCODE]
Localize eyes
ClosedEyeCount := ClosedEyeCount + 1
yes Calculate Profit as Else If eyes are open Then
Income >= Cost?
Income - Cost ClosedEyeCount := 0
End If
no If ClosedEyeCount == 3 Then
End If
End For
End
P1. FLOWCHART P2. PSEUDOCODE
Syntax Highlighting
Autocomplete
[II] IMPLICATIONS
1. BUSINESS APPLICATIONS:
1.1 Problem:
Your company need a quick method of calculating the price of client orders.
1.2 Requirements:
Prices will be slashed by two-thirds of what they were before.
Calculate the pricing of clients' orders, including discounted rates for customers who order
more than 50 products in one transaction.
2. FLOWCHART:
The flowchart must have a clear beginning and end, with only the most basic and required activities for
the primary tasks.
I began by creating a flowchart for the above-mentioned activity using the StarUML application.
I developed a list of everything this software requires:
- Determine and publish the price based on the serial numbers and quantity of goods entered.
- When entering incorrect serial numbers, play an error message and return to the enter serial
numbers line.
- Announce a discount if you input more than a particular amount, and calculate using the lowered
price.
After determining the priorities, I devised a strategy for the entire program and began developing it.
After determining the priorities, I devised a strategy for the entire program and began developing it.
START
< 50
Output prize
End
3. WRITING THE CODES:
The codes were written in Visual Studio.
PICTURE 1
≥ Declaring is required since it directs the program to establish storage locations for your
values.
➔ The reason for declaring is that this will tell the program to make spaces for
your values to be hold in.
PICTURE 2
≥ Print out the products name along with their serial numbers and their set prices.
➔ This step is to interact with the customers, find out their needs
PICTURE 3
≥ Output line to ask the customers for the input serial numbers and the number of product
they need.
➔ This step ensures that we have the proper product before beginning to
calculate the pricing.
➔ While statement works when the while condition is met.
PICTURE 6
PICTURE 7
≥ To compute the incentive for each unique product and validate the amount for decreased
price, I used if-else statements for each product's serial numbers.
➔ The following is how the if-else statement works:
- If requirements are satisfied, the if activities will take place.
- If the if conditions are not satisfied, the else actions will take place.
➔ The if-else statements are used not only to determine the precise product serial
numbers in order to determine their worth for pricing, but also to apply discounts if the
quantity of goods purchased is large enough.
PICTURE 8
PICTURE 1
PICTURE 2
[III] EVALUATION
• Despite the fact that the application performs admirably, it is clear
that it is limited to the task at hand.
• The while statement is only useful if the number of products is
minimal, and it must be used in the right sequence.
• The if-else sentences are rather extensive and difficult to read.
• Overall, the software provides a straightforward answer to the
problem, but one that isn't very long-term.
[1] Wikipedia Contributors (2019). Integrated development environment. [online] Wikipedia. Available
at: https://en.wikipedia.org/wiki/Integrated_development_environment.
[2] What is algorithm? - Definition from WhatIs.com (2019). What is algorithm? - Definition from
WhatIs.com. [online] WhatIs.com. Available at: https://whatis.techtarget.com/definition/algorithm.
[4] www.edrawsoft.com. (n.d.). What is Algorithm - Definition, Types and Application. [online] Available
at: https://www.edrawsoft.com/algorithm-definition.html.
[5] Codecademy News. (2018). What is Computer Programming? [online] Available at:
https://news.codecademy.com/what- is-
computerprogramming/#:~:text=Computer%20programming%20is%20a%20way.
[6] What is Procedural Programming? Key Features of Procedural Programming (2019). What is
Procedural Programming? Key Features of Procedural Programming. [online] Hackr.io. Available at:
https://hackr.io/blog/procedural-programming.
[9] Codecademy News. (2018). What is Computer Programming? [online] Available at:
https://news.codecademy.com/what-is-
computerprogramming/#:~:text=Computer%20programming%20is%20a%20way [Accessed 9 Oct. 2020].