0% found this document useful (0 votes)
61 views2 pages

2223-1 Assignment 4 at KE17503

The document provides instructions for submitting Assignment 4, which involves developing a C program to estimate an exponential function using Maclaurin series. Students must submit both a hardcopy and softcopy of the assignment by December 30th, with the hardcopy submitted in class and the softcopy uploaded to Gradescope. The assignment is worth 10 marks and involves: (1) sketching a flowchart for the program (2 marks), (2) developing the program to compute the series and testing it with sample inputs (5 marks), and (3) discussing challenges and solutions in developing the program (3 marks). Rubrics are provided to evaluate each part.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views2 pages

2223-1 Assignment 4 at KE17503

The document provides instructions for submitting Assignment 4, which involves developing a C program to estimate an exponential function using Maclaurin series. Students must submit both a hardcopy and softcopy of the assignment by December 30th, with the hardcopy submitted in class and the softcopy uploaded to Gradescope. The assignment is worth 10 marks and involves: (1) sketching a flowchart for the program (2 marks), (2) developing the program to compute the series and testing it with sample inputs (5 marks), and (3) discussing challenges and solutions in developing the program (3 marks). Rubrics are provided to evaluate each part.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Name: ______________________________________________ Matric: _________________________

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/).

Assignment 4 (10 marks)


Develop a program in C to estimate the value of an exponential function, 𝑒 𝑥 using Maclaurin series, as
shown in equation below:

𝑥𝑛 10 11 12 13 14 15 16 17
𝑒 𝑥 = ∑∞
𝑛=0 ( 𝑛! ) = + + + + + + + +⋯
0! 1! 2! 3! 4! 5! 6! 7!

a. Sketch the flowchart for the program.


(2 marks)

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)

KE17503 Engineering Programming


Name: ______________________________________________ Matric: _________________________

Rubrics for Assignments:

a. Sketch the flowchart for the program.


(2 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

KE17503 Engineering Programming

You might also like