0% found this document useful (0 votes)
51 views1 page

Assignment I Me325

The document outlines 10 preparatory programming assignments for a computational fluid dynamics laboratory course. Students are asked to write programs that find even/odd numbers in a range, calculate factorials, find quadratic equation roots, check for leap years, calculate averages using arrays, find largest/smallest array elements, add/subtract/multiply matrices, write sentences to files, read lines from files, and input/output matrices from/to files. A report on each program is required to include the aim, flowchart, pseudocode, implementation issues, comments, and conclusions. Codes are to be submitted by replying to an assignment email by a deadline of January 24, 2018.

Uploaded by

vivek muktieh
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)
51 views1 page

Assignment I Me325

The document outlines 10 preparatory programming assignments for a computational fluid dynamics laboratory course. Students are asked to write programs that find even/odd numbers in a range, calculate factorials, find quadratic equation roots, check for leap years, calculate averages using arrays, find largest/smallest array elements, add/subtract/multiply matrices, write sentences to files, read lines from files, and input/output matrices from/to files. A report on each program is required to include the aim, flowchart, pseudocode, implementation issues, comments, and conclusions. Codes are to be submitted by replying to an assignment email by a deadline of January 24, 2018.

Uploaded by

vivek muktieh
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/ 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