0% found this document useful (0 votes)
22 views6 pages

Class-12-Guidelines Regarding Computer Science Project

The document provides guidelines for a computer science project. It outlines the requirements such as including at least 25 programs covering all syllabus topics, being logically and syntactically correct, and being printed on one side of paper. It also provides details on the required sections and order including a cover page, acknowledgements, index, and programs with descriptions, algorithms, code, and outputs.

Uploaded by

Yash n
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views6 pages

Class-12-Guidelines Regarding Computer Science Project

The document provides guidelines for a computer science project. It outlines the requirements such as including at least 25 programs covering all syllabus topics, being logically and syntactically correct, and being printed on one side of paper. It also provides details on the required sections and order including a cover page, acknowledgements, index, and programs with descriptions, algorithms, code, and outputs.

Uploaded by

Yash n
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 6

Guidelines Regarding Computer Science Project

(See Example at last)

1. The project should have at least 25 programs covering all topics


of prescribed syllabus.
2. All programs should be logically and syntactically correct.
3. Programs should be executed by using any IDE.
4. It should be typed (Font size : not less than 12)
5. The Hardcopy should be printed on one side of paper only.

The project should have following in same sequence as written below:

1. A cover page/Assessment sheet having student name, class,


section, index number, UID (If don’t know by the time of submission
then provide a space with heading in the project). External &
Internal examiner signature space with heading.
2. Acknowledgement page
3. Index page having program serial number, question/problem description
in short, page number and signature column.

4. Each program should have

a) Program number
b) Problem description
c) Algorithm
d) Coding with necessary comments at some places.
e) Variable description
f) Output

The project should be submitted in the form of Spiral binding or in Strip file.

The project should be submitted by 25th October of this year.


Index:
…………………
UID:
……………………

COMPUTER SCIENCE PROJECT


By: Your Name (XII-B)

City Montessori School, Aliganj-I


Roll Number: 25

Signatures:

.................... ...................
Internal Examiner External Examiner
2
ACKNOWLEDGEMENT

I would like to express my special thanks of


gratitude to my teacher Mr. Sarfraz Ahmad Sir
who gave me the golden opportunity to do
this wonderful project which also helped me in
doing a lot of Research and I came to know
about so many new things I am really thankful
to him. I am also thankful to my principals Mrs.
Jyoti Kashyap maám and Mrs. Shivani Singh
maám for always encouraging us to give our
best in everything. Their motivation helped a
lot to complete this project on time.
I would also like to thank my parents and
friends who helped me in finalizing this project
within the limited time frame.

-Your Name
3
INDEX
S.No. Program description in short Page No. Signature
1 Pascal’s Triangle 4
2
3
4
5
6
7
8
9
10
11
12
13
14
15

4
PROGRAM-1
a) Problem Description
Pascal’s triangle is a triangular array of binomial coefficients. Write a function that
takes an integer value n as input and prints first n lines of Pascal’s triangle.
Following are the first 6 rows of Pascal’s Triangle.
b) ALGORITHM
Steps to solve the problem:

Step 1: Declare an 2-D array array of size n*n.


Step 2: Iterate through line 0 to line n:
Step 2.1: *Iterate through i=0 to present the line:
Step 2.2: *check if present line is equal to i or i=0 than arr[line][i]=1 .
Step 2.3: *else update arr[line][i] to arr[line-1][i-1] + arr[line-1][i] .
Step 2.4: *print arr[line][i].
Step 2.5: *shift to next line.
Step 3: End

c) Coding
/ java program for Pascal's Triangle
import java.io.*;
class PascalTriange {
public static void main (String[] args) {
int n = 5;
printPascal(n);
}
public static void printPascal(int n)
{
/ An auxiliary array to store generated pascal triangle values
int[][] arr = new int[n][n];
/ Iterate through every line and print integer(s) in it
for (int line = 0; line < n; line++)
{
/ Every line has number of integers equal to line
number for (int i = 0; i <= line; i++)
{
/ First and last values in every row are 1
if (line == i || i == 0) arr[line][i] = 1;
5
else // Other values are sum of values just above and left of above
arr[line][i] = arr[line-1][i-1] + arr[line-1][i];
System.out.print(arr[line][i]);
}
System.out.println();
}}}
d) Variable Description

Variable Type Description


Size of array/ total lines of Pascal
arr [ ][] Matrix storing Pascal numbers
line Loop variable
i Loop variable

e) Output

You might also like