Uploaded by Utsho Paul

Lab Report - Ahnaf Rafid

advertisement
Lab Report for CSE-1213(Computer Programming)
Submission Deadline: 18 Feb
Instructions:
Follow the sample attached in the last page to see how you should present
your lab task.
Remember you need to submit hand written lab report along with your
source codes. Hand written version should be written in an A4 size offset
paper and then covert all the pages to a pdf file (Neat and clear). The name
of the pdf file will be same as your student id. Finally keep all the source
codes and pdf file in a folder and covert the folder as .zip or .rar. This final
.zip or .rar file sould be uploaded in the google classroom task. Again,the
name of the pdf file will be same as your student id.
Problems:
1) Write a program that shows the all factorial of positive integer in between lower limit to upper limit.
2) Write down a program which will produce a series like: 0 1 1 2 3 5 8 13 21 and so on…. For a given N, you
should print a series like the above one. Here for the above example, the value of N is 9.
3) Write a program which will take two binary number as input and will add two binary number without any
carry.
Example: 10110011
10100101
Output: 00010110
4) Write a program which will take a matrix as an input. Then it will change its every row to every column.
5) Write a program which will take 5 float numbers as inputs and will find out the maximum among these
numbers. You should only use ternary operators for making comparisons.
6) Write a program to create a structure which will consists of Student name, Student ID, GPA of C
Programming, Discrete Mathematics, Algorithm and English. You have to find out the CGPA Grade of that
particular person. You will follow standard Grading system such as: CGPA 4.00 = Grade A+ , CGPA 3.5=
Grade A- and so on.
Example:
Input:
Number of students: 2
Student 1:
Student Name: ZZZ
Student ID: 12334
GPA of C: 3.50
GPA of ALgo: 4.00
GPA of English: 2.75
GPA of Math: 3.00
Student 2:
Student Name: DDD
Student ID: 12334
GPA of C: 3.50
GPA of Algo: 4.00
GPA of English: 2.75
GPA of Math: 3.25
Output:
Student 1:
CGPA: 3.337(Equivalence to 3.25(using Flooring))
GRADE: AStudent 2:
CGPA: 3.375(Equivalence to 3.5(using Ceiling))
GRADE: A-
7) Write a program to calculate simple interest for a given P=200, T=2, R=0.5. (I =
P*T*R/100)
Example of a Lab task (How it should be written):
After the above steps you should write your program.
Download