Академический Документы
Профессиональный Документы
Культура Документы
Aim: To open a new open office document and perform the following operations in it. 1. Text Alignment 2. Change line spacing to 1.5 3. Place a box to the entire text 4. Add the bullets and numbering 5. Change type of font types and sizes 6. Insert the symbols Algorithm: 1. To open OpenOffice writer use , Start > All Programs > OpenOffice.org 3.2 > OpenOffice.org Writer. 2. On the Menu Bar click, File > New > Text Document now a text document appears on your screen with name at the top of the screen. 3. Enter some text in it and select the text and make it as justified text by clicking Align Left icon in the tool bar or ctrl+L. 4. Enter some text in it and select the text and make it as justified text by clicking Align Right icon in the tool bar or ctrl+R. 5. Enter some text in it and select the text and make it as justified text by clicking Align Center icon in the tool bar or ctrl+E. 6. Enter some text in it and select the text and make it as justified text by clicking Align Justification icon in the tool bar or ctrl+J. 7. Make a line spacing between the lines as 1.2 using Format > Paragraph > Indent & Spacing then select line spacing as fixed and change it to 1.5
Page 1
Output: 1. Text Alignment LEFT A computer is a programmable machine that receives input, stores and manipulates data/information, and provides output in a useful format. RIGHT Input: Information and programs are entered into the computer through Input devices such as the keyboard, disks, or through other computers via network connections or modems connected to the Internet. The input device also retrieves information off disks. CENTER Output: Output Devices displays information on the screen (monitor) or the printer and sends information to other computers. They also display messages about what errors may have occurred and brings up message or dialog box asking for more information to be input. The output device also saves information on the disk for future use. JUSTIFY Processing: The CPU or central processing unit is sometimes called the Control Unit and directs the operation of the input and output devices. The Coprocessor or the ArithmeticLogic Unit does arithmetic and comparisons. The memory or RAM temporarily stores information (files and programs) while you are using or working on them. The BIOS or basic input/output system controls the dialogue between the various devices.
2. Change line spacing to 1.5 Line Spacing - 1.0 The CPU or central processing unit is sometimes called the Control Unit and directs the operation of the input and output devices. The Coprocessor or the Arithmetic-Logic Unit does arithmetic and comparisons. The memory or RAM temporarily stores information
Computer Science & Engineering Page 2
4. Adding bullets and numbering Bullets Keyboard Mouse Numbering 1. Printer 2. Monitor
5. Changing type of font types and sizes Times New Roman Verdana Book Antiqua Arial black
8
10
12
14
7. Superscript and Subscript (A+B)2 = A2+ B2 + 2AB Ca(HCO3)2 -> CaCO3 + Co2 + H2O
8. Inserting Equations
Result: Thus the required operations in the word document have been made and the output has been obtained.
Page 4
Using of OpenOffice writer. Algorithm: 1. To open OpenOffice writer use , Start > All Programs > OpenOffice.org 3.2 > OpenOffice.org Writer. 2. On the Menu Bar click, File > New > Text Document now a text document appears on your screen with name at the top of the screen. 3. Save file use File > Save As> give valid name and click Save. 4. Select the Page Border use Format > Page > Borders then select your style of Page Border. 5. Design the company name use View > Toolbars > FontWork Enable FontWork Option and Design Company Name. 6. Insert ClipArt use Insert > Pictures select the picture and insert.
Page 5
Output:
Result: Thus the above Advertisement to a company has been designed and the output has been obtained.
Computer Science & Engineering Page 6
Using of OpenOffice writer. Algorithm: 1. To open OpenOffice writer use , Start > All Programs > OpenOffice.org 3.2 > OpenOffice.org Writer. 2. On the Menu Bar click, File > New > Text Document now a text document appears on your screen with name at the top of the screen. 3. Save file use File > Save As> give valid name and click Save. 4. Size of Visiting Card use Format > Page > Page > then change the Width and height 5. Design the company name use View > Toolbars > FontWork Enable FontWork Option and Design Company Name
OUTPUT:
Result: Thus the above Visiting Card to a company has been designed and the output has been obtained.
Page 7
Page 8
Result: Thus the above Letter Head for UIT College has been designed and the output has been obtained.
Page 9
Result: Thus the above Scientific Notation and Formula created and the output has been obtained.
Page 10
Aim: To perform Table Creation, Formatting and Conversion using OpenOffice.org . Algorithm: 1. To open Open Office writer use , Start > All Programs > OpenOffice.org 3.2 > OpenOffice.org Writer. 2. On the Menu Bar click, File > New > Text Document now a text document appears on your screen with name at the top of the screen. 3. To insert a new table, position the cursor where you want the table to appear, then use any of the following methods to open the Insert Table dialog box:
From the main menu, select Table > Insert > Table. Press Ctrl+F12. From the Standard toolbar, click the Table icon
4. Under Size, change the no of columns and rows based on the document. 5. In the Options space, Heading defines the first row(s) in the table as headings Repeat heading repeats the heading row(s) of the table at the top of subsequent pages if the table spans more than one page. Dont split table prevents the table from spanning more than one page. Border surrounds each cell of the table with a border. This border can be modified or deleted later. The AutoFormat button opens a dialog from where it is possible to select one of the many predefined table layouts.
6. Click OK to create the table of your choice. 7. To insert rows in the table later, Use tab key to add rows in the last column.
Page 11
8. To insert columns in the table later, Click the second column, Table > Insert > Columns or click the Insert Column icon.
9. To delete rows and columns, Click in one of the empty rows you just added, click Table > Delete > Rows or click the Delete Row icon(The row is deleted.).
Click in the empty column you just added, click Table > Delete > Columns or click the Delete Column column is deleted.). icon on the Table Toolbar(The middle
10. For Table Conversion, Select the text and click Table > Convert > Text to Table > Paragraph. Under Separate text at, select Tabs or Semicolon or Other to determine what will be used to divide the data into different cells. To convert table into text, click in the table then click Table to Text > Paragraph. Table > Convert >
11. To Delete Table, Click the table you want to delete. Click Table > Delete > Table.
Page 12
Roll_No;Name 101;Senthil kumar K 102;Raj Kumar P 103;Sathish B Text To Table Conversion Name Roll_No 101 102 103 Senthil kumar K Raj Kumar P Sathish B
Result: Thus the operations on the table have been performed and the required output has been obtained using OpenOffice.org
Page 13
Aim: To perform mail merge and letter preparation using OpenOffice.org. Algorithm: 1. To open Open Office writer use , Start > All Programs > OpenOffice.org 3.2 > OpenOffice.org Writer. 2. On the Menu Bar click, File > New > Text Document. 3. Click Tools > Mail Merge Wizard, the Mail Merge Wizard window will appear. 4. Under select starting document select create a new document then click next. 5. Select document type as letter, then click next. 6. In the address list click OK then click next. 7. In the create salutation space check this document should contain a salutation then click next. 8. In the adjust layout space, we can adjust the alignment and salutation position and click next. 9. Edit document space, click edit document if needed click next. 10. Personalize document, we can edit individual document. 11. Save the document by clicking save starting document button and enter the document name, click OK. 12. Click Finish.
Page 14
Output: From M.Anantha Krishnan BE CSE A I YEAR United Institute of Technology Coimbatore-20.
Respected Sir/Madam, SUBJECT: Regarding a symposium on Internet. I take great privilege to welcome you for the symposium which is to be conducted in our college. The symposium is about the various advancements in internet.Mr.Bill Gates ,chairman of Microsoft Corporation has accepted to deliver a guest lecture on 27th of September 2008.The program commences by 10.00 am and ends by 12.30 pm.Kindly grace this occasion with your august presence. Thanking you. Yours Sincerely M.Ananthakrishnan
Result: Thus the mail merge operation have been performed and the required output has been obtained.
Aim:
To draw a flow chart for a given problem in the OpenOffice.org.
Algorithm:
1. Open a new open office document. 2. Open drawing toolbar by clicking View > Toolbars > Drawing. 3. Draw a flow chart for the given problem by using the drawing tool bar.
Output:
Result:
Thus the flow chart has been drawn for the greatest of three numbers problem and the required output has been obtained.
Page 16
Aim:
To Draw a line, XY, bar and pie chart for a given user data in OpenOffice.org Calc .
Algorithm:
1. Click Start > Programs > OpenOffice.rg > OpenOffice.org calc. 2. Enter the data. 3. Select the data to be manipulated. 4. Click Insert > Chart then select Line to display line chart. 5. Do the above steps for XY, Bar and Pie charts.
Output:
Result:
Thus the required operation is performed and the required output is obtained.
Page 17
Aim: To perform the formula editor in OpenOffice.org Calc . Algorithm: 1. Click Start > Programs > OpenOffice.rg > OpenOffice.org calc. 2. Enter the data. 3. Click View > Formula Bar. 4. Perform the required operations in the formula editor. 5. Display the output.
Output: S.NO 1 2 3 4 5 STU NAME KRISHNA SANTHOSH MURALI VINOD HARI PHY CHE MAT COMP ENG TOTAL PERCENTAGE 90 92 95 98 95 470 94 90 85 86 81 85 427 85.4 90 95 96 88 99 468 93.6 85 86 75 95 96 437 87.4 90 95 96 98 90 469 93.8
S.NO 1 2 3 4 5
BASIC PAY HRA PF DA TA TOTAL 35000 10000 500 3500 1000 49000 20000 9000 255 1500 1000 31245 30000 8000 650 2500 1000 40850 12000 10500 800 3600 1000 26300 17000 9500 940 2500 1000 29060
Result: Thus the formula-editor operation is performed and the required output is obtained using OpenOffice.org Calc.
Page 18
Aim: To perform the insertion of objects, graphics and protecting the document in OpenOffice.org Calc. Algorithm: 1. Click Start > Programs > OpenOffice.rg > OpenOffice.org calc. 2. Enter the data. 3. Perform the insertion of objects using Insert > Object. 4. Click Insert > Picture to add pictures and graphics. 5. Select Tools > Protect Document > Document to protect the structure of the document 6. Select Tools > Protect Document Sheet to protect sheets from changes . 7. Use Tools > Protect Document then deselect sheet or document to unprotect sheet or document. 8. Display the output.
Page 19
Output:
Result: Thus the required operations are performed and the required output is obtained using OpenOffice.org Calc.
Aim: To perform the sorting and import/export features in OpenOffice.org Calc. Algorithm: 1. Click Start > Programs > OpenOffice.org > OpenOffice.org calc. 2. Enter the data. 3. Select the column or row then click Data > Sort. 4. Display the output for Sorting. 5. Click Start > Run. 6. Type Notepad and click OK. 7. Enter the contents as shown below: a. "Sales Per Region"," Africa"," Asia"," Europe, Total" b. "Jan",34,67,56,157 c. "Feb",36,87,78,201 d. "Mar",34,67,56,157 e. "Apr",36,87,78,201 f. "May",34,67,56,157 g. "Jun",36,87,78,201 h. "Total",210,462,402, 8. Click File > Save and Enter the Name as Import.csv and Click Save. 9. Click Start > Programs > OpenOffice.org > OpenOffice.org calc. 10. Click File > Open and select the Import.csv file and Click Open. 11. The contents typed in Notepad will be available in Calc. 12. Click Start > Programs > OpenOffice.org > OpenOffice.org calc. 13. Enter the data similar to import contents in the Open Office Calc. 14. Choose File > Save as. You will see the Save as dialog. 15. In the File type field select the format "Text CSV". 16. Enter a Name as Export and Click Save. 17. The contents typed in Calc will be exported. 18. Verify the Exported contents by opening the file with Notepad.
Page 21
Page 22
Export.csv Notepad File "Sales Per Region"," Africa"," Asia"," Europe","Total" "Jan",34,67,56,157 "Feb",36,87,78,201 "Mar",34,67,56,157 "Apr",36,87,78,201 "May",34,67,56,157 "Jun",36,87,78,201 "Total",210,462,402,
Result: Thus the required operations are performed and the required output is obtained using OpenOffice.org Calc.
Page 23
Flowchart:
Computer Science & Engineering Page 24
Output:
Enter the value of A:10 Enter the value of B:20 Enter the value of C:30
C is greater.
Result:
Thus the C program for Greatest of three numbers has been executed and the required output has been obtained.
Page 25
Aim: To write a C program to perform a Arithmetic operations(+,-,*,/) Algorithm: 1. Open a new file 2. Get the two numbers as input and operation to perform from the user 3. Perform the arithmetic operation as per the users input by using CASE 4. print the result
Flowchart:
Start Read a,b and ch
is ch
Case 1
c=a+b
Print c
Case 2
c=a-b
Print c
Case 3
c=a*b
Print c
Case 4
c=a/b
Print c
A Stop
Coding:
Computer Science & Engineering Page 26
Output:
Enter the value of A:12 Enter the valur of B:12 1.addition 2.subtraction 3.multiplication 4.Division Enter your choice1 24
Result:
Thus the C program for Arithmetic operations have been executed and the required output has been obtained.
PASCALS TRIANGLE
Computer Science & Engineering Page 28
Aim: To write a C program to print the Pascals triangle. Algorithm: 1. Start. 2. Get the number of lines to print from the user. 3. Generate the triangle by using conditional loops. 4. Print the triangle. 5. Stop.
Flowchart:
Start
Stop
Page 29
#include<stdio.h> #include<conio.h> void main() { int n=1,c=1,i,r,a=1,b=0; clrscr(); printf("\t\t\tPASCAL's TRIANGLE"); printf("\n\nEnter the number of rows to print:"); scanf("%d",&r); printf("\n\n"); while(n<=r) { while(a<r) { printf(" "); a=a+1; } for(i=n;i<=c;i++) printf(" %d",i); for(i=c-1;i>=n;i--) printf(" %d",i); printf("\n"); c=c+2; n=n+1; b=b+1; a=b+1; } getch(); }
Page 30
PASCAL's TRIANGLE
1 2 3 2 3 4 5 4 3 4 5 6 7 6 5 4 5 6 7 8 9 8 7 6 5
Result: Thus the C program for pascals triangle has been executed and the required output has been obtained. FIBONACCI SERIES
Computer Science & Engineering Page 31
Aim: Write a C program to printa Fibonacci series for a limit. Algorithm: 1. Open a new file. 2. Get the limit or length of the series from the user. 3. find the elements of the series 4. Print the elements
Flowchart: Start
Read n
Assign f1=-1,f2=1,f3=0
No
c= a+b
Yes Print c
a=b b=c
Stop
Coding: #include<stdio.h>
Computer Science & Engineering Page 32
Output:
Result: Thus the program for Fibonacci series is executed and the required output is obtained. SWITCH CASE
Page 33
Aim: To write a C program to perform the operations below: Algorithm: 1. Open a new file 2. Get the number from the user. 3. Gets the choice of operation from the user as input using CASE. 4. Perform the appropriate operation on the given number. 5. Print the result. Prime or not. Reverse of the number. Fibonacci Series for the limit.
Flowchart:
C A B
STOP
Coding: #include<stdio.h> #include<conio.h> void main() { int f1=-1,f2=1,f3,n,ch,i; clrscr(); printf("Enter the value of n: "); scanf("%d",&n); printf(1.Prime or Not\n2.Reverse of the number\n3.Fibonacci Series\n4.Exit); q:printf("Enter your choice"); scanf("%d",&ch); switch(ch) { case 1:
Computer Science & Engineering Page 35
case 4:
Computer Science & Engineering Page 36
Result: Thus the program is executed to perform the above operations and the output is verified successfully. SEARCHING AN ELEMENT IN AN ARRAY
Computer Science & Engineering Page 37
Aim: To write a C program to search a element in a array. Algorithm: 1. To open a new file. 2. Get a n number of elements from the user and store it in a array 3. Get a element to be searched in the array form the user 4. Search a that particular element in the array by using the for loop. 5. print the result. Flowchart:
START
READ n, a[]
STOP
Coding:
Computer Science & Engineering Page 38
Output:
Enter the size of the array: 6 Enter the elements. 1 2 3 4 5 6 Enter the element to search: 6 6 is available in the array
Result:
Thus the program for searching a element in the array is executed and the required output is obtained.
Page 39
Aim: To write a C program to perform matrix addtition. Algorithm: 1. To open a new file. 2. Initialize the matrix 3. Get the input matrix from the user 4. Perform the matrix addition 5. Print the output.
Flowchart: FLOWCHART FOR MATRIX ADDITION start Read row, col for(i=0;i<row;i++)
for(j=0;j<col;j++)
Read a[i][j]
A
for(i=0;i<row;i++)
Page 40
Stop
Coding:
Computer Science & Engineering Page 41
Page 42
3 3 3
3 3 3
Result: Thus the program for matrix addition is performed and the required output is obtained.
STRING CONCATENATION
Page 43
Coding:
Page 44
Output: Enter the first string UNITED INSTITUE Enter the second string OF TECHNOLOGY Then the resultant string is.. UNITED INSTITUE OF TECHNOLOGY
Result: Thus the program for string concatenation is performed and the required output is obtained. STRUCTURES
Computer Science & Engineering Page 45
Aim: To write a C program to display the student information by using structures. Algorithm: 1. 2. 3. 4. 5. Flowchart: To open a new file. Get a student information from the user. To get the input query from the user Based on the users query reterive the information. Print the output. start
struct student roll no: integer name[30]: character mark 1, mark 2 mark 3, : integer Read n for(i=0;i<=n;i++)
for(i=0;i<=n;i++)
stop
Page 46
Output:
Computer Science & Engineering Page 47
Roll no: 101 Name: Rajesh K Mark1 : 85 Mark2 : 90 Mark3 : 95 Roll no: 102 Name: Vimal L Mark1 : 80 Mark2 : 85 Mark3 : 75
AVG 90 80
Result: Thus the program for student information using structures is performed and the required output is obtained.
RECURSIVE FUNCTION
Computer Science & Engineering Page 48
Algorithm:
1. 2. 3. 4. Flowchart: Open a new file. Get a value from the user to find factorial. Perform the operation Print the output.
Page 49
Result: Thus the program for Factorial using recursive function is performed and the required output is obtained WORKING WITH FILES
Computer Science & Engineering Page 50
Aim: To write a program to perform read and write operations using files. Algorithm: 1. Open a new file. 2. Enter the data in to the file. 3. Read t data from file. 4. Display the text. 5. Close the file.
Flowchart:
Coding:
Computer Science & Engineering Page 51
Page 52
Output: Data from the file is read Press Any key to Write.. Data is written in to the file
Result: Thus the C program is executed to perform read and write operations in files and the output is obtained successfully.
Page 53