Practical Based on Calc
Practical Based on Calc
Practical 4. A company sells a product for Rs.50 per unit. The fixed cost is Rs.10,000, and the variable cost per unit is
Rs.30.
The company wants to analyse how changing the number of units sold affects the total profit.
Use the Scenario Tool in LibreOffice Calc to create multiple scenarios for different unit sales (e.g., 300, 400, 500, and
600 units) and observe the impact on profit.
Formula: Total profit=(Selling price-Variable Cost)*Unit sold-Fixed cost
Steps to Use the Scenario Tool in Calc:
Step 1: Create a sheet with above mentioned variables.(Fig. 1)
Step 2: Select contents of sheet and Go to Tools → Scenarios.(Fig. 2)
Step 3: In the Create Scenario window, Name the first scenario (e.g., "Unit sold 300") and Enter 300 as Unit Sold (Fig. 3)
Step 4: Repeat steps 1–3 for other unit values (e.g., 400, 500, 600), creating a new scenario each time with a different
number of units sold.(Fig.4)
Switch between scenarios using the drop-down at the top-left of the spreadsheet to view how profit changes.
Practical 5. Calculate the number of tiles required for flooring of a room using macro as a function.
Length and width of room and tiles are given in sheet.
Step 1: The length and width of the room and the length and width of a tile is entered in the sheet. (Fig.1)
Step 2: Enter data in a sheet and save it with the name as Calculatetiles.ods
Step 2. Select Tools > Macros > Organize Macros >LibreOffice Basic to open the LibreOffice Basic (Fig.2)
Step 3. In Macros dialog Choose Calculatetiles.ods. Click on New and type a name. We have named it as
Calctiles as shown in (Fig 3)
Step 4.Write a function to calculate the number of tiles.Press the Save button on the toolbar (Fig.4)
Step 5. Use the function in the sheet as shown in Fig.5
Step 6. Use fill handle to drag the function for other cells. The final sheet is shown in Fig. 6