Group 5 Computer Algorithm
Group 5 Computer Algorithm
ALGORITMA KOMPUTER
SECTION: 5
LAB: 1
STUDENT NAME
NAME MATRIK NUMBER
ALLY AKHTAR BIN ANWAR AA232367
MUHAMMAD IKHWAN ASHRAF BIN MOHD RAZIF AA230429
MUHAMMAD IZAM IZANI BIN MOHD NAZIHA AA231986
PRACTICAL EXERCISE
1. Calculate the new salary after a 15% increase.
Word Definition
calculate determine (the amount or number of something) mathematically
new produced, introduced, or discovered recently or now for the first time; not existing before
salary a fixed regular payment, typically paid on a monthly basis but often expressed as an annual
sum, made by an employer to an employee, especially a professional or white-collar worker
15% A quarter of hundred
IPO table
Component Requirement Name of variables, formulas
I Amount of salary aos
P Formula to create new salary ns=(15%*aos)+aos
O New salary ns
Expected screen
CONCLUSION : In conclusion the old salary is 7500.The new salary aftrer 15%
increase is 8625.
2. Calculate the average mark of five students.
Word Definition
calculate determine (the amount or number of something) mathematically
average a number expressing the central or typical value in a set of data
IPO table
Component Requirement Name of variables, formulas
I Mark five students ms1, ms2, ms3, ms4, ms5
P Determine 5 numbers and av = (ms1 + ms2 + ms3 + ms4 +
divide all by the number of ms5) / 5
marks
O Average mark av
CONCLUSION : In conclusion,the average mark of five students after the total marks
of five students divided by 5 is 84.
IPO table
Component Requirement Name of variables, formulas
I Original price p
P Formula to create new np=(0.1 * p) - p
price
O New price np
CONCLUSION :
In conclution, the original price is RM8052. The new price after 10% discount is
RM7246.80.
Word Definition
calculate determine (the amount or number of something) mathematically
volume The amount of space that is contained within an object or solid shape
pyramid a solid shape with a flat, square base and four flat, triangular sides which slope
inward and meet to form a point at the top
IPO table
Component Requirement Name of variables, formulas
I Height of pyramid p_h
Length of pyramid p_l
Width of pyramid p_w
P Volume of pyramid equal to vop = (h*l*w/3)
height multiply length
multiply width and divided by
3
O Volume v
REFERENCES
- https://www.calculator.net/
- https://dictionary.cambridge.org/
- https://byjus.com/maths/average/