2223-1 Assignment 4 at KE17503
2223-1 Assignment 4 at KE17503
Instruction
1. Submit the assignment latest by 30 December 2022. Need to submit a hardcopy and a softcopy.
2. Hardcopy needs to be submitted during the class.
3. Softcopy needs to be uploaded to Gradescope (entry code: NXR7R7).
4. Use UMS email to create an account in Gradescope (https://www.gradescope.com/).
𝑥𝑛 10 11 12 13 14 15 16 17
𝑒 𝑥 = ∑∞
𝑛=0 ( 𝑛! ) = + + + + + + + +⋯
0! 1! 2! 3! 4! 5! 6! 7!
b. Formulate a Maclaurin series to estimate an exponential value using the concept of user-defined
function. Test the developed program with at least 5 sets of inputs, and compare the results with
manual calculations. How many terms are needed so that the estimated result from the series equals
to the result from the 𝑒𝑥𝑝(𝑥) library function up to 6th decimal place.
(5 marks)
c. Discuss the challenges in developing the program. How to overcome the challenges?
(3 marks)
Rubric:
Score Description
0 Not organised, the flow is illogical and not clear
1 Partly organised, the flow is slightly unclear
2 Organised, the flow is logical and clear
b. Develop a program to compute [objective]. Test the developed program with at least 5 sets of inputs,
and compare the results with manual calculations.
(5 marks)
Rubric:
Score Description
0 Coding is not attached
1 Coding is attached, but not executable
2 Executable programme with logical errors
3 Executable programme, but the flow is not matched with the flowchart
4 Readable code, executable programme, insufficient testing data
5 Readable code, executable programme, sufficient testing data
c. Discuss the challenges in developing the program. How to overcome the challenges?
(3 marks)
Rubric:
Score Description
0 Not relevant, and unable to demonstrate the ability in analysing and debugging in C
1 Little relevance, and demonstrate limited ability to analyse and debug in C
2 Relevant, and demonstrate some ability to analyse and debug in C
3 Comprehensive, and demonstrate ability to analyse and debug in C