0% found this document useful (0 votes)
27 views14 pages

Practicals Class 10-IT

Uploaded by

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

Practicals Class 10-IT

Uploaded by

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

PRACTICAL - 1

Steps to Crop an Image in LibreOffice Writer

Step 1: Open LibreOffice Writer

1. Open LibreOffice Writer by launching the application.

Step 2: Insert an Image

1. Go to the Insert menu at the top of the screen.

2. Select Image and then choose the image file from your computer that you want to insert.

o Alternatively, you can drag and drop the image directly into the document.

Step 3: Select the Image

1. Click on the image to select it. Once the image is selected, we will see small handles
(squares) around the edges.

Step 4: Crop the Image

1. Right-click on the image you want to crop.

2. From the context menu, select Picture to open the Picture dialog box.

3. In the dialog box, switch to the Crop tab.

4. we’ll see options to crop the Left, Right, Top, and Bottom of the image.

o Adjust the values for Left, Right, Top, or Bottom to crop the image. For example:

▪ Left: Enter a value to crop the left side of the image.

▪ Right: Enter a value to crop the right side of the image.

▪ Top: Enter a value to crop the top of the image.

▪ Bottom: Enter a value to crop the bottom of the image.

5. After adjusting the crop values, the image will automatically crop as you specify.

6. Click OK to apply the crop.

Step 5: Resize or Move the Cropped Image (Optional)

1. After cropping, you can resize the image by clicking and dragging the image handles.

2. You can also move the image by dragging it to a different location in the document.

PRACTICAL - 2
Steps to Insert an Image in LibreOffice Writer

1. Open LibreOffice Writer

o Launch the LibreOffice application and open a new or existing document.


2. Position the Cursor

o Place the cursor where you want to insert the image.

3. Insert an Image

o Using the Menu Bar:

1. Click on the Insert menu at the top of the screen.

2. Select Image and choose From File.

3. Browse to the location of your image, select it, and click Open.

o Using Drag and Drop:

▪ Locate the image in your file explorer, drag it, and drop it directly into the
document.

4. Resize and Adjust the Image

o Click on the image to select it.

o Use the handles at the corners or sides to resize the image proportionally.

o Drag the image to reposition it.

5. Image Properties (Optional)

o Right-click on the image and select Properties or Image to access advanced options:

▪ Alignment: Align the image left, center, or right.

▪ Wrap Text: Choose how the text flows around the image (e.g., no wrap, wrap
around, through).

▪ Size and Position: Precisely adjust the dimensions and placement.

6. Save the Document

o Once the image is inserted and adjusted, save your work by clicking on File > Save

PRACTICAL - 3
Steps to Create a Style in LibreOffice Writer

1. Open LibreOffice Writer

o Launch LibreOffice Writer and open a new or existing document.

2. Open the Styles Sidebar

o Press F11 or go to View > Styles to open the Styles and Formatting sidebar.

o You’ll see categories like Paragraph Styles, Character Styles, etc.

3. Choose a Style Category


o Decide whether you want to create a Paragraph Style, Character Style, Page Style,
or Frame Style:

▪ Paragraph Style: For text blocks (e.g., headings, body text).

▪ Character Style: For specific characters (e.g., bold, colored text).

▪ Page Style: For page layouts (e.g., margins, orientation).

▪ Frame Style: For frames (e.g., images or text boxes).

4. Create a New Style

o In the Styles and Formatting sidebar:

▪ Right-click in the style category you want (e.g., Paragraph Styles).

▪ Select New or Modify to create a new style.

5. Define Style Properties

o In the dialog box that appears:

▪ Organizer Tab: Set the style name and define its parent style (if needed).

▪ Font Tab: Choose font type, size, and style (e.g., bold, italic).

▪ Font Effects Tab: Apply color, underline, or strikethrough effects.

▪ Indents & Spacing Tab: Adjust alignment, line spacing, and indentation.

▪ Background Tab: Set background color for the style.

6. Apply the Style

o Click OK to save your style.

o Select the text or object you want to format and apply the style by selecting it from
the Styles sidebar.

7. Save Your Work

o Save your document to ensure the style is retained.

PRACTICAL – 4
Steps to Create a Template in LibreOffice Writer

1. Open LibreOffice Writer

o Launch LibreOffice Writer and open a new blank document or an existing document
that you want to use as a template.

2. Customize the Document

o Add the desired formatting, styles, and layout that you want in the template.
▪ Example: Set margins, add headers and footers, define paragraph and
character styles, and include placeholders for content.

3. Save as a Template

o Click on File > Templates > Save as Template.

o The Templates dialog box will appear.

4. Choose a Template Category

o Select a category (e.g., My Templates) to save your new template.

5. Name the Template

o Enter a descriptive name for your template to make it easy to identify later.

6. Save the Template

o Click Save to store the template in the selected category.

7. Use the Template

o To create a new document based on the template:

▪ Click on File > New > Templates.

▪ Select your template from the list and click Open.

8. Edit or Manage Templates (Optional)

o To edit, delete, or organize templates:

▪ Go to File > Templates > Manage Templates.

PRACTICAL – 5
Steps to Create a Table of Contents in LibreOffice

1. Open LibreOffice Writer

o Open your document where you want to create a TOC.

2. Apply Heading Styles to Titles

o Highlight the text you want to appear in the TOC (e.g., chapter titles, sections).

o Go to the Styles sidebar (press F11 or View > Styles).

o Apply appropriate heading styles (e.g., Heading 1, Heading 2, etc.) to structure the
TOC hierarchy.

3. Place the Cursor Where You Want the TOC

o Click on the position in the document where you want to insert the TOC (usually at
the beginning or a dedicated page).

4. Insert the Table of Contents


o Go to Insert > Table of Contents and Index > Table of Contents, Index, or
Bibliography.

o The Insert Index/Table dialog box will appear.

5. Customize the TOC

o In the Insert Index/Table dialog:

▪ Type: Choose Table of Contents.

▪ Protected Against Manual Changes: Check this option to prevent accidental


edits.

▪ Entries and Styles Tab: Adjust formatting or add page numbers.

▪ Click OK to insert the TOC.

6. Update the TOC (When Needed)

o If you add or remove content in your document:

▪ Right-click on the TOC and select Update Index/Table to refresh it.

PRACTICAL – 6
Consolidate is a feature in LibreOffice Calc used to combine data from multiple sheets or ranges into
a summary table. It is particularly useful for tasks like combining sales data from different regions or
months into a single table.

Steps to Use the Consolidate Feature in LibreOffice Calc


Example: Consolidating Monthly Sales Data
You have sales data for January and February in two separate sheets, and you want to consolidate it
into a summary table.

Step 1: Open the Spreadsheet

• Open LibreOffice Calc and create a workbook with multiple sheets containing data.

Item Sales Item Sales


Pens 200 Pens 150
Pencils 300 Pencils 250
Notebooks 400 Notebooks 350
SHEET-1 (JANUARY) SHEET-2 (FEBRAURY)

Step 2: Prepare the Consolidation Table

• Create a new sheet (e.g., Summary) where the consolidated data will appear.

Step 3: Use the Consolidate Tool

1. Go to the Data menu and select Consolidate.

2. The Consolidate dialog box will appear


Step 4: Add Data Ranges

1. Source Data:

o Click on the Source Data Range box.

o Go to Sheet 1, select the data range (e.g., A1:B4), and click Add.

o Repeat the process for Sheet 2.

2. Target Data:

o Ensure the target cell is in the Summary sheet.

Step 5: Configure Settings

• Function: Select the operation (e.g., Sum, Average, etc.). For this example, choose Sum.

• Labels: Check Top Row and Left Column to include headings.

Step 6: Execute Consolidation

• Click OK to consolidate the data into the Summary sheet.

Output in Summary Sheet:

Item Sales

Pens 350

Pencils 550

Notebooks 750

Tips for Consolidation

• Ensure that the source data ranges have consistent labels (e.g., "Item" and "Sales").

• Use Functions like Sum, Count, or Max depending on the requirement.

PRACTICAL – 7
The Subtotal feature in LibreOffice Calc allows you to calculate totals, averages, or other statistics for
grouped data. This is especially useful for summarizing large datasets by categories.

Steps to Use the Subtotal Feature in LibreOffice Calc


Example: Calculate Subtotals of Sales Based on Product Categories

You have a sales dataset and want to calculate the subtotal sales for each product category.

Step 1: Open the Spreadsheet

Create or open a spreadsheet with the following sample data:


Category Product Sales

Electronics Laptop 50000

Electronics Smartphone 30000

Furniture Chair 8000

Furniture Table 12000

Stationery Pen 1000

Stationery Notebook 2000

Step 2: Sort the Data

1. Select the data range (including headers).

2. Go to Data > Sort.

3. Sort the data by the Category column to group the rows.

Step 3: Open the Subtotals Tool

1. Go to Data > Subtotals.

2. The Subtotals dialog box will appear.

Step 4: Configure Subtotals

1. Group by: Select the column to group the data by, e.g., Category.

2. Calculate Subtotals For: Select the column to calculate the subtotal for, e.g., Sales.

3. Use Function: Choose the operation to perform, e.g., Sum.

Step 5: Apply Subtotals

1. Click OK to apply the settings.

2. Subtotals will be inserted below each group, and a grand total will be added at the bottom.

Output Example:

After applying the subtotals, the sheet will look like this:

Category Product Sales

Electronics Laptop 50000

Smartphone 30000

Subtotal 80000

Furniture Chair 8000

Table 12000
Category Product Sales

Subtotal 20000

Stationery Pen 1000

Notebook 2000

Subtotal 3000

Grand Total 103000

PRACTICAL – 8
Goal Seek is a powerful feature in LibreOffice Calc that helps find the input value required to achieve
a specific result in a formula. It is particularly useful when solving "what-if" scenarios in
spreadsheets.

Steps to Use Goal Seek in LibreOffice Calc


Example: Calculate the Marks Needed to Achieve a Target Average

A student wants to achieve an average of 75 marks across three exams. They already have marks for
two exams (70 and 80) and want to calculate the marks needed in the third exam.

Step 1: Open LibreOffice Calc

• Open LibreOffice Calc and create a new spreadsheet.

Step 2: Enter the Data

• Set up the data as follows:

Exam Marks

1 70

2 80

3 ?

Average Formula: =AVERAGE(B1:B3)

• In cell B3, leave the value blank or enter a placeholder (e.g., 0).

• In cell B4, enter the formula =AVERAGE(B1:B3).

Step 3: Open Goal Seek

1. Go to Tools > Goal Seek.

2. The Goal Seek dialog box will appear.

Step 4: Configure Goal Seek


1. Formula Cell: Select the cell containing the formula to achieve the desired result (e.g., B4).

2. Target Value: Enter the desired result (e.g., 75).

3. Variable Cell: Select the cell that LibreOffice Calc will change to achieve the target (e.g., B3).

Step 5: Run Goal Seek

• Click OK. LibreOffice Calc will calculate the value needed in B3 to achieve an average of 75.

• A dialog box will display the result. Click Yes to accept the solution.

Step 6: View the Result

• The spreadsheet will now show:

Exam Marks

1 70

2 80

3 75

Average 75

PRACTICAL – 9

Steps to Create a Table Using the Wizard in LibreOffice Base

The Table Wizard in LibreOffice Base helps you quickly create tables by providing
predefined templates and customization options.

Example: Create a "Student Information" Table

Step 1: Open LibreOffice Base

1. Launch LibreOffice Base.


2. Select Create a New Database and click Next.
3. Choose Yes, register the database, and click Finish.
4. Save the database with a name (e.g., StudentDB.odb).

Step 2: Open the Table Wizard

1. In the main LibreOffice Base window, go to the Tables section.


2. Click Use Wizard to Create Table.

Step 3: Select a Table Template

1. The wizard displays two sections:


o Sample Tables: Choose a category (e.g., Personal or Business).
o Sample Tables Preview: Select a predefined table (e.g., Addresses).
2. For this example, select a template similar to "Student Information" or create a new
table manually.

Step 4: Choose Fields

1. In the Available Fields section, select the fields you want for your table:
o StudentID (Primary Key)
o Name
o Class
o Age
o Contact Number
2. Use the arrow buttons to move the selected fields to the Selected Fields section.
3. Click Next.

Step 5: Set Field Types and Formats

1. Customize each field's properties:


o StudentID: AutoNumber (Primary Key)
o Name: Text
o Class: Text
o Age: Number
o Contact Number: Text
2. Click Next.

Step 6: Set the Primary Key

1. Choose a primary key for the table. Select Use an existing field as a primary key
and pick StudentID.
2. Click Next.

Step 7: Save the Table

1. Name the table (e.g., Students).


2. Choose Insert Data Immediately if you want to enter data right away.
3. Click Finish.

Step 8: Enter Data

1. The table will open in Datasheet View.


2. Enter student data:
o Example:

StudentID Name Class Age Contact Number


1 Ananya Sharma 10A 15 9876543210
2 Rohan Gupta 10B 16 9876543211

PRACTICAL – 10
Steps to Create a Primary Key in LibreOffice Base
A Primary Key ensures that each record in a table is unique and is often used as the unique identifier
for a row in the database.

Example: Create a Table for Student Information

Goal: Create a table named Students with StudentID as the Primary Key.
Step 1: Open LibreOffice Base

1. Launch LibreOffice Base.

2. Create a new database:

o Select Create a New Database.

o Click Next and then Finish.

o Save the database with a name, e.g., SchoolDB.odb.

Step 2: Create a New Table

1. In the Tables section, click Create Table in Design View.

2. The Table Design window will open.

Step 3: Add Fields to the Table

1. Add the following fields to the table:

o StudentID:

▪ Data Type: Integer.

▪ This field will act as the primary key.

o Name:

▪ Data Type: Text [VARCHAR].

o Class:

▪ Data Type: Text [VARCHAR].

o Age:

▪ Data Type: Integer.

Step 4: Set the Primary Key

1. Right-click the row for StudentID.

2. Select Primary Key from the context menu.

o A key icon will appear next to the field name, indicating it is the primary key.

Step 5: Save the Table

1. Press Ctrl+S or go to File > Save.

2. Name the table Students and click OK.


Step 6: Enter Data into the Table

1. Open the Students table in Data View.

2. Enter sample data:

StudentID Name Class Age

1 Ananya Sharma 10A 15

2 Rohan Gupta 10B 16

3 Priya Verma 10A 15

Why Use a Primary Key?

• Ensures Uniqueness: No two records can have the same StudentID.

• Identifies Records: Makes it easy to search for or update specific students.

• Prevents Errors: Avoids duplication of data.

PRACTICAL – 11
Steps to Create a Foreign Key in LibreOffice Base

A foreign key is used to link two tables in a database. It ensures referential integrity by making sure
that a value in one table matches a value in another.

Example: Create a Database for Student and Marks Information

Goal:

• Create a Students table with StudentID as the Primary Key.

• Create a Marks table with a Foreign Key (StudentID) that references the Students table.

Step 1: Open LibreOffice Base

1. Launch LibreOffice Base.

2. Create a new database:

o Select Create a New Database.

o Click Next and then Finish.

o Save the database (e.g., SchoolDB.odb).

Step 2: Create the "Students" Table with a Primary Key

1. In the Tables section, click Create Table in Design View.

2. Add the following fields:

o StudentID:

▪ Data Type: Integer.


▪ Set as the Primary Key (right-click the row > Set Primary Key).

o Name: Text [VARCHAR].

o Class: Text [VARCHAR].

3. Save the table as Students.

Step 3: Create the "Marks" Table with a Foreign Key

1. In the Tables section, click Create Table in Design View.

2. Add the following fields:

o MarksID:

▪ Data Type: Integer.

▪ Set as the Primary Key.

o StudentID:

▪ Data Type: Integer.

▪ This will act as the Foreign Key.

o Subject: Text [VARCHAR].

o Marks: Integer.

3. Save the table as Marks.

Step 4: Define the Foreign Key Relationship

1. Go to Tools > Relationships.

2. The Relationships window will appear.

3. Drag the StudentID field from the Students table to the StudentID field in the Marks table.
This creates a relationship.

4. A dialog box will appear:

o Check Update Cascade and Delete Cascade options to maintain referential integrity
(optional).

o Click OK.

5. Save and close the Relationships window.

Step 5: Enter Sample Data

1. Open the Students table and enter data:

StudentID Name Class

1 Ananya Sharma 10A

2 Rohan Gupta 10B


2. Open the Marks table and enter data:

MarksID StudentID Subject Marks

1 1 Math 90

2 1 Science 85

3 2 Math 80

Step 6: Verify the Relationship

1. Use a query to display data from both tables:

o Example: Display Name, Class, Subject, and Marks for each student.

2. The relationship ensures:

o Data integrity: You cannot add a record in the Marks table with a StudentID that
doesn’t exist in the Students table.

o Consistency: Deleting a student from the Students table removes their marks from
the Marks table (if Delete Cascade is enabled).

You might also like