Software APPLICATION
Software APPLICATION
3. CSS page 19
For e.g—
> cd desktop .
For e.g—
>cls
For e.g—
> dir
4. >date – date
For e.g—
>date.
5. >time – time.
For e.g—
>time
1
6. >md – to create/make a directory/folder
For e.g—
For e.g—
For e.g—
For e.g—
>exit
For e.g—
For e.g—
2
12. >start winword /excel/msaccess/powerpnt– to open the msword/excel/msaccess/powerpnt
For e.g—
>start excel
>start msaccess
>start powerpnt
For e.g—
>shutdown/s
For e.g—
>shutdown/r
For e.g.—
>color a2
3
TREE
1.SINGLE TREE
>cd desktop
>cd shriya
>md apple
>cd..
>tree shriya
2. DOUBLE TREE
>cd desktop
>md tiger
>cd tiger
>md dog
>md cat
>cd cat
>md dog
>cd..
>cd..
>tree tiger
4
HTML
(HYPER TEXT MARKUP LANGUAGE)
For e.g—
<HTML>
<HEAD>
<\HEAD>
<BODY>
WEBEL
<\BODY>
<\HTML>
5
1. HEADING TAGS
<H1> <\H1>
<H2> <\H2>
<H3> <\H3>
<H4> <\H4>
<H5> <\H5>
<H6> <\H6>
For e.g—
<BODY>
<H1>BLACK<\H1>
<H2> PINK<\H2>
<H3>GREEN <\H3>
<H5> RED<\H5>
<H6>YELLOW <\H6>
<\BODY>
2. BREAKING TAG
For e.g—
<BODY>
MY NAME IS SHRIYA <BR>THIS IS THE EXAMPLE <BR> SHOW HOW CAN WE USE THE BREAK
LINE
<\BODY>
6
TAGS
3. HORIZONTAL LINE
7
4. ALIGNMENT
For e.g—
For e.g—
6. ORDER LIST
For e.g—
<OL>
<LI>CPU<\LI>
<LI>MONITER<\LI>
<LI>KEYBOARD<\LI>
<\OL>
7. UNORDER LIST
<UL>
<LI>MOUSE<\LI>
<LI>UPS<\LI>
<LI>QUEEN<\LI>
<\UL>
8
8. OPTION TAG
For e.g—
<Select>
<Option>Samsung<\option>
<Option>oppo<\option>
<Option>vivo<\option>
<Option>apple<\option>
<\select>
CHECKBOX
HIDDEN
IMAGE
RADIO
RESET
9
11. Marquee
For e.g.
10
12. TABLE TAG
For e.g
<body>
<Tr>
<td>NAME<\td>
<td>DOB<\td>
<td>AGE<\td>
<td>REMARK<\td>
<\TR>
<TR>
<td>SHRIYA<\td>
<td>02-12-2000<\td>
<td>21<\td>
<td>Y<\td>
</TR>
</TABLE>
<\BODY>
11
13. FORM
A)
<body>
<FORM>
<button>SUBMIT </button>
</form>
</body>
B)
<body>
<form>
<\form>
<\body>
12
14. TABLE & FORM TAG
a)
<body>
<table border=”2”>
<form>
<tr>
<td>NAME <\td>
<td> :<\td>
<td>SHRIYA <\td>
<\tr>
<tr>
<td>DOB <\td>
<td> :<\td>
<td> 02-12-2000<\td>
<\tr>
<tr>
<td>ADDRESS <\td>
<td> :<\td>
<td> DARJEELING<\td>
<\tr>
<\form>
<\table>
<\body>
13
b) APPLICATION FORM
<body>
<form>
Religion <select>
<option>Hindu<\option>
<option>Sikh<\option>
<option>Muslim<\option>
<option>Christian<\option>
<option>Buddhist<\option>
<\select>
</form>
<\body>
14
15. STYLE
<style>
h1{
font style=”normal”
background color=”black”
color=”pink”
<\style>
<\head>
<body>
<\body>
15
16. IMAGE TAG
<body>
</body>
<body>
<\audio>
<\body>
<body>
<\video>
<\body>
16
19. CALCULATOR
<body>
<h1>Calculator<\h1>
<form name=”form1”>
17
<input type=”button” value=”=” onclick=”form1.answer.value=eve (formal.
answer. value)”> <br>
<\form>
<\div>
<\body>
18
Css
File name.css
<body>
<\body>
19
JAVASCRIPT
1. A)
<\body>
<script>
a =20;
b = 20;
c = a+ b;
console.log(c)
document.write(c)
<\script>
B)
<\body>
<script>
var salary;
salary =50,000.25;
console.log(salary )
<\script>
20
2. BASIC OPERATORS
b) var I =1;
var j = ++;
var k = i++;
console.log(1-k);
c) var I = 1;
var j = --I;
var k= I --;
console.log(1-k)
21
3. Array
console.log(myarray[2];)
console.log(myarray. length);
myarray[1]=’shriya’;
i) var color=’red’;
document.write(color);
document.write(“<br>”);
document.write(color);
document.write(type of (a));
22
iii) var a= 200;
if (a !=200){
else {
if (a% 2==0){
document.write(“number is even”);}
else{
document.write(“number is odd”);}
{document.write(“<p>” +i);}
{document.write(“<p>”+i);}
{document.write(“<p>”+i);}
23
{message =”hello” +username; alert (message);}
function name(message)
Document.write (message);}
{console.log(“hello” + “name”) ;}
Greet (“shriya”)
4. SHIFT OPERATOR
console.log(‘a>>b:; +(a>>b);
24
5. RELATIONAL OPERATOR
Console.log (‘2==”2”:’+(2==2));
Console.log (‘2==”2”:’+(2===2));
Console.log (‘2!=”2”:’+(2!=2));
Console.log (‘2!==”2”:’+(2!==2));
Console.log (‘2>”2”:’+(2>2));
Console.log (‘2>=”2”:’+(2>=2));
Console.log (‘2<”2”:’+(2<2));
Console.log (‘2<=”2”:’+(2<=2));
6. BITWISE OPERATOR
console.log(‘a&b:’+(a&b)); 0 = false
console.log(‘a|b:’+(a|b)); 1 = true
console.log(‘a||b:’+(a||b));
console.log(‘a!b:’+(a!b));
25
7. SWITCHCASE OPERATOR
OR
STATEMENT OPERATOR
switch (day) {
break;
break;
break;
break;
break;
break;
break;
26
b) var day =1;
switch (day) {
break;
break;
break;
break;
break;
break;
break;
27
8. STRING PROCESSING
a) var s1 =”javascript”;
var s2 =”concat example”;
var s3 = s1. Concat (s2);
document.write (s3);
28
9. HTML + JAVASCRIPT
i) BUTTON
a) <body>
<h1>Welcome to the javascript.com <\h1>
Entry a number:<input id=”num”> <br>
<button onclick=”fact()”> factorial <\button>
<p id=”res”> <\p>
<\body>
<script>
Function fact() {
Var I, num, f;
f = 1;
num document.getElementById(“res”).innerHTML=”the factorial of
a number”+i+”is”.+f;}
<\script>
29
b) <body>
<h5>How to link html and javascript ? <\h5>
<p>let’s do it <\p>
<p id =”example”> <\p>
<\body>
<script>
Document.getElementById(“example”)innerHTML=”web designing
is my favorite subject”;
<\script>
c) <h3>How function work in javascript ? <\h3>
<h5>let’s see the example <\h5>
<p id=”example”>she is writing a letter. <\p>
<button type=”button” onclick=”myFunction()”>
Click me! <\button>
<\body>
<script>
Function myFunction(){
Document.getElementById(“example”).innerHTML=”A letter is
being written by her”.}
<\script>
30
d) <body>
<p id =”example”> <\p>
<button type=”button” onclick=’myFunction()”>>Click me!
<\button>
<\body>
<script>
Function muFunction() {
Var a=50;
Var b=100;
Var c= a+b;
document.getElementByID(“example”).innerHTML=c;}
<\script>
31
e) <body>
<\body>
<script>
<\script>
f)
<body>
<\body>
<script>
Function test(str){
alert (str.toUpperCAse() )
<\script>
32
11. FORM + JAVASCRIPT +CSS
<body>
<h3>FORM <\h3>
<form>
<\form>
<\body>
<script>
Function myFunction() {
Document.getElementById(“example”).innerHTML=”finished”}
<\script>
33
12. OPTION + JAVASCRIPT
<body>
<h3>Choose an item from drop-down list and click for select <\h3>
<from>
<\select>
<\form>
<\body>
<script>
<\script>
34
13. DATA OBJECTIVE
<\head>
<script>
Function display Time( )
{
var myDate = newData ()
var currHour=myData.get.Hour ()
var currMinute=myData.get Minutes ()
var currseconds =myData.getSrconds ()
var curtime=” “
cur Time+=” “ +((currHour>12)?currHour-12: currHour)
cur Time+=” “ +((currMinute<10)?”:0”:”:”+)currMinute
cur Time+=” “ +((currSeconds<10)?”:0”:”:”+)currseconds
cur Time+=” “+((currHour>=12)?”PM”:”AM”)text1.value=currTime
myTime =setTimeout(“display Time()”,1000)
}
<\script>
<body onload= “display Time ()”>
<script>
35
Var myTime =null
Var TheDATA =new DATA()
My Page +=”<h1>Working with data <\h1>
My Page +=”<hr size =5 NOSHADDE>”
My page +=”<h3>the data is :”+(the Data. Get Month () +1)+”/” +
theDATA:getDay”GETDay()+”/”+theData.get Year<\h3>
Document.write (mypage)
<\script>
<input type =text name=”text1.>
<\body>
36
14. MATH OBJECT METHODS
<body>
<\body>
<script>
Function test() {
var x =0;
x=Math.floor(Math.pow()*100)
function test() {
r=Math.floor(Math.pow(4,3))
var a=0
a=Math.flor(Math.sqrt(5))
37
15. SQUARE ROOT
<body>
<from name=form1>
Enter Number:
<\from>
<\body>
<script>
Function doMath() {
Document.form1.answer.value=result;}
<\script>
38
C++
Introduction of C++
39
1) BIO-DATA
#include <iostream>
Int main()
Cout<<”Address: Darjeeling”<<’\n’;
Cout<<”Qualifaction : M.A”<<’\n’;
return 0;
40
2) ADDITION
#include <iostream>
Int main()
Int a=2 5;
Int b=65;
Int c= a+b;
return 0;
3) SUBTRACTION
#include <iostream>
Int main()
Int a = 60;
Int b=38;
Int c= a-b;
return 0;
41
4) MULTIPLICATION
#include <iostream>
Int main()
Int a = 60;
Int b=8;
Int c= a*b;
return 0;
5) Divide
#include <iostream>
Int main()
Int a = 60;
Int b=3;
Int c= a/b;
return 0;
42
6) REMAINDER
#include <iostream>
Int main()
Int a = 60;
Int b=8;
Int c= a%b;
return 0;
#include <iostream>
Int main()
Int a = 60;
Int b=38;
Int c=a+b;
Int d= a-b;
43
Int e=a*b;
Int f=a/b;
Int g=a%b;
return 0;
8) MAXIMUM
#include <iostream>
Int main()
Int a =10;
Int b=5;
return 0;
44
9) MINIMUM
#include <iostream>
Int main()
Int a=35;
Int b=25;
Return 0,
#include <iostream>
Int main()
Int time=2;
45
Int amount =balance+ interest;
Cout<<”The amount:”<<amount;
Return 0;
11) PROFIT
#include <iostream>
Int main()
Int cp=1200;
Int sp=2500;
Int profit=sp-cp;
Cout<<”Profit”<<profit<<endl;
Return 0;
46
12) LOSS
#include <iostream>
Int main()
Int cp =1000;
Int sp -800;
Int loss=sp-cp;
Cout<<”loss”<<loss<<endl;
Return 0;
13) AGE
#include <iostream>
Int main()
Char name[15];
Cin>>name;
Int age;
47
Cin>>age;
If (age>18)
Else
Return 0;
#include <iostream>
Int main()
Int a;
Int year;
Cin>>year;
If (a % 4==0)
else
Return 0;
48
15) SWITCH STATEMENT
a.
#include <iostream>
Int main()
Int a;
Cin>>a;
Switch (a)
Case 1:
Cout<<”Monday”;
Break;
Case 2:
Cout<<Tuesday”;
Break;
Case 3:
Cout<<”Wednesday”;
Break;
Case 4:
Cout<<”Thursday”;
49
Break;
Case 5:
Cout<<”Friday”;
Break;
Case 6:
Cout<<”Saturday”;
Break;
Case 7:
Cout<<”Sunday”;
Break;
Default :
Cout<<”invalid number”:;
Return 0;
b.
#include <iostream>
Int main()
50
Char alp;
Cin>>alp;
Switch (alp)
Case ‘a’:
Cout<<”it is a vowel” ;
Break ;
Case ‘e’:
Cout<<”it is a vowel” ;
Break ;
Case ‘i’:
Cout<<”it is a vowel” ;
Break ;
Case ‘o’:
Cout<<”it is a vowel” ;
Break ;
Case ‘u’:
Cout<<”it is a vowel” ;
Break ;
default :
cout<<”not a vowel”;
51
}
Return 0;
#include <iostream>
Int main()
Int y ;
cin>>y;
Do
Fact=fact*x;
X++;
While(x<=y);
Return 0;
52
17) EVEN NUMBER
#include <iostream>
Int main()
Int a;
If (a%2==0)
Return 0;
#include <iostream>
Int main()
Int a;
For(a=1;a<=20;a++)
If(a% 2!=0)
Return 0;
53
19) TABLE OF 7 USING FOR LOOP
#include <iostream>
Int main()
Int a=7;
Return 0;
#include <iostream>
Int main()
Int a;
Cin>>a;
Return 0;
54
21) SQUARE POWER
#include <iostream>
Int main()
INT A;
Cin>>a;
Int b =a*a;
Cout<<b<< endl;
Return 0;
#include <iostream>
Int main()
Int a;
Cin>>a;
55
Cout<<The cube power value of your number is:”<<endl;
Int b=a*a*a
Cout<<b<<endl;
Return 0;
23) INCREMENT
#include <iostream>
Int main()
Int a;
Cin>>a;
a ++;
return 0;
56
24) DECREMENT
#include <iostream>
Int main()
Int a;
Cin>>a;
a--;
return 0;
25) SQUARE
#include <iostream>
Int main()
Int a;
Cin>>a;
57
Cout<<”The square value of your number is :”<<endl;
Return 0;
#include <iostream>
Int main()
Char a [20];
Cin>>a;
Return 0;
58
27) STRING REVERSE
#include <iostream>
Int main()
Char a [20]
Cin>>a;
Cout<<”strrev (a)”<<endl;
Return 0;
#include <iostream>
Int main()
Char a [20];
59
Cout<<”Enter your word in capital:”;
Cin>>a;
Return 0;
#include <iostream>
Int main()
Char a[20];
Cin>>a;
Cout<<”strupr (a)”<<endl;
Return 0;
60
31) STRING CONCATENATED
#include <iostream>
Int main()
Char a [20];
Cin>>a;
Char b[20];
Cin>>b;
Cout<<”strcat (shr,iya)<<endl;
Return 0;
31) ARRAY
a) SINGLE ARRAY
#include <iostream>
Int main()
61
{
Int a [ ]={1,2,3,4};
Cout<<a[b]<<endl;
Return 0;
b) MULTIPLE ARRAY
#include <iostream>
Int main()
Cout<<a[b] [c]<<endl;
Cout<<endl;
Return 0;
62
32) SINGLE ARRAY (haracter type)
#include <iostream>
Int main()
Int a[ ] ={ 1,2,3,4 };
Cout<<a [b]<<endl;
Return 0;
#include <iostream>
Int main()
63
{
Cout<<a [b][c]<<endl;
Return 0;
64