0% found this document useful (0 votes)
5 views49 pages

Class X Final Practical

The document outlines a series of practical activities for a Computer Science course, focusing on fundamental concepts of C programming and spreadsheet management using MS Excel. Each practical includes objectives, algorithms, program coding, and expected outputs, covering topics such as GCD calculation, area and perimeter of rectangles, arithmetic operations, and control structures. Additionally, it includes tasks related to spreadsheet creation, cell naming, and using paste special functions in Excel.

Uploaded by

dua186641
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)
5 views49 pages

Class X Final Practical

The document outlines a series of practical activities for a Computer Science course, focusing on fundamental concepts of C programming and spreadsheet management using MS Excel. Each practical includes objectives, algorithms, program coding, and expected outputs, covering topics such as GCD calculation, area and perimeter of rectangles, arithmetic operations, and control structures. Additionally, it includes tasks related to spreadsheet creation, cell naming, and using paste special functions in Excel.

Uploaded by

dua186641
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/ 49

Computer Science Practical: X

SLO No 9.2.2
Practical Activity To Calculate GCD of given two numbers
Equipment Computer & Printer
Software Dev C++

Practical No 6:
Topic 9: Fundamental of input and output data handling in C
Objective:
Students will be able to
 use the arithmetic operators of C language to solve an arithmetic problem

Note: You can use any compiler for program execution.

Fill the sections below as evidence of the practical activity.


Algorithm Flowchart
Step 1: start
Step 2: declare variables length, width, area
Step 3: input length, width
Step 4: apply formula area=length*width
Step5 : print area
Step 6: stop

Page 1 of 57
Computer Science Practical: X

Program Coding
#include <stdio.h>

int main() {
float length, width, area, perimeter;

printf("Enter the length of the rectangle: ");


scanf("%f", &length);

printf("Enter the width of the rectangle: ");


scanf("%f", &width);

area = length * width;


perimeter = 2 * (length + width);

printf("Area of the rectangle: %.2f\n", area);


printf("Perimeter of the rectangle: %.2f\n", perimeter);

return 0;
}

Program Output

Page 2 of 57
Computer Science Practical: X

Page 3 of 57
Computer Science Practical: X

SLO No 9.2.2
Practical Activity To find the interest in an amount
Equipment Computer & Printer
Software Dev C++

Practical No :7
Topic 9: Fundamental of input and output data handling in C
Objective:
Students will be able to
 use the arithmetic operators of C language to solve an arithmetic problem

Note: You can use any compiler for program execution.

Fill the sections below as evidence of the practical activity


Algorithm Flowchart
Step 1: start
Step 2: price_per_item, num_items, total_cost
Step 3: input price_per_item, num_items form user
Step 4: apply formula
total_cost=price_per_item*num_items
step 5: print total_cost
step 6: stop

Page 4 of 57
Computer Science Practical: X

Program Coding
#include <stdio.h>

int main() {

float price_per_item;
int num_items;
float total_cost;

printf("Enter the price per item: ");


scanf("%f", &price_per_item);

printf("Enter the number of items: ");


scanf("%d", &num_items);

total_cost = price_per_item * num_items;

printf("The total cost for %d items is: %.2f\n", num_items, total_cost);

return 0;
}

Program Output

Page 5 of 57
Computer Science Practical: X

Page 6 of 57
Computer Science Practical: X

SLO No 9.2.2
Practical Activity To find the sum, product, and average of five given numbers
Equipment Computer & Printer
Software Dev C++

Practical No :8
Topic 9: Fundamental of input and output data handling in C
Objective:
Students will be able to
 use the arithmetic operators of C language to solve an arithmetic problem

Note: You can use any compiler for program execution.

Fill the sections below as evidence of the practical activity


Algorithm Flowchart
Step 1: start
Step 2 : input num1, num 2
Step 3 : Perform the Operations
sum = num1 + num2
difference = num1 - num2
product = num1 * num2
quotient = num1 / num2
step 4: process sum,product,quotient
step 5: print sum,product,quotient
step 6: stop

Page 7 of 57
Computer Science Practical: X

Program Coding
#include <stdio.h>

int main() {
int num1 = 15, num2 = 4;

// Perform and print the arithmetic operations


printf("Sum: %d\n", num1 + num2);
printf("Difference: %d\n", num1 - num2);
printf("Product: %d\n", num1 * num2);
printf("Quotient: %d\n", num1 / num2);
printf("Remainder: %d\n", num1 % num2);

return 0;
}

Program Output

Page 8 of 57
Computer Science Practical: X

Page 9 of 57
Computer Science Practical: X

SLO No 9.2.2
Practical Activity To find acceleration of a moving object with given mass and the force applied
Equipment Computer & Printer
Software Dev C++

Practical No :9
Topic 9: Fundamental of input and output data handling in C
Objective:
Students will be able to
 use the arithmetic operators of C language to solve an arithmetic problem

Note: You can use any compiler for program execution.

Fill the sections below as evidence of the practical activity


Algorithm Flowchart
Step 1: start
Step 2: declare variables
length(float),width(float),area
(float)
Step 3: input value of width,length from user
Step 4: apply formula Area=Length*Width
Step 5: print area
Step 6: stop

Page 10 of 57
Computer Science Practical: X

Program Coding
#include <stdio.h>

int main() {
// Declare variables for length, width, and area
float length, width, area;

// Get user input for length and width


printf("Enter the length of the rectangle: ");
scanf("%f", &length);

printf("Enter the width of the rectangle: ");


scanf("%f", &width);

// Calculate the area using multiplication


area = length * width;

// Output the result


printf("The area of the rectangle is: %.2f\n", area);

return 0;
}

Program Output

Page 11 of 57
Computer Science Practical: X

Page 12 of 57
Computer Science Practical: X

Page 13 of 57
Computer Science Practical: X

SLO No 10.1.6
To find even numbers in integers ranging from n1 and n2 (where n1 is greater
Practical Activity than n2)
Equipment Computer & Printer
Software Dev C++

Practical No 10:
Topic 10: Control Structure in C
Objective:
Students will be able to
 write C programs for the problem involving the use of if-else statement.

Note: You can use any compiler for program execution.

Fill the sections below as evidence of the practical activity


Algorithm Flowchart
Step 1: start
Step 2: int num
Step 3: take input from user
Step 4: check if the number is greater than 0:
If true, print "The number is positive."
Else if the number is less than 0:
If true, print "The number is negative."
else {
Print "The number is zero."
Step 6: stop

Page 14 of 57
Computer Science Practical: X

Program Coding
#include <stdio.h>

int main() {
int number;

// Get user input


printf("Enter a number: ");
scanf("%d", &number);

// Check if the number is positive, negative, or zero


if (number > 0) {
printf("The number is positive.\n");
} else if (number < 0) {
printf("The number is negative.\n");
} else {
printf("The number is zero.\n");
}

return 0;
}

Program Output

Page 15 of 57
Computer Science Practical: X

Page 16 of 57
Computer Science Practical: X

SLO No 10.1.6
To determine prime numbers in integers ranging from n1 to n2 (where n1 is
Practical Activity greater than n2)
Equipment Computer & Printer
Software Dev C++

Practical No 11:
Topic 10: Control Structure in C
Objective:
Students will be able to
 write C programs for the problem involving the use of if-else statement.

Note: You can use any compiler for program execution.

Fill the sections below as evidence of the practical activity


Algorithm Flowchart

Page 17 of 57
Computer Science Practical: X

Program Coding

Program Output

Page 18 of 57
Computer Science Practical: X

SLO No 10.1.6
Practical Activity To count multiple of a given number lying between two numbers
Equipment Computer & Printer
Software Dev C++
Software Dev C++

Practical No 12:
Topic 10: Control Structure in C
Objective:
Students will be able to
 write C programs for the problem involving the use of if-else statement.

Note: You can use any compiler for program execution.

Fill the sections below as evidence of the practical activity


Algorithm Flowchart

Page 19 of 57
Computer Science Practical: X

Program Coding

Program Output

Page 20 of 57
Computer Science Practical: X

SLO No 10.1.6
Practical Activity To find the maximum number from input values.
Equipment Computer & Printer
Software Dev C++

Practical No 13:
Topic 10: Control Structure in C
Objective:
Students will be able to
 write C programs for the problem involving the use of if-else statement.

Note: You can use any compiler for program execution.

Fill the sections below as evidence of the practical activity


Algorithm Flowchart

Page 21 of 57
Computer Science Practical: X

Program Coding

Program Output

Page 22 of 57
Computer Science Practical: X

SLO No 10.1.6
Practical Activity To find the minimum number from input values.
Equipment Computer & Printer
Software Dev C++

Practical No 14:
Topic 10: Control Structure in C
Objective:
Students will be able to
 write C programs for the problem involving the use of if-else statement.

Note: You can use any compiler for program execution.

Fill the sections below as evidence of the practical activity


Algorithm Flowchart

Page 23 of 57
Computer Science Practical: X

Program Coding

Program Output

Page 24 of 57
Computer Science Practical: X

SLO No 10.1.6
Practical Activity To determine whether a given number is prime or not.
Equipment Computer & Printer
Software Dev C++

Practical No 15:
Topic 10: Control Structure in C
Objective:
Students will be able to
 write C programs for the problem involving the use of if-else statement.

Note: You can use any compiler for program execution.

Fill the sections below as evidence of the practical activity


Algorithm Flowchart

Page 25 of 57
Computer Science Practical: X

Program Coding

Program Output

Page 26 of 57
Computer Science Practical: X

SLO No 10.1.8
Practical Activity To display the larger one out of the three given unequal numbers.
Equipment Computer & Printer
Software Dev C++

Practical No 16:
Topic 10: Control Structure in C
Objective:
Students will be able to
 write C programs for the problem involving the use of if-else-if statement.

Note: You can use any compiler for program execution.

Fill the sections below as evidence of the practical activity


Algorithm Flowchart

Page 27 of 57
Computer Science Practical: X

Program Coding

Program Output

Page 28 of 57
Computer Science Practical: X

SLO No 10.1.8
Practical Activity To assign grade to a subject based on the achieved marks
Equipment Computer & Printer
Software Dev C++

Practical No 17:
Topic 10: Control Structure in C
Objective:
Students will be able to
 write C programs for the problem involving the use of if-else-if statement.

Note: You can use any compiler for program execution.

Fill the sections below as evidence of the practical activity


Algorithm Flowchart

Page 29 of 57
Computer Science Practical: X

Program Coding

Program Output

Page 30 of 57
Computer Science Practical: X

Page 31 of 57
Computer Science Practical: X

SLO No 11.1.3
To generate the sequence of even or odd numbers starting from a given
Practical Activity number
Equipment Computer & Printer
Software Dev C++

Practical No 18
Topic 10: Control Structure in C
Objective:
Students will be able to
 write C programs for the problems involving use of for loop.

Note: You can use any compiler for program execution.

Fill the sections below as evidence of the practical activity


Algorithm Flowchart

Page 32 of 57
Computer Science Practical: X

Program Coding

Program Output

Page 33 of 57
Computer Science Practical: X

SLO No 11.1.3
Practical Activity To produce a multiplication table for a given number
Equipment Computer & Printer
Software Dev C++

Practical No 19
Topic 10: Control Structure in C
Objective:
Students will be able to
 write C programs for the problems involving use of for loop.

Note: You can use any compiler for program execution.

Fill the sections below as evidence of the practical activity


Algorithm Flowchart

Page 34 of 57
Computer Science Practical: X

Program Coding

Program Output

Page 35 of 57
Computer Science Practical: X

Page 36 of 57
Computer Science Practical: X

SLO No 13.1.1
Practical Activity Prepare a spreadsheet by naming cells and sheets.
Equipment Computer
Software MS Excel 2007 or above

Topic 13: Office Automation I (MS Excel 2007 or above)


Objective:
Students will be able to apply the basic tools on a spreadsheet i.e.
 naming cell and sheets
 filling column and rows
 addressing cells (relative and absolute addresses)

Practical No 20
 Create a spreadsheet in MS Excel.
 Name the first sheet as “Development of C”.
 Enter details in the cell A1 as “Serial Number”, cell B1 as “Records entered on “, cell C1 as “Name
of Version” and D1 as “Year created”.
 In cell A2 type 1.
 Using name of cell A2 create a formula in cell A3 by typing “=A2+1”
 Copy cell A3 and paste it across cell A3 TO A6 to apply relative referencing.
 In cell B2 enter the current date and time.
 In cell B3 type “=$B$2” to create absolute referencing.
 Copy cell B3 and paste it across cell B3 TO B6
 Search 5 records related to the history of C language and insert it in the table to complete the
remaining columns.
 Take a screenshot and place it in next page.
 Press “CTRL+`” to view all formulas used. Take a screenshot and place it in next page.
 Save file in a folder “Class X Practical” with Your name_Practical1.xlsx

* Take the screenshots and place it on the next page.

Page 37 of 57
Computer Science Practical: X

Place the Screenshots below as evidence of practical activity

Page 38 of 57
Computer Science Practical: X

SLO No 13.1.1
Use different options of paste special, i.e., value, format and formula.
Practical Activity print a spreadsheet;
Equipment Computer
Software MS Excel 2007 or above

Topic 13: Office Automation I (MS Excel 2007 or above)


Objective:
Students will be able to apply the basic tools on a spreadsheet i.e.
 paste special (value, format, and formula)
 print a spreadsheet;

Practical No 21 and 22
 Open the spreadsheet created in Practical number 20.
 Add two new sheets and name them as “Values”, “Format&Formula”
 Copy your table from the sheet “Development of C”.
 Using Paste special paste only the values in sheet “Values”
 Using Paste special paste only the format and formulas in sheet “Format&Formula”
 Take a screenshot for both “Values”, “Format&Formula” sheets and place them on next sheet.
 Insert your name and class in header of sheet “Development of C”.
 Print the sheet “Development of C” and attach it along with evidence.
 Save your work

* Take the screenshots and place it on the next page.

Page 39 of 57
Computer Science Practical: X

Place the Screenshots below as evidence of practical activity

Page 40 of 57
Computer Science Practical: X

SLO No 13.1.2
Practical Activity Apply cell formatting tools like; number alignment, font, border, fill.
Equipment Computer
Software MS Word 2007 or above

Topic 13: Office Automation I (MS Excel 2007 or above)


Objective:
Student will be able to apply
 the tools available in font and paragraph groups of home tab.

Note: (Use shortcut keys too for practices)

Practical No 23 Task: 01
 Open the spreadsheet created in Practical number 20.
 Apply the dotted border on the table developed in sheet “Development of C.
 Apply “Thick outside border” to the heading area.
 Fill the heading area with “dark blue” and change font to white color.
 Select the entire table and change font to Aharoni size 16
 Change the height and width of cells to adjust the text.
 Center align the headings and align the data of “Year created” to left.
 Select the entire table and change vertical alignment to middle.
 Take a screenshot and place it on next sheet.
 Save your work.

* Take the screenshots and place it on the next page.

Page 41 of 57
Computer Science Practical: X

Place the Screenshots below as evidence of practical activity

Page 42 of 57
Computer Science Practical: X

SLO No 13.1.3
Apply different functions to the data, i.e. sum, average, count, minimum and
Practical Activity maximum.
Equipment Computer, First Term Marksheet
Software MS Excel 2007 or above

Topic 13: Office Automation I (MS Excel 2007 or above)


Objective:
Student will be able to use the given functions:
 sum,
 Average
 Count
 Minimum
 maximum.
Note: (Use shortcut keys too for practices)

Practical No 24 Task: 01
 Open the spreadsheet created in Practical number 20.
 Add a new sheet, name it “Term1result”
 Add your full name and class in the header
 Create a table with the given headings “S.No.”, “Subject” , “Marks”
 Fill the sheet with your first term exam results.
 In cell B10 enter “Total Marks scored =”
 Enter the SUM formula in cell C10 to calculate the total marks scored.
 In cell B11 enter “Average marks =”
 Enter the Average formula in cell C11 to calculate the average marks scored.
 In cell B12 enter “Subjects attempted =”
 Enter the Count formula in cell C12 to count the number of papers you appeared in.
 In cell B13 enter “Minimum marks =”
 Enter the Min formula in cell C13 to display the minimum score you received.
 In cell B14 enter “Maximum marks =”
 Enter the Max formula in cell C14 to display the maximum score you received.
 Format your table appropriately.
 Take a screenshot to place on the next page.
 Press “CTRL+`” to view all formulas used. Take a screenshot and place it in next page.
 Save your work.

* Take the screenshots and place it on the next page.

Page 43 of 57
Computer Science Practical: X

Place the Screenshots below as evidence of practical activity

Page 44 of 57
Computer Science Practical: X

SLO No 13.1.4
Practical Activity Insert a pie chart and bar graph in the data sheet.
Equipment Computer
Software MS Excel 2007 or above

Topic 13: Office Automation I (MS Excel 2007 or above)


Objective:
Student will be able to
 represent the data graphically

Note: (Use shortcut keys too for practices)

Practical No 25
 Open the spreadsheet created in Practical number 20.
 Open the sheet “Term1result”.
 Select the appropriate section of the table.
 Insert a Pie chart.
 Insert title “Term1 reflection”.
 Move the chart to a Chart sheet and name it “reflection”.
 Select the appropriate section of the table again.
 Insert a Bar chart.
 Insert title “Comparing subject scores”.
 Add the table to the bottom of the chart
 Move the chart to a Chart sheet and name it “comparison”
 Take screenshots of both the chart sheets and place it on next page.
 Save your work.

* Take the screenshots and place it on the next page.

Page 45 of 57
Computer Science Practical: X

Place the Screenshots below as evidence of practical activity

Page 46 of 57
Computer Science Practical: X

SLO No 13.1.5
Practical Activity Apply filter and data validation on spreadsheet data.
Equipment Computer
Software MS Excel 2007 or above

Topic 13: Office Automation I (MS Excel 2007 or above)


Objective:
Student will be able to
 show manipulation and formatting of data, i.e. filtering data, data validation

Note: (Use shortcut keys too for practices)

Practical No 26
 Open the spreadsheet created in Practical number 20.
 Open the sheet “Term1result”.
 Filter the data to display highest 3 marks scores.
 Take a screenshot and place it on next page.
 Make a copy of the sheet Term1result” and rename it as prelim results.
 Create a List to enter the subject names using the Data Validation attributes.
 Use the Data Validation attributes to make sure that the entered marks are between 0 to 100
 Create an Error Alert to notify that the marks are out of range.
 Take a screenshot displaying the dropdown list and place it on the next page.
 Create a screenshot displaying the error notification and place it on the next page.
 Save your work.

* Take the screenshots and place it on the next page.

Page 47 of 57
Computer Science Practical: X

Place the Screenshots below as evidence of practical activity

Page 48 of 57
Computer Science Practical: X

Place the Screenshots below as evidence of practical activity

Page 56 of 57

You might also like