0% found this document useful (0 votes)
59 views40 pages

Copa 2024 File

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)
59 views40 pages

Copa 2024 File

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/ 40

INDEX

S .no Practical List Sign


1. Write an application which have the following formatting
 The title of the application should be Bold, Underline, font size-
16, Centralize.
 Font style for the whole application should be” Times in
new roman”.
 Date of the application should be Right align.
 The content of the application should be “justify”.
 The purpose of the application within content area should
be bold & highlight with yellow color.
 The Subject of the application should be define in a left
corner, & italic, font size-11.
 The font size of the content is 12
 Margin should be 0.5inches.
 Greeting lines font size-11inches.

2. Write an application for the increment of the salary


3. Create a table with the help of a table tool which have the following
table heading –Employee name, salary, Department,
Designation, location
Which have the following formatting-
 Create a Margin at the top and bottom1.1 inch and right
left 1.5inch.
 Insert watermark employee
 Table font is Times in Neuron.
4. Create a Mail merge for the at least five response n the companies
joining letter.
5. Create Macros and defines the steps of macros with screenshots.
6. Insert a Hyperlink in word document and give the screenshots of both
documents.
7. Define the steps for inserting the picture.
8. Create a smart art which represent the population of different states of
India.
9. Create a documents which have the Bibliography about a particular
author and have foot note and end note.description.
10. Define the page formatting with the help of different Menu options
which are available in page layout tab.
11. Create a Salary slip for at least 5 candidates which have Gross salary,
Total salary, HRA, DA, PF, TA.
 HRA = 10%
 DA = 5%
 PF = 12%
 TA = 15%
12. Compute House Rent Allowance (HRA) as 30% of basics salary is less
than 12000 else 40% of basic salary.
13. Create a Power point on Cybercrime.

14. The salary of a worker is computed by finding the number of hours


worked by the worker. If the hourly wage rate is Rs. 100, prepare a
spreadsheet that calculates the salary of the worker on providing the
number of hours worked. Make the spreadsheet generalized on wage rate
as well as the number of hours worked.

1
1. SILARIS.PVT.LTD.VIKASPURI
1 NOV 2023

JATIN CHOPRA
A-39 VISHNU GARDEN

NEW DELHI-110018

Dear, Ramesh

SILARIS Company is pleased to offer you the position of Assistant Director, Customer Relations. Your
skillsand experience will be an ideal fit for our customer service department.

As we discussed, your starting date will be 11 DEC 2023.The starting salary is 18,000 per year and is paid on a
weekly basis. Direct deposit is available.

Full family medical coverage will be provided through our company's employee benefit plan and will be
effective on 11 DEC 2023. Dental and optical insurance are also available. SILARIS offers a flexible paid time-
off plan which includes vacation, personal, and sick leave. If you choose to accept this job offer, please sign the
second copy of this letter and return it to me at your earliest convenience.

When your acknowledgment is received, we will send you employee benefit enrollment forms and an employee
handbook which details our benefit plans and retirement plan. We look forward to welcoming you to the
SILARIS team.

Please let me know if you have any questions or I can provide any additional information.

Sincerely,

MANUSHI SHARMA
Director, Human Resources
SILARIS Company

I hereby accept the Assistant Director, Customer Relations position.

Signature

Date

2
2. Salary Increment Letter
2 DEC 2023

SILARIS.PVT.LTD,VIKASPURI

Dear, MR.KAPIL SHARMA

I have been working with your organization from past three years as a (Assistant Director) with full dedication
at work and I have completed all the targets and task within deadline and my attitude in dealing with colleagues
and superiors was excellent.

As I am receiving a low payment and I got my last increment two years ago, I have requested for hike in my
salary a lot of times but there was no response from your side.

I am asking for you to climb my pay as my present pay is low to keep up my family costs. I got an offer from
Convergys and the pay is comparatively higher than what it is now. If you don't mind investigate this demand
and resolve my concern as ahead of schedule as could reasonably be expected.

Much thanks to you and seeking after a positive reaction from you.

Sincerely,

JATIN CHOPRA
(Assistant Director)

SILARIS.PVT.LTD,VIKASPURI

3
3. Mail merge: step 1

Mail merge: step 2

4
Mail merge: step 5

5
Mail merge: step 6

6
The steps to macros are as follows –

 To record a macro, select “Record Macro,” found on the Developer tab.

 You can give your macro any name that you’d like, as long as there are
no spaces in the name.

 Once you have recorded all of the desired formatting changes and text
insertions, click “Stop Recording” on the Developer tab, and your macro
is now ready to use.

 If you want to customize the icon that will appear on the toolbar,
select “Modify” and choose whichever icon you’d like to.
 Click OK. You should now see your newly assigned icons at the top of your ribbon,
on your Quick Access toolbar. To run the macro, simply click on the icon.

7
4. INSERT HYPERLINK
 First write a paragraph of which you want as a link.

 Then click on insert to insert a hyperlink.

 Then click on create new documents.

 Then name your file.


 Link is below for the
document Next document
 Linked document is as below

8
5. Insert Picture
1. Open the Word document in which you wants to insert the picture.

2. Click the place in your document where you want the picture to appear.

3. Access the "Insert Picture" dialog box.

4. Click the file, then click "Insert."

5. Modify the picture as necessary.

9
6. EXCEL

10
7: Space and Time
Stephen Hawking talks about how the Aristotle theory of absolute space came to an end by the Newton's
theory that 'rest' and 'motion' can be the same state if an observer sees the event at rest or if he moves with the
same speed as that of the event. So 'rest' can't be the standard position. Moreover, Galileo Galilei also disproves
Aristotle theory that heavier body falls more quickly than the lighter one just because of its mass. He
experimentally proves it by sliding objects of different weights, and even concludes that both these object
would fall at same rate and would reach the bottom at the same time, unless external force acts on them.
James Clerk Maxwell-1999

BIBLIOGRAPHY
Hawking, s. (1988). A times of history . london .

James Clerk Maxwell-1999

11
- Setting margins;
 Page colour, watermark and page borders.

 Text alignment – centre, left, right and justify.  Document views.

 Font customizations.

 Page setup.

 Superscript and subscript.

 Inserting a table, picture and pages.

 Paragraph spacing.

12
8. Salary sheet

13
14
Program No. – 09

Write a program to print hello in java.

class Hello
{
public static void main(String args[])
{
System.out.println("Welcome to Java!");
}
}

Output:-

16
Program no-10
Write a program for object and class in java.

class Rectangle
{
privateintl,b;
public void setDimension(intx,int y)
{
l=x;
b=y;
}

publicint area()
{
return l*b;
}
public void display()
{

System.out.println("Length="+l);
System.out.println("Breadth="+b);
}
public static void main(String ac[])
{

Rectangle r=new Rectangle();


r.setDimension(5,10); r.display();
System.out.println("Area="+r.area());
}
}

Output:

17
18
Program No. – 11

Write a program for command line argument.

classCommandLineArgument
{
public static void main (String arr[])
{
try
{
int a=Integer.parseInt(arr[0]); int
b=Integer.parseInt(arr[1]); int
sum=a+b;
System.out.println("result is =" +sum);
}
catch(Exception e)
{
System.out.println(e);
}
}
}

Output:

19
20
12. WRITE A PROGRAM TO FIND SIMPLE INTEREST
USING DEFAULT ARGUMENT

#include<iostream.h>
#include<conio.h>
#include<stdio.h>
float interest(int p,int t,float r=0.15)
{
return(p*t*0.15);
}
void main()
{
int p,t,inter;
cout<<"enter the principle";
cin>>p;
cout<<"enter the time period in year";
cin>>t;
inter=interest(p,t);
cout<<"the interest is "<<inter;
getch();
}

OUTPUT

enter the principle30000


enter the time period in year 1 the
interest is 4500

21
13. C Program to check whether the given integer is positive or
negative

#include <stdio.h>
#include<conio.h>

void main()
{
int num;

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


scanf("%d", &num);
if (num > 0)
printf("%d is a positive number \n", num);
else if (num < 0)
printf("%d is a negative number \n", num);
else
printf("0 is neither positive nor negative");
}
getch();
}

Output 1.
Enter a number:
0
0 is neither positive nor negative

Output 2.
Enter a number:
-3
-3 is a negative number

Output 3.
Enter a number:
100
100 is a positive number

22
14. Program to find largest number using if statement

#include<stdio.h>
#include<conio.h>

int main() {

double num1, num2, num3;

printf("Enter first number: ");


scanf("%lf", &num1);
printf("Enter second number: ");
scanf("%lf", &num2);
printf("Enter third number: ");
scanf("%lf", &num3);

// if num1 is greater than num2 & num3, num1 is the largest


if (num1 >= num2 && num1 >= num3)
printf("%lf is the largest number.", num1);

// if num2 is greater than num1 & num3, num2 is the largest


if (num2 >= num1 && num2 >= num3)
printf("%lf is the largest number.", num2);

// if num3 is greater than num1 & num2, num3 is the largest


if (num3 >= num1 && num3 >= num2)
printf("%lf is the largest number.", num3);

return 0;
}

OUTPUT.
Enter first number: 10
Enter second number: 50
Enter third number: 1
50.000000 is the largest number

23
15. Program to add two integer numbers

#include <stdio.h>
int main() {

int num1, num2, sum;

printf("Enter two integers: ");


//Storing user input into variable num1 & num2
scanf("%d %d", &num1, &num2);

// Adding two input numbers


sum = num1 + num2;

printf("Sum of %d and %d is: %d", num1, num2, sum);


return 0;
}

OUTPUT

Enter first number: 22


Enter second number: 7
Sum of the entered numbers: 29

24
16. C Program to check if number is even or odd

#include<stdio.h>
int main()
{
// This variable is to store the input number
int num;

printf("Enter an integer: ");


scanf("%d",&num);

// Modulus (%) returns remainder


if ( num%2 == 0 )
printf("%d is an even number", num);
else
printf("%d is an odd number", num);

return 0;
}

OUTPUT

ENTER AN INTEGER- 66
66 IS AN EVEN NUMBER

25
17. C Program to check if a number is palindrome or not

#include <stdio.h>
int main()
{
int num, reverse_num=0, remainder,temp;
printf("Enter an integer: ");
scanf("%d", &num);

/* Here we are generating a new number (reverse_num)


* by reversing the digits of original input number
*/
temp=num;
while(temp!=0)
{
remainder=temp%10;
reverse_num=reverse_num*10+remainder;
temp/=10;
}

/* If the original input number (num) is equal to


* to its reverse (reverse_num) then its palindrome
* else it is not.
*/
if(reverse_num==num)
printf("%d is a palindrome number",num);
else
printf("%d is not a palindrome number",num);
return 0;
}

OUTPUT.
ENTER IS AN INTEGER- 123321
123321 IS A PALINDROME NUMVBER

26
18. C program to calculate and print the value of nPr

#include <stdio.h>

void main()
{
int n, r, npr_var;

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


scanf("%d", &n);
printf("\nEnter the value of r:");
scanf("%d", &r);

/* nPr is also known as P(n,r), the formula is:


* P(n,r) = n! / (n - r)! For 0 <= r <= n.
*/
npr_var = fact(n) / fact(n - r);
printf("\nThe value of P(%d,%d) is: %d",n,r,npr_var);
}
// Function for calculating factorial
int fact(int num)
{
int k = 1, i;
// factorial of 0 is 1
if (num == 0)
{
return(k);
}
else
{
for (i = 1; i <= num; i++)
{
k = k * i;
}
}
return(k);
}

OUTPUT.
Enter the value of n:
5
Enter the value of r:
2
The value of P(6,2) is: 30
27
19. C Program to calculate Area and Circumference of Circle

#include <stdio.h>
int main()
{
float Pi=3.14, area, circumference, radius;

//Ask user to enter the radius of circle


printf("Enter radius of circle: ");
//Storing the user input into variable circle_radius
scanf("%f",&radius);

//Calculate and print the Area of circle


area = Pi * radius * radius;
printf("Area of circle is: %f\n",area);

//Calculate and print the Circumference of circle


circumference = 2 * Pi * radius;
printf("Circumference of circle is: %f",circumference);

return 0;
}

OUTPUT.
Enter radius of circle: 4
Area of circle is: 50.240002
Circumference of circle is: 25.120001

28
20 Create a static webpage using table tags of HTML
<html>
<body>
<TABLE BORDER="1" CELLPADDING="2">
<CAPTION ALIGN="Top"><b>Specification Table with Hours and
Marks<CAPTION>
<TR>
<TH ROWSPAN="2">Unit No.</TH>
<TH ROWSPAN="2">Unit Title</TH>
<TH ROWSPAN="2">Teaching Hours</TH>
<TH Colspan="4">Distribution of Theory Marks</TH>
</TR>
<TR>
<TD>R Level </TD>
<TD>U Level </TD>
<TD>A Level </TD>
<TD>Total Marks </TD>
</TR>
<TR>
<TD> <center>I </TD>
<TD>Introduction to Internet Technology</TD>
<TD><center>2</TD>
<TD><center>4</TD>
<TD><center>4</TD>
<TD><center>0</TD>
<TD><center>8</TD>
</TR>
<TR>
<TD> <center>II </TD>
<TD>Basics of HTML & CSS</TD>
<TD><center>6</TD>
<TD><center>0</TD>
<TD><center>2</TD>
<TD><center>6</TD>
<TD><center>8</TD>
</TR>
<TR>
<TD> <center>III </TD>
<TD>Active Server Pages 3.0</TD>
<TD><center>6</TD>
<TD><center>4</TD>
<TD><center>8</TD>
<TD><center>0</TD>
<TD><center>12</TD>
</TR>
<TR>
<TD> <center>IV </TD>
<TD>Server Side Coding with VBScript and XML</TD>
<TD><center>8</TD>
<TD><center>2</TD>
<TD><center>4</TD> 29
<TD><center>8</TD>
</TR> <TD><center>14</TD>
<TR>

<TD> <center>V </TD>


<TD>ASP Objects & Components</TD>
<TD><center>10</TD>
<TD><center>4</TD>
<TD><center>4</TD>
<TD><center>6</TD>
</TR>
<TD><center>14</TD>
<TR>

<TD> <center>VI </TD>


<TD>Accessing database with ASP & ADO</TD>
<TD><center>10</TD>
<TD><center>4</TD>
<TD><center>4</TD>
</tr> <TD><center>6</TD>
<TR> <TD><center>14</TD>

<TD> </TD>
<TD><center><b>Total</TD>
<TD><center><b>42</TD>
<TD><center><b>18</TD>
<TD><center><b>26</TD>
</tr> <TD><center><b>26</TD>
</TABLE> <
</body>
</html>

OUTPUT

30
21. Create a static web page which defines all text formatting tags of HTML in
tabular format
<html>
<body>
<center>
<table border=1>
<caption align="top"><font size="+2" color="red">Text Formatting
Tags</font> </caption>
<tr>
<th>HTML Tag</th>
<th>Output</th>
</tr>
<tr>
<td>normal text</td>
<td>hello world</td>
</tr>
<tr>
<td>Font & its attributes</td>
<td><FONT SIZE="+2" COLOR="#RRGGBB"> hello world
</FONT></td>
</tr>
<tr>

</tr>
</tr>
<tr>

</tr>
<tr>

</tr>
<tr>

</tr>
<tr>

</tr>
<tr>

</tr>
<tr>

</tr> 31
<tr>
<td>&lt;B&gt; </STRIKE></td>
</td>
<td><B> Bold
</B></td>

<td>&lt;I&gt;
</td>
<td><I> Italic
</I></td>

<td>&lt;U&gt;
</td>
<td><U>
Underline
</U></td>

<td>&lt;EM&
gt;</td>
<td><EM>
Emphasis
</EM></td>

<td>&lt;STRO
NG&gt;</td>
<td><STRON
G> STRONG
</STRONG><
/td>

<td>&lt;TELE
TYPE&gt;</
td>
<td><TT>
TELETYPE
</TT></td>

<td>&lt;CITE
&gt;</td>
<td><CITE>
Citation
</CITE></td>

<td>&lt;STRI
KE&gt;</td>
<td><STRIKE 32
> strike-
through text
<tr>
<td>&lt;BIG&gt;</td>
<td><BIG> text in a big font </BIG></td>
</tr>
<tr>
<td>&lt;SMALL&gt;</td>
<td><SMALL> text in a small font <SMALL></td>
</tr>
<tr>
<td>&lt;SUB&gt;</td>
<td>a<SUB> b </SUB></td>
</tr>
<tr>
<td>&lt;SUP&gt;</td>
<td>a<SUP> b</SUP></td>
</tr>

</table>
</body>
</html>

OUTPUT

33
22. Create employee registration webpage using HTML form objects
<html>
<body>
<Center>
<img src="employee_icon.png" height=52 width=52>
<Font size="+3" color=red>Employee Registration Form</font>
<form method=post action="prac.html">
<table>
<tr>
<td></td>
<td><input type=radio name=initial checked>Mr.
<input type=radio name=initial>Mrs.
<input type=radio name=initial>Ms.</td>
</tr><tr>
<td>First Name</td>
<td><input type=text name=fn placeholder="First Name"></td>
</tr><tr>
<td>Last Name</td>
<td><input type=text name=ln placeholder="Last Name"></td>
</tr> <tr>
<td>Mail Address1</td>
<td><input type=text name=add1></td>
</tr><tr>
<td>Mail Address2</td>
<td><input type=text name=add2></td>
</tr><tr>
<td>City</td>
<td><input type=text name=ct></td>
</tr><tr>
<td>State</td>
<td><select name=state>
<option value="Gujarat">Gujarat
<option value="Maharastra">Maharastra
<option value="Karnataka">Karnataka
<option value="Delhi">Delhi
</select>
</td>
</tr><tr>
<td>Zip</td>
<td><input type=text name=zp></td>
</tr><tr>
<td>Upload Photo</td>
<td><input type=file name=photo></td>
</tr><tr>
<td>E-Mail</td>
<td><input type=text name=email size=30></td>
</tr><tr>
<td>Mobile</td>
<td><input type=text name=mob placeholder="+91"></td>
</tr><tr>
<td>Languages known</td>
<td><input type=checkbox name=lk value=Gujarati
checked>Gujarati</td> 34
i >Marathi</td>
t </tr><tr>
y <td>Additional Information</td>
p <td><textarea name=add rows=3 cols=20
e placeholder="Optional" wrap></textarea></td>
= </tr><tr>
<td></td>
v <td><input type=submit value=submit>&nbsp;<input
a type=reset value=reset></td>
l </table>
u </form>
e </body>
= </html>
E
n
g OUTPUT
l
i
s
h

c
h
e
c
k
e
d
>
E
n
g
l
i
s
h
<
/
t
d
>

</tr><tr>
<td></td>
<td><input
type=checkbo 35
x name=lk
value=Marath
S .no Practical List Sign
15 Write a program for object and class in java.

16 Write an application for the increment of the salary.


17. Write a program to find simple interest using default argument.

18. C Program to check whether the given integer is positive or


negative.

19. Program to find largest number using if statement.

20 Program to add two integer numbers.

21. C Program to check if number is even or odd.

22. C Program to check if a number is palindrome or not.

24. C program to calculate and print the value of nPr.

25. C Program to calculate Area and Circumference of Circle.

26. Create a static webpage using table tags of HTML.


27. Create a static web page which defines all text formatting tags
of HTML in tabular format.

28. Create a static web page which defines all text formatting tags
of HTML in tabular format.
29.
Create employee registration webpage using HTML form
objects.

30. A simple program using java script to print hello

31 A simple login form using HTML and Java script

32 BASIC CONCEPTS OF PROGRAMS

33 Write SQL queries to implement DDL commands

34 Write SQL queries to implement DML commands

1
23. JavaScript Program to Print Hello World

<html>

<body>

<script type="text/javascript">

alert("Hello World");

</script>

</body>

</html>

Output
24. A simple login form using HTML and Java script

<html>
<head>
<title> Login Form</title>
</head>
<body>
<h3> LOGIN </h3>
<formform ="Login_form" onsubmit="submit_form()">
<h4> USERNAME</h4>
<input type="text" placeholder="Enter your email id"/>
<h4> PASSWORD</h4>
<input type="password" placeholder="Enter your password"/></br></br>
<input type="submit" value="Login"/>
<input type="button" value="SignUp" onClick="create()"/>
</form>
</html>

OUTPUT

25. BASIC CONCEPTS OF PROGRAMS


1. Write SQL queries to implement DDL commands.

It is used to communicate with database. DDL is used to: o Create an object


o Alter the structure of an object
o To drop the object created.

The commands used are:


 Create
 Alter
 Drop
 Truncate
 Rename

1. COMMAND NAME: CREATE


COMMAND DESCRIPTION: CREATE command is used to create objects in the
database.

2. COMMAND NAME: DROP


COMMAND DESCRIPTION: DROP command is used to delete the object from the
database.

3. COMMAND NAME: TRUNCATE


COMMAND DESCRIPTION: TRUNCATE command is used to remove all the
records from the table

4. COMMAND NAME: ALTER


COMMAND DESCRIPTION: ALTER command is used to alter the structure of
database

5. COMMAND NAME: RENAME


COMMAND DESCRIPTION: RENAME command is used to rename the objects.
26.Write SQL queries to implement DML commands

DML (DATA MANIPULATION LANGUAGE)


a. SELECT
b. INSERT
c. DELETE
d. UPDATE

1. COMMAND NAME: INSERT


COMMAND DESCRIPTION: INSERT command is used to insert objects in the database.

2. COMMAND NAME: SELECT


COMMAND DESCRIPTION: SELECT command is used to SELECT the object from the
database.

3. COMMAND NAME: UPDATE


COMMAND DESCRIPTION: UPDATE command is used to UPDATE the records from the
table

4. COMMAND NAME: DELETE


COMMAND DESCRIPTION: DELETE command is used to DELETE the Records form the
table

You might also like