Académique Documents
Professionnel Documents
Culture Documents
PRACTICAL RECORD
BOOK
OF
FIRST PUC
Laboratory
Certificate
Date: …………………..
01 34
a) Type in all text and numbers in the spreadsheet.
b) Format all numbers as a currency.
c) Center the spreadsheet headings across the spreadsheet.
d) Format all text.
e) Create formulas to display a total for each sales rep.
f) Create formulas to display a total for each product.
g) Create a formula to calculate the total sales for all sales rep's for the month.
Enter the following details for 10 employees Employee Code, Employee name, Basic salary,
DA, HRA, Loans, Total salary and Tax.
Salary for the Month
Employee Employee Basic Total Annual
DA HRA Loan Tax
Code Name Salary Salary Salary
02 36
a) Type the Employee Code, Employee Name, Basic Salary and Loan amount data
for 10 employees in the spreadsheet.
b) Format all numbers as a currency.
c) Center the spreadsheet headings across the spreadsheet.
d) Format all text.
e) Create a formula to compute DA as 50% of the Basic salary and copy this to all the
cells.
f) Create a formula to compute HRA as 12% of the Basic salary and copy this to all the
cells.
g) Create a formula to compute Total salary and copy this to all the cells.
h) If Total salary is greater than 500000, compute Tax as 20% of Total salary otherwise
10% of the Total salary using a formula.
Enter the following details for 10 Students Register Number, Name, Subject1 Marks,
Subject2 Marks, Subject3 Marks, Subject4 Marks, Total Marks and Percentage.
Test Marks data of a Class
Register Subject1 Subject2 Subject3 Subject4 Total
Name Percentage
Number Marks Marks Marks Marks Marks
a) Type the Register Number, Name and marks of four subjects for 10students in the
03 spreadsheet. 38
b) Format all text and numeric data appropriately.
c) Center the spreadsheet headings across the spreadsheet.
d) Create a formula to compute the Total marks and copy this to all the cells.
e) Create a formula to compute Percentage and copy this to all the cells.
f) Create a formula to compute the highest and lowest score using a library
function.
g) Draw a bar graph for Register Number against total marks.
h) Draw Pie chart for one student showing his marks in different subject from total score
A housewife maintains the budget expenditure in a spreadsheet under the headings
Income and Expenses. Income includes husband’s and Wife’s income separately under
different headings. Expenses include Rent, Bills, Household expenses and medical expenses.
Budget for the Month
Income Expenses Total
Savings
Husband Wife Rent Bills Household Medical Expenditure
04 41
a) Type the Income and Expenses data for the entire month in the spreadsheet.
b) Format all numbers as currency.
c) Center the spreadsheet headings across the spreadsheet.
d) Create a formula to compute the Total expenditure and copy this to all the cells.
e) Create a formula to compute the savings and copy this to all the cells.
f) Draw a bar graph to show expenditure under each heading.
g) Draw Pie chart to show the distribution of salary.
SECTION-C (HTML)
01 Create a Web page to display your details using different tags. 44
02 Create a model Web site for your college making using different tags. 46
SECTION – A
C++
C++ Manual I PUC (PCMC’s)
PROGRAM 1(a):
Write a C++ program to interchange the values of two variables using a
third variable.
#include<iostream.h>
#include<conio.h>
void main( )
{
int a, b, temp;
clrscr( );
cout<<"Enter the two numbers";
cin>>a>>b;
cout<<"Before Interchanging : a = " <<a<<" and b = "<<b<<endl;
temp = a;
a = b;
b = temp;
cout<<"After Interchanging : a = " <<a<<" and b = "<<b<<endl;
getch();
}
OUTPUT:
PROGRAM 1(b):
Write a C++ program to interchange the values of two variables without
using third variable.
#include<iostream.h>
#include<conio.h>
void main( )
{
int a, b;
clrscr( );
cout<<"Enter the two numbers:"<<endl;
cin>>a>>b;
cout<<"Before Interchanging : a = " <<a<<" and b = "<<b<<endl;
a=a+b;
b=a-b;
a=a-b;
cout<<"After Interchanging : a = " <<a<<" and b = "<<b<<endl;
getch();
}
OUTPUT:
PROGRAM 2:
Write a C++ program to find the area and circumference of a circle.
#include<iostream.h>
#include<conio.h>
void main( )
{
float rad, area, circum;
clrscr( );
cout<<"Enter the radius:";
cin>>rad;
area = 3.142 * rad * rad;
circum = 2 * 3.142 * rad;
cout<<"Area of circle = "<<area<<endl;
cout<<"Circumference of circle = "<<circum<<endl;
getch();
}
OUTPUT 1:
OUTPUT 2:
PROGRAM 3:
Write a C++ program to find the area of triangle given three sides.
#include<iostream.h>
#include<conio.h>
#include<math.h>
void main( )
{
float s1, s2, s3, s, area;
clrscr( );
cout<<"Enter the length of three sides:";
cin>>s1>>s2>>s3;
s = (s1 + s2+ s3)/2;
area = sqrt( s* (s-s1) * (s-s2) * (s-s3));
cout<<"Area of triangle = "<<area<<endl;
getch();
}
OUTPUT 1:
OUTPUT 2:
PROGRAM 4:
Write a C++ program to convert days into years, months and days.
(Hint: Assume all months have 30 days)
#include<iostream.h>
#include<conio.h>
void main( )
{
int totaldays, days, year, month;
clrscr( );
cout<<"Enter the total days:";
cin>>totaldays;
year = totaldays/365;
totaldays = totaldays % 365;
month = totaldays/30;
days = totaldays % 30;
cout<<"Years = "<< years<<endl;
cout<<"Months = "<<month<<endl;
cout<<"Days = "<<days<<endl;
getch();
}
OUTPUT 1:
OUTPUT 2:
PROGRAM 5:
Write a C++ program to find the largest, smallest and second largest of
three numbers using simple if statement.
#include<iostream.h>
#include<conio.h>
void main( )
{
int a, b, c;
int largest, smallest, seclargest;
clrscr( );
cout<<"Enter the three numbers"<<endl;
cin>>a>>b>>c;
largest = a; //Assume first number as largest
if(b>largest)
largest = b;
if(c>largest)
largest = c;
smallest = a; //Assume first number as smallest
if(b<smallest)
smallest = b;
if(c<smallest)
smallest = c;
seclargest = (a + b + c) - (largest + smallest);
cout<<"Smallest Number is = "<<smallest<<endl;
cout<<"Second Largest Number is = "<<seclargest<<endl;
cout<<"Largest Number is = "<< largest<<endl;
getch( );
}
OUTPUT:
PROGRAM 6:
Write a C++ program to input the total amount in a bill, if the amount is
greater than 1000, a discount of 8% is given. Otherwise, no discount is given.
Output the total amount, discount and the final amount. Use simple if statement.
#include<iostream.h>
#include<conio.h>
void main( )
{
float TAmount, discount, FAmount ;
clrscr( );
cout<<"Enter the Total Amount"<<endl;
cin>>TAmount;
discount = 0; //Calculate Discount
if(TAmount>1000)
discount = (8/100.0) * TAmount;
FAmount = TAmount - discount; //Calculate Final Amount
cout<<"Total Amount = "<<TAmount<<endl;
cout<<"Discount = "<<discount<<endl;
cout<<"Final Amount = "<< FAmount<<endl;
getch( );
}
OUTPUT 1:
OUTPUT 2:
PROGRAM 7:
Write a C++ program to check whether a given year is a leap year not,
Using if - else statement.
#include<iostream.h>
#include<conio.h>
void main( )
{
int year ;
clrscr( );
cout<<"Enter the Year in the form YYYY"<<endl;
cin>>year;
if(year%4 ==0 && year%100!=0 || year%400 ==0)
cout<<year<<" is a leap year"<<endl;
else
cout<<year<<" is not leap year"<<endl;
getch( );
}
OUTPUT 1:
OUTPUT 2:
PROGRAM 8:
Write a C++ program to accept a character. Determine whether the
character is a lower-case or upper-case letter.
#include<iostream.h>
#include<conio.h>
void main( )
{
char ch ;
clrscr( );
cout<<"Enter the Character"<<endl;
cin>>ch;
if(ch>= 'A' && ch <='Z')
cout<<ch<<" is an Upper-Case Character"<<endl;
else
if(ch>= 'a' && ch <='z')
cout<<ch<<" is an Lower-Case Character"<<endl;
else
cout<<ch<<" is not an alphabet"<<endl;
getch( );
}
OUTPUT 1:
OUTPUT 2:
OUTPUT 3:
PROGRAM 9:
Write a C++ program to input the number of units of electricity
consumed in a house and calculate the final amount using nested-if statement.
Use the following data for calculation.
PROGRAM 10:
Write a C++ program to input the marks of four subjects. Calculate the
total percentage and output the result as either “First Class” or “Second Class”
or “Pass Class” or “Fail” using switch statement.
total = m1 + m2 + m3 + m4;
per = total / 4.0;
cout<<"Total Marks = "<<total<<endl;
cout<<"Percentage = "<<per<<endl;
OUTPUT 2:
PROGRAM 11:
Write a C++ program to find sum of all the digits of a number using while
statement.
#include<iostream.h>
#include<conio.h>
void main( )
{
int num, sum, rem;
clrscr( );
cout<<"Enter the Number"<<endl;
cin>>num;
sum = 0;
while(num!=0)
{
rem = num % 10;
sum = sum + rem;
num = num/10;
}
cout<<"Sum of the digits is "<<sum<<endl;
getch( );
}
OUTPUT 1:
OUTPUT 2:
PROGRAM 12:
Write a C++ program to input principal amount, rate of interest and time
period. Calculate compound interest using while statement.
(Hint: Amount = P * (1 + R/100)T, Compound Interest = Amount – P)
#include<iostream.h>
#include<conio.h>
void main( )
{
float pri, amt, priamt, rate, ci;
int time, year;
clrscr( );
cout<<"Enter the Principal amount, rate of interest and time:"<<endl;
cin>>pri>>rate>>time;
year = 1;
priamt = pri;
while(year <= time)
{
amt = pri * (1 + rate/100);
pri=amt;
year ++;
}
ci = amt - priamt;
cout<<"Compound Interest = "<<ci<<endl;
cout<<"Net Amount = "<<amt<<endl;
getch( );
}
OUTPUT 1:
OUTPUT 2:
PROGRAM 13:
Write a C++ program to check whether the given number is power of 2.
#include<iostream.h>
#include<conio.h>
void main( )
{
int num, m, flag;
clrscr( );
cout<<"Enter the Number"<<endl;
cin>>num;
m = num;
flag = 1;
while(num>2)
if(num % 2 ==1)
{
flag = 0;
break;
}
else
num = num/2;
if(flag)
cout<<m<<" is power of 2 "<<endl;
else
cout<<m<<" is not power of 2 "<<endl;
getch( );
}
OUTPUT 1:
OUTPUT 2:
PROGRAM 14:
Write a C++ program to check whether the given number is an
Armstrong Number using do-while statement. (Hint: 153 = 13 + 53 + 33)
#include<iostream.h>
#include<conio.h>
void main( )
{
int num, rem, sum, temp;
clrscr( );
cout<<"Enter the three digit number"<<endl;
cin>>num;
temp = num;
sum = 0;
do
{
rem = temp % 10;
sum = sum + rem * rem * rem;
temp = temp / 10;
}while(temp!=0);
if(sum == num)
cout<<num<<" is an Armstrong Number "<<endl;
else
cout<<num<<" is not an Armstrong Number "<<endl;
getch( );
}
OUTPUT 1:
OUTPUT 2:
PROGRAM 15:
Write a C++ program to find the factorial of a number using for
statement. (Hint: 5! = 5 * 4 * 3 * 2 * 1 = 120)
#include<iostream.h>
#include<conio.h>
void main( )
{
int num, fact, i;
clrscr( );
cout<<"Enter the number"<<endl;
cin>>num;
fact = 1;
for( i = 1; i<= num; i++)
fact = fact * i;
cout<<" The factorial of a "<<num<<"! is: "<<fact<<endl;
getch( );
}
OUTPUT 1:
OUTPUT 2:
PROGRAM 16:
Write a C++ program to generate the Fibonacci sequence up to a limit
using for statement. (Hint: 5 = 0 1 1 2 3)
#include<iostream.h>
#include<conio.h>
void main( )
{
int num, first, second, count, third;
clrscr( );
cout<<"Enter the number limit for Fibonacci Series"<<endl;
cin>>num;
first = 0;
second = 1;
cout<<first<<"\t"<<second;
third = first + second;
for( count = 2; third<=num; count++)
{
cout<<"\t"<<third
first = second;
second = third;
third = first + second;
}
cout<<"\n Total terms = "<<count<<endl;
getch( );
}
OUTPUT 1:
OUTPUT 2:
PROGRAM 17:
Write a C++ program to find the sum and average of n number of the
array.
#include<iostream.h>
#include<conio.h>
#include<iomanip.h>
void main( )
{
int a[50], i, n, sum;
float avg;
clrscr();
cout<<"How many elements?"<<endl;
cin>>n;
cout<<"Enter the elements:"<<endl;
for(i=0; i<n; i++)
cin>>a[i];
sum = 0;
for(i=0; i<n; i++)
sum = sum + a[i];
avg=(float) sum / n;
cout<<"Sum = "<<sum<<endl;
cout<<"Average = "<<avg<<endl;
getch( );
}
OUTPUT:
PROGRAM 18:
Write a C++ program to find the second largest of n number in the array.
#include<iostream.h>
#include<conio.h>
#include<iomanip.h>
void main( )
{
int a[50], i, n, largest, secondlar;
clrscr( );
cout<<"How many elements?"<<endl;
cin>>n;
cout<<"Enter the elements:"<<endl;
for(i=0; i<n; i++)
cin>>a[i];
if(a[0] > a[1])
{
largest = a[0];
secondlar = a[1];
}
else
{
largest=a[1];
secondlar=a[0];
}
for(i=2; i<n; i++)
if(a[i] > largest)
{
secondlar = largest;
largest = a[i];
}
else
if(a[i] > secondlar)
secondlar = a[i];
cout<<"Largest = "<<largest<<endl;
cout<<"Second Largest = "<<secondlar<<endl;
getch( );
}
OUTPUT:
PROGRAM 19:
Write a C++ program to arrange a list of numbers in ascending order.
Sorting: The process of arrangement of data items in ascending or descending order is called
sorting.
#include<iostream.h>
#include<conio.h>
#include<iomanip.h>
void main( )
{
int a[50], i, temp, j, n;
clrscr( );
cout<<"Enter the number of elements:"<<endl;
cin>>n;
cout<<"Enter the elements:"<<endl;
for(i=0; i<n; i++)
cin>>a[i];
for(i=1; i<n; i++)
{
for(j=0; j<n-i; j++)
if(a[j] > a[j+1])
{
temp = a[j];
a[j] = a[j+1];
a[j+1] = temp;
}
}
cout<<"The sorted elements are:"<<endl;
for(i=0; i<n; i++)
cout<<a[i]<<"\t";
getch( );
}
OUTPUT:
PROGRAM 20:
Write a C++ program to find position of a given number in the array.
Searching: The process of finding the position of a data item in the given collection of data items is
called searching.
#include<iostream.h>
#include<conio.h>
#include<iomanip.h>
void main( )
{
int a[50], i, pos, ele, n;
clrscr( );
cout<<"Enter the number of elements:"<<endl;
cin>>n;
cout<<"Enter the elements:"<<endl;
for(i=0; i<n; i++)
cin>>a[i];
cout<<"Enter the search element:"<<endl;
cin>>ele;
pos=-1;
for(i=0; i<n; i++)
if(ele == a[i])
{
pos = i;
break;
}
if(pos >= 0)
cout<<ele<<" is present at position "<<pos<<endl;
else
cout<<ele<<" is not present"<<endl;
getch( );
}
OUTPUT 1: OUTPUT 2:
PROGRAM 22:
Write a C++ program to sum of all the row and sum of all the column in
matrices separately.
#include<iostream.h>
#include<conio.h>
void main( )
{
int a[5][5], r, c, i, j, rsum, csum;
clrscr( );
cout << "Enter the order of matrix: ";
cin >> r>>c;
PROGRAM 23:
Write a C++ program to find the sum of two compatible matrices:
#include<iostream.h>
#include<conio.h>
void main( )
{
int a[5][5], b[5][5], sum[5][5], r1, c1, r2, c2, i, j;
clrscr( );
cout << "Enter the order of first matrix: ";
cin >> r1>>c1;
cout << "Enter the order of second matrix: ";
cin >> r2>>c2;
OUTPUT 2:
PROGRAM 24:
Consider an array MARKS [20[5] which stores the marks obtained by 20
students in 5 subjects. Now write a program to:
a) Find the average marks obtained in each subject.
b) Find the average marks obtained by every student
c) Find the number of students who have scored below 50 in their
average.
#include<iostream.h>
#include<conio.h>
void main( )
{
int marks[20][5], n, s, total, count=0, i, j;
float average;
clrscr( );
cout << "Enter the number of students: ";
cin >> n;
cout << "Enter the number of subjects: ";
cin >> s;
cout<<endl<<"Average of Subjects"<<endl;
cout<<"Sub1\tSub2\tSub3\tSub4\tSub5"<<endl;
for(i = 0; i < s; i++)
{
total = 0;
for(j = 0; j < n; j++)
total = total + marks[j][i];
average = total/n;
cout<<average<<"\t";
PROGRAM 25:
Write a C++ program to determine whether the string is a palindrome.
#include<iostream.h>
#include<conio.h>
#include<string.h>
void main( )
{
char s[100], r[100]; //s is the string and r is the reserved string
clrscr( );
cout<<"Enter the String:";
cin.getline(s, 100);
strcpy (r, s); // Copy the characters of the string s to r
strrev (r); // Reverse the characters of the string r
if(strcmpi(s, r) == 0)
cout<<"It is palindrome"<<endl;
else
cout<<"It is not palindrome"<<endl;
getch( );
}
OUTPUT 1:
OUTPUT 2:
PROGRAM 26:
Write a C++ program to count the number of vowels and consonants in a
string.
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<ctype.h>
void main( )
{
char s[100];
int len, i, cons=0, vow=0;
clrscr( );
cout<<"Enter the string:";
cin.getline(s,100);
len=strlen(s);
for(i=0;i<len;i++)
if( isalpha (s[i]) )
switch (toupper (s[i]) )
{
case'A':
case'E':
case'I':
case'O':
case'U': vow++;
break;
default: cons++;
}
cout<<"Number of Vowles:"<<vow<<endl;
cout<<"Number of Consonants:"<<cons<<endl;
getch();
}
OUTPUT 1: OUTPUT 2:
PROGRAM 27:
Write a C++ program to find the GCD and LCM of two numbers using
functions.
#include<iostream.h>
#include<conio.h>
void main( )
{
int gcd(int, int); //Function Prototype
int a, b, g, lcm;
clrscr( );
cout<<"Enter two number:"<<endl;
cin>>a>>b;
g = gcd(a,b);
lcm = (a * b)/g;
cout<<"GCD of "<<a<<" and "<<b<<" is "<<g<<endl;
cout<<"LCM of "<<a<<" and "<<b<<" is "<<lcm<<endl;
getch( );
}
int gcd( int x, int y)
{
int rem;
while(y != 0)
{
rem = x % y;
x = y;
y = rem;
}
return(x);
}
OUTPUT 1: OUTPUT 2:
PROGRAM 28:
Write a C++ program to find Xy using functions.
#include<iostream.h>
#include<conio.h>
void main( )
{
float power(float,int);
float x;
int y;
clrscr( );
cout<<"Enter the Base and Exponent:"<<endl;
cin>>x>>y;
cout<<x<<" to the power of "<<y<<" ="<<power(x,y)<<endl;
getch( );
}
float power(float a, int n)
{
if(a==0)
return 0.0;
if(n==0)
return 1.0;
else
if(n>0)
return(a * power(a,n-1));
else
return(power(a, n+1)/a);
}
OUTPUT 1:
OUTPUT 2: OUTPUT 3:
PROGRAM 30:
Write a C++ program to input the register number, name and class of all
the students in a class into a structure and output the data in a tabular manner
with proper heading.
#include<iostream.h>
#include<conio.h>
struct student
{
int regno;
char name[15];
char section[4];
};
void main( )
{
student s[50];
int i, j, n;
clrscr( );
cout<<"How many students?"<<endl;
cin>>n;
for(i=0; i<n; i++)
{
cout<<"Enter the Reg No of the Student "<<i+1<<":";
cin>>s[i].regno;
cout<<"Enter the Name of the Student "<<i+1<<":";
cin>>s[i].name;
cout<<"Enter the Class of the Student "<<i+1<<":";
cin>>s[i].section;
}
cout<<"REG_NO \t NAME \t CLASS \t"<<endl;
for(i=0; i<n; i++)
cout<<s[i].regno<<"\t"<<s[i].name<<"\t"<< s[i].section<<endl;
getch( );
}
OUTPUT:
SPREADSHEET
Spreadsheet Manual I PUC (PCMC’s)
PROGRAM 1:
Eight salesmen sell three products for a week. Using a spreadsheet create a sales
report. The report should include the name of the salesman, Amount of sales for each product
and the salesman’s total sales in the format given below.
Solution: Click on Start Programs Microsoft Office Microsoft Office Excel 2007.
This will open a new excel workbook displaying a blank Excel worksheet.
g) Create a formula to calculate the total sales for all sales rep's for the month.
i. Enter the formula into cell C13.
= SUM (B3:D10)
OUTPUT:
PROGRAM 2:
Enter the following details for 10 employees Employee Code, Employee name, Basic
salary, DA, HRA, Loans, Total salary and Tax.
a) Type the Employee Code, Employee Name, Basic Salary and Loan amount data for 10
employees in the spreadsheet.
b) Format all numbers as a currency.
c) Center the spreadsheet headings across the spreadsheet.
d) Format all text.
e) Create a formula to compute DA as 50% of the Basic salary and copy this to all the cells.
f) Create a formula to compute HRA as 12% of the Basic salary and copy this to all the cells.
g) Create a formula to compute Total salary and copy this to all the cells.
h) If Total salary is greater than 500000, compute Tax as 20% of Total salary otherwise 10% of
the Total salary using a formula.
Solution: Click on Start Programs Microsoft Office Microsoft Office Excel 2007.
This will open a new excel workbook displaying a blank Excel worksheet.
a) To Type the Employee Code, Employee Name, Basic Salary and Loan amount data
for 10 employees in the spreadsheet.
Now enter 10 employees’ data in the worksheet.
e) Create a formula to compute DA as 50% of the Basic salary and copy this to all the cells.
i. Enter the formula into cell D3.
= C3 * 50%
ii. Copy the formula (== C3 * 50%) to cells from D4 to D12.
f) Create a formula to compute HRA as 12% of the Basic salary and copy this to all the
cells.
i. Enter the formula into cell E3.
= C3 * 12%
ii. Copy the formula (= C3 * 12%) to cells from E4 TO E12.
g) Create a formula to compute Total salary and copy this to all the cells.
i. Enter the formula into cell G3.
= C3 + D3 + E3 – F3
ii. Copy the formula (= C3 + D3 + E3 – F3) to cells from G4 to G12.
i) If Total salary is greater than 500000, compute Tax as 20% of Total salary otherwise
10% of the Total salary using a formula.
i. Enter the formula into cell H3.
= G3 * 12
ii. Copy the formula (= G3 * 12) to cells from H4 to H12.
iii. Enter the formula into cell I3.
iv. =IF (H3>=500000, H3*20%, H3*10%)
v. Copy the formula (=IF (H3>=500000, H3*20%, H3*10%)) to cells from I4 to I12.
PROGRAM 3:
Enter the following details for 10 Students Register Number, Name, Subject1 Marks,
Subject2 Marks, Subject3 Marks, Subject4 Marks, Total Marks and Percentage.
a) Type the Register Number, Name and marks of four subjects for 10students in the spreadsheet.
b) Format all text and numeric data appropriately.
c) Center the spreadsheet headings across the spreadsheet.
d) Create a formula to compute the Total marks and copy this to all the cells.
e) Create a formula to compute Percentage and copy this to all the cells.
f) Create a formula to compute the highest and lowest score using a library function.
g) Draw a bar graph for Register Number against total marks.
h) Draw Pie chart for one student showing his marks in different subject from total score.
Solution: Click on Start Programs Microsoft Office Microsoft Office Excel 2007.
This will open a new excel workbook displaying a blank Excel worksheet.
a) To Type the Register Number, Name, Marks of four subjects for 10 students in the
spreadsheet.
Now enter 10 students’ data in the worksheet.
d) Create a formula to compute the Total marks and copy this to all the cells.
i. Enter the formula into cell G3.
= SUM (C3:F3)
ii. Copy the formula (=SUM (C3:F3)) to cells from G4 to G12.
e) Create a formula to compute Percentage and copy this to all the cells.
i. Enter the formula into cell H3.
= AVERAGE (C3:F3)
ii. Copy the formula (= AVERAGE (C3:F3)) to cells from H4 to H12.
f) Create a formula to compute the highest and lowest score using a library function.
i. Enter the formula into cell I3.
= MAX (C3:F3)
ii. Copy the formula (= MAX (C3:F3)) to cells from I4 TO I12.
iii. Enter the formula into cell J3.
= MIN (C3:F3)
iv. Copy the formula (= MIN (C3:F3)) to cells from J4 TO J12.
Total Marks
110
109
108
Register Number
107
106
105
104 Total Marks
103
102
101
j) To Draw Pie chart for one student showing his marks in different subject from total
score.
i. Select the range of cells containing the data that you want to display in a chart. C3:E3
ii. Select the chart type form the Insert Charts Pie.
iii. Select the appropriate chart title and other chart components.
Shruthi
91 89
Subject1 Marks
Subject2 Marks
Subject3 Marks
Subject4 Marks
88 98
PROGRAM 4:
A housewife maintains the budget expenditure in a spreadsheet under the headings
Income and Expenses. Income includes husband’s and Wife’s income separately under
different headings. Expenses include Rent, Bills, Household expenses and medical expenses.
a) Type the Income and Expenses data for the entire month in the spreadsheet.
b) Format all numbers as currency.
c) Center the spreadsheet headings across the spreadsheet.
d) Create a formula to compute the Total expenditure and copy this to all the cells.
e) Create a formula to compute the savings and copy this to all the cells.
f) Draw a bar graph to show expenditure under each heading.
g) Draw Pie chart to show the distribution of salary.
Solution: Click on Start Programs Microsoft Office Microsoft Office Excel 2007.
This will open a new excel workbook displaying a blank Excel worksheet.
a) To Type the Day Number, Husband and wife salaries, expenses for 7 days in the
spreadsheet.
Now enter 7 days income the expenses data in the worksheet.
d) Create a formula to compute the Total expenditure and copy this to all the cells.
i. Enter the formula into cell H3.
=SUM (D4:G4)
This formula gives you the expenses of the Day 1.
e) Create a formula to compute the savings and copy this to all the cells.
i. Enter the formula into cell I11.
= B11 +C11-H11
ii. Copy the formula (= C3 * 12%) to cells from E4 TO E12.
f) Create a formula to compute Total salary and copy this to all the cells.
i. Enter the formula into cell G3.
= C3 + D3 + E3 – F3
Rs. 7,000.00
Rs. 6,000.00
Rs. 5,000.00
Rs. 1,000.00
Rs. 0.00
Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7
Savings
70% Medical
3%
HTML
HTML Manual I PUC (PCMC’s)
PROGRAM 1:
Create a web page to display your details using different tags.
<HTML>
<HEAD>
<TITLE> 1ST PUC CS STUDENTS </TITLE>
</HEAD>
<BODY BGCOLOR=ORANGE>
<FONT COLOR=RED>
<H1> <CENTER> FIRST PUC COMPUTER SCIENCE BOOK</CENTER> </H1>
</FONT>
<IMG SRC = "C:\Users\Public\Pictures\Sample Pictures\Lighthouse.jpg" ALIGN=LEFT
WIDTH=200 HEIGHT=300 BORDER=1>
<P> <I> COMPUTER SCIENCE </I> with C++ is a major subject at PUC level with an aim of
creating Computer-qualified graduates later on. This subject focuses on concepts of <B> computer
Fundamentals, Programming Methodology, and Programming in C++, OOP’s, Word Processor, Electronic
Spread Sheet, and Web Programming. </B> </P>
</P> This text book promises to guide you for the preparation of any exam on these topics. This book covers
the manual which are worked on with the samples. </P>
<FONT FACE= CAMBRIA COLOR=YELLOW>
<H2>SAILENT FEATURES</H2>
</FONT>
<OL>
<LI> Computer Fundamentals</LI>
<LI> Programming Methodology</LI>
<LI> Data Representation</LI>
<LI> Programming in C++</LI>
<LI> Word Processor</LI>
<LI> Electronic Spread Sheet</LI>
<LI> Web Programming</LI>
</OL>
</BODY>
</HTML>
OUTPUT:
PROGRAM 2:
Create a MODEL Web site for your college making using different tags.
Filename: Introduction.htm
<HTML>
<HEAD>
<TITLE> MDRPUC HASSAN </TITLE>
</HEAD>
<BODY BGCOLOR=ORANGE>
<FONT COLOR=RED>
<CENTER>
<H4> GOVERNMENT OF KARNATAKA </H4>
<H1> MORARJI DESAI RESIDENTIAL PU SCIENCE COLLEGE </H1>
<H3> GUDDENAHALLI, BELUR ROAD, HASSAN-573201 </H3>
</CENTER>
</FONT>
<IMG SRC = "C:\Users\Public\Pictures\Sample Pictures\Lighthouse.jpg" ALIGN=LEFT
WIDTH=200 HEIGHT=300 BORDER=1>
<FONT FACE=CAMBRIA SIZE=06 COLOR=CYAN>
<P> MDRPU COLLEGE, Hassan most prestigious institutions in Karnataka. <BR /> Has been a
pioneer in the field of education for many years, Excellency in imparting quality knowledge. </P>
<P> Click on one of the following to get additional information </P>
</FONT>
<A HREF=”D:\COURSE.HTM” TITLE=”COURSES”> COURSES OFFERED </A> <BR> <BR>
<Marquee Direction=”Right”> Admission for the Eligible Students </Marquee>
</BODY>
</HTML>
Filename: Course.htm
<HTML>
<HEAD>
<TITLE> MDRPUC HASSAN- COURSES INFORMATION</TITLE>
</HEAD>
<BODY >
<H1><CENTER> COURSES OFFERED </CENTER></H1>
<P>
<FONT FACE=VERDANA SIZE=4 COLOR=BLUE>
<B> Part-I is Compulsory for all Students </B> <BR>
<B> Language 1- Kannada </B> <BR>
OUTPUT