0% found this document useful (0 votes)
47 views

MYSQL

MySQL project class 10

Uploaded by

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

MYSQL

MySQL project class 10

Uploaded by

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

Mount Calvary School,

Diphu

A Project work
on

COMPUTER SCIENCE

In Partial Fulfillment of the Requirement for the

Award of SEBA High School Leaving Certificate 2025

Submitted by

Name: __________

Class- __ Sec- __, Roll No. __

Submitted to

Javed Ali
Subject Teacher
on
__/__/____

DECLARATION

I _____________ hereby declare that the project work on "Computer


Science, Class X" submitted to Mr. Javed Ali, Computer Teacher, Mount Calvary
School, Diphu is prepared by me. All the coding result is of my personal efforts.

Name: _____________
Class: __ , Sec. __
Roll No. ____
CERTIFICATE

This is to certify that this project work on "Computer Science" is done by


_____________ bearing Roll No. ___ and submitted to Mount Calvary School,
Diphu for consideration in partial fulfillment of the requirement of SEBA for
award of High School Leaving Certificate 2025.

The project work was carried out by (him/her) under my supervision in the
academic year 2024-2025. On the basis of the declaration made by him/her, I
recommend this project report for evaluation.

Certified by

Mr. Javed Ali


Subject Teacher

Approved by

Principal Mount Calvary School, Diphu


Signature with seal
1

Q1. Write an HTML code to make a form.

Ans:

<HTML

<HEAD>

<TITLE>

</HEAD>

<BODY BGCOLUR=lightblue>

<FORM>

Enter your name<INPUT TYPE=TEXT NAME="FNAME">

Enter FATHER'S name<INPUT TYPE=TEXT NAME="FNAME">

Enter your password<INPUT TYPE=PASSWORD NAME ="PWORD">

Enter your address <BR>

<TEXTAREA ROWS=3 COLS=25>

</TEXTAREA>

Hobby<BR>

<INPUT TYPE=CHECKBOX NAME=CRICKET>cricket<BR>

<INPUT TYPE=CHECKBOX NAME=HOCKEY>hockey<BR>

<INPUT TYPE=CHECKBOX NAME=FOOTBALL>football<BR>

<FILEDSET>

<LEGEND>Types of button</LEGEND>

<INPUT TYPE=SUBMIT NAME ="SUBMIT"VALUE="SUBMIT">

<INPUT TYPE=RESET NAME="RESET"VALUE="CLEAR FORM">

<INPUT TYPE=BUTTON NAME="BUTTON"VALUE="OK"

</FILESET>
</FORM>

</BODY>

</HTML>

Q2. Write a code to make a table.

Ans:

HTML code using padding property

<HTML>

<TR>

<TH>SI.No.</TH>

<TH>Name</TH>

<TH>Marks</TH>

</TR>

<TR>

<TD>1</TD>

<TD>Rohan</TD>

<TD>56</TD>

</TR>

<TR>

<TD>2</TD>

<TD>Arpita</TD>

<TD>48</TD>

</TR>

</TABLE>
</BODY>

</HTML>

Q3. Create a table worker in a database name Organisation .Enter the records given
in the table below.

Worker ID First Name Last Name Salary Joining Date Department


001 Rebecca Doungel 40000 2014-02-20 HR
002 Jahnavi Borthakur 68000 2014-06-11 Admin
003 Digvijay Goswami 50000 2014-02-20 HR
004 Krishang Shandilya 50000 2014-02-20 Admin
005 Jaspal Bhatti 55000 2014-06-11 Admin
006 Kankana Devi 20000 2014-06-11 Account
007 Shristi Goswami 75000 2014-01-20 Account
008 Geeta Sharma 90000 2014-04-11 Admin

Q4. Write the commands to do the following:

1. Display Worker_ID and Joining_Date of admin Department.

Ans: SELECT Worker_ID, Joining_Date FROM Worker WHERE Department ='Admin';

2. Display records in ascending order of Salary.

Ans: SELECT*FROM Worker BETWEEN 50000 AND 90000;

3. Display records having Salary in the range 50000 to 90000.

Ans: SELECT*FROM Worker BETWEEN 50000and 90000;

4. Display the record of person who First_Name ends with 'a'.

Ans: SELECT*FROM Worker WHERE First_Name LIKE '%a';

5. Display the records of HR and Account Department.

Ans: SELECT* FROM Worker WHERE Department='HR' OR Department ='Account';

6. The worker is given bonus as 1% of the Salary. Display the First_Name,


Last_Name and Bonus.

Ans: SELECT First _Name Last _Name,0.01*Salary AS "BONUS" FROM Worker;


7. Display the sum, maximum, minimum and average Salary.

Ans: SELECT SUM(Salary), MAX(Salary), MIN(Salary), AVG(Salary);

8. Display the count of records where Department = 'HR'.

Ans: SELECT COUNT(*) FROM Worker WHERE Department='HR';

Q5. Write a C program to print the summation of N numbers entered using the
keyboard.

#include<stdio.h>

int main()

<HEAD>

<TITLE>Table in HTML</TITLE>

<style type="type/css">

table,th,td

border:3px solid black;

border-collapse:collapse;

th,td

padding:20px;

</style>

</HEAD>
<BODY>

<TABLE>

<CAPTION>Student Details</CAPTION>

int i,N,var,sum=0;

printf("Enter the value of N:");

scanf("%d",&N);

for(i=1;i<=N;i++)

printf("\n Enter a number:");

scanf("%d",&var);

printf("\n You have entered:%d",var);

sum=sum+var;

printf("\n The summation is %d",sum);

return 0;

}
6

Q6. Write C programs to display the following patterns using nested loop construct:

a) 4321
4321
4321
4321
4321
solution:

#include<stdio.h>

int main()

int i,j;

for(i=1;i<=5; i++)

for(j=4;j>=1;j--)

printf(“%d”,j);

printf(“\n”);

return 0;

}
7

b) 2
234
23456

Solution:

#include<stdio.h>

int main()

int i,j,k;

for(i=1;i<=3; i++)

for ( j = 1; j < = (3-i); j++)

printf(“ ”);

for (k=1; k<=(2*i-1); k++)

printf(“%d”, k+1);

printf(“\n”);

return 0;

}
8

c) 1
121
12321

Solution:

#include<stdio.h>

int main()

int I,j,k row;

for (i=1; j<= 3; i++)

for (j=1; j<=(3-1); j++)

printf(“ “);

for (j=1; j<=I; j++)

printf (“%d”, j);

for (j=i-1; j>=1; j--);

printf (“%d”, j);

printf(“\n”);

return 0;
}

d) *
***
*****
*******
*****
***
*
Solution:
#include<stdio.h>
int main()
{
int I, j, k;
for (k=1; k<=5; k++)
{
for (i=1; 1<=(5-k); i++)
{
printf (“ “);
}
for (j=1; j<=(2*k-1; j++)
{
printf(“x”);
}
printf(“\n”);
}
for (k=4;k>=1; k--)
{
for ( i=1; i<=(k-k); i++)
{
printf (“ “);
}
{
printf(“x”);
}
printf (“\n”);
}
return 0;
}
10
e) 121
121
121
121
121

Solution:

#include<stdio.h>

int main()

int I,j;

for (i=1;1<=5;i++)

for (=1;j<=2;j++)

printf (“%d”,j);

printf(“\n”);

return (0);

}
11

Q7. Write a C program to find the summationof a series of numbers using an array.

Ans:

#include<stdio.h>

int main()

int number[20];

int totalEle, sum=0;

printf("\n Enter total number of elements in the series:");

scanf("%d", &totalEle);

printf("\n", Taking input to the aray elements:");

for (int i=0; i<totalEle; i++)

printf("\n Enter element %d:", (i+1));

scanf("%d", &number[i]);

for(int i=0;i<totalEle; i++)

sum=sum + number[i];

printf("\n Summation is: %d", sum);

return 0;

}
12

Q8. Write a C program to find the largest number among a series of numbers using
an array.

Ans:

#include<stdio.h>

int main()

int number[20];

int totalEle;

printf("\n Enter total number of element in the series:");

scanf("%d",&totalEle);

printf("\n Taking input to the array elements:");

for(int i=0; i<totalEle;i++)

printf("\n Enter element %d:",(i+1));

scanf("%d", &number[i]);

int largest =number[0];

for(int i=1;i<totalEle;i++)

if(number[i]>largest)

largest=number[i];

printf("\n Largest element is:%d",largest);

return 0;

}
13

Q9. Write a C program to display the elements of the odd positions.

Ans:

#include<stdio.h>

int main()

char char_array [] = {'G','U','W','A','H','A','T','I'};

printf("Elements in the odd position are: \n");

int index=0;

while(index<8)

printf("%c",char_array[index]);

index=index+2;

return 0;

}
14

Q10. Write a C program to handle a char array as string.

Ans:

#include<stdio.h>

#include<string.h>

int main()

char name[20];

printf("\n Enter your name:");

gets(name);

printf("\n Your name is: ");

puts(name);

return 0;

}
15

Q11. Write a C program for finding the largest among a series of numbers.

Ans:

#include<stdio.h>

int find_largest (int);

int number[20];

int main()

int totalEle, largest=0;

printf("\n Enter total number of elements in the series:");

scanf("%d", &totalEle);

printf("\n Taking input to the array elements:");

for(int i=0; i<totalEle; i++)

printf("\n Enter element %d:",(i+1));

scanf("%d",& number[i];

int find_largest(int totalEle)

int largest=number[0]

for(int i=1;i<totalEle; i++)

if( number[i]>largest)

largest=number[i];

}
16

return largest;

Q12. Write a C program for finding the factorial of a number.

Ans:

#include<stdio.h>

int findFacotiral (int number)

int factorial=1

while (number>0)

factorial=factorial*number;

number=number-1;

int main()

int number, factorial=0;

printf("\n Enter the number:");

scanf("%d", &number);

factorial = findFacotiral( number);

printf ("\n Factorial of the number is: %d", factorial );

return 0;

}
17

Q13. Write a C program for finding the factorial of a number using recursion.

Ans:

#include<stdio.h>

int findFacotiral ( int number )

if (number = = 0)

return 1;

else

return number* findFacotiral ( number - 1);

int main()

int number, factorial = 0;

printf ("\n Enter the number:");

scanf ( "%d",& number );

factorial = findFacotiral (number);

printf ("\n Factorial of the number if: %d", factorial );

return 0;

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy