You are on page 1of 1

NATIONAL INSTITUTE OF TECHNOLOGY MEGHALAYA

ME-325 (Computational Fluid Dynamics Laboratory)


ASSIGNMENT-I (Preparatory programs)
Date of submission : 25.01.18

1. Write a program to find even and odd numbers between a user-defined range of
numbers.
2. Write a program to find factorial of a user defined number.
3. Write a program to find roots of a quadratic equation. Coefficients of the equation need
to be user defined. Display the equation as well.
4. Write a program to check a leap year.
5. Write a program to calculate average of user defined numbers using arrays. Memory of
an array need to be dynamically allocated.
6. Write a program to find largest and smallest element of an array.
7. Write a program to add, subtract and multiply two MxN matrices. The order of the
matrices as well as the elements of two matrices should be user defined.
8. Write a program to write a sentence to a file.
9. Write a program to read a line from a file and display it.
10. Write the program no. 7 in such a way that the input to matrices is from a file and the
outcome is displayed to another file.

Note: Use of function (subroutines) and pointers wherever necessary are appreciable​.

REPORT
The report of the assignment should include following sections-
● Aim/Objective
● Flowchart or Algorithm of the program
● Pseudo code
● Implementation issues of the program
● Comments
● Conclusions

Submission Details
● The report in the prescribed format should be submitted in hardcopy on or before
25.01.2018
● The program of the given problems should be submitted by replying to the mail under the
subject ​ASSIGNMENT-I_ME325_2018​. Do not compose new mail to send your code.
Reply in the following mail only. The code should be given title as ​“Roll
No._A1.problem No.”
● The codes of the given problem should be mailed by ​24.01.2018

You might also like