Dbmsand Pagemaker, Photoshop Practical
Dbmsand Pagemaker, Photoshop Practical
(a) Write the SQL commands for creating a table named CSE with the following
attributes.
(c) Write a query to display the student rollno and date of joining.
STUROLLNO DOJ
1701 23-JUL-13
1702 02-JUL-13
1703 02-JUN-13
1704 12-JUN-13
1705 22-JUN-13
5 rows selected
Program-2
a) Write and demonstrate the following queries for the below table.
Table Creation:
Insert Record:
2 rows selected.
1 row selected
(d) Query to display records of employees working in I.T and Accounts department.
3 rows selected.
(e) Query to display records of employees whose salary is between.
SQL> select ename from emp where salary between 4000 and 9000;
Ename
Rahul
Salman
2 rows selected.
Program-3
Write and demonstrate the following SQL queries.
SYSDATE
12-FEB-14
1rowsreturned
CONCAT('COMPUTER','SCIENCE')
computerscience
1 rows returned
LENGTH('COMPUTERSCIENCEENGINEERING')
28
1 rows returned
d) Write the PL-SQL program to print sum of 1 to 100 numbers using loop and end loop.
declare
a number;
s number default 0;
begin
a:=1;
loop
s:=s+a;
exit when(a=100);
a:=a+1;
end loop;
dbms_output.put_line('Sum of 100 numbers = '||s);
end;
OutPut:-Sum between 1 to 100 is 5050
Program -4
a) Write the PL-SQL program for generating number between 1 and 100 using while loop.
declare
a number;
begin
a:=1;
while(a<=100) loop
dbms_output.put_line(a);
a:=a+1;
end loop;
end;
Output: - 1 2 3 4 5 6 7 8 9 10……………100.
b) Write the PL-SQL program to accept two number A and B and print the sum of it.
declare
a number;
b number;
c number;
begin
a:= &a;
b:= &b;
c:= a+b;
dbms_output.put_line('Sum of a and b is ' || c);
end;
UPPER('COMPUTERSCIENCE')
COMPUTER SCIENCE
LOWER('COMPUTERSCIENCE')
computer science
(a) Write the SQL Command for creating the table student with following attributes.
Table created.
1 row inserted
5 rows deleted.
Table droped.
Program-6
a) Text Tool
The Text tool enables you to select and edit text, as well as insert text boxes.
Click the text tool and then click on the document and start typing in text.
b) Rotate Tool
The rotate tool enables you to rotate a text box or image to a desired angle. Select
the rotate tool, and click on the object's reference point. Drag the object to the angle you want
it to be.
c) Crop Tool
Enables you to crop imported images down to size. You can only use this
PageMaker tool on .tiff images.
e) Circle Tool
The circle tool enables you to create a circular or oval shape. Select the circle
tool, click on the document. Drag to draw a circle or ellipse.
f) Zoom Tool
The zoom tool enables you to magnify or shrink the area of the page on your
screen.
g) Save Tool
Click on the File menu, and then select save. Click on General… to save dialog box
given name of the file. (Short Cut: Ctrl+S).
h) Pointer Tool
The Pointer tool enables you to pick, drag and drop text boxes, images and other objects, which
can then be resized, moved or can have their attributes changed.
Program-7
a) Crop Tool
The Crop tool allows you to select an area of an image and discard everything
outside this area. The tool is located third from the top in the Photoshop Toolbox, on the left
side.
b) TypeTool
To insert text into your document, simply click on the Type tool icon on your toolbox and
click on the area of your document where you want to insert text.
c) Eraser Tool
The eraser is basically a brush which erases pixels as you drag it across the image.
Pixels are erased to transparency or the background color if the layer is locked.
d) Clone Stamp Tool
Clone stamp tool allows you to duplicate part of an image. The process involves setting
a sampling point in the image which will be used as a reference to create a new cloned area.
Select the Clone Stamp tool , then check the settings in the options bar.
e) Dodge Tool
The dodge tools work best on grayscale images. On color image the dodge tool will wash
out color and details. In a grayscale image, these tools are used to lighten shadows or
overexposed areas and to darken underexposed areas.
f) Blur Tool
The Blur tool is used to selectively blur areas of a layer. The amount of
blur can be controlled. It is especially handy when blending colors or objects.
g) RectangularMarquee
Click once on the Rectangular Marquee tool to choose it. The icon will turn white
and the cursor will turn into a cross hair when you move it onto the document.
Program-8
Write and demonstrate the following commands for PageMaker.
1.On a Master Page, click on the page or draw a text block where you want to insert a page number.
2.At the point where you want the page number type Ctrl + Alt + P (Windows) or Command +
Option + P .
3.Repeat Step 2 on the opposite Master page.
4.A page number marker will be on each master page -- LM on the left master, RM on the right
master.
5.Format the paragraph and page number marker as necessary including adding additional text before
or after the page number marker.
b) The Use of Auto Flow command.
1. Open the document you want to format in PageMaker.
2. Select the "Layout" menu and click "Auto flow" to set the text to flow
automatically.
4. Select the "File" menu, and then click "Place (Import text and graphics)." A
dialog box appears.
5. Find and double-click the document with the text you want to import. Your mouse head changes
into a squiggly arrow.
6. Move your cursor where you want the text inserted, and click to add it.
1. Open the document that you would like to add an image to.
2. Click the "Pointer" icon, which contains an arrow image and is located on the "Tools Palette."
3. Click "File" at the top of the PageMaker window, and then click "Place."
4. Navigate to the image that you would like to insert into the document using the file browser.
Select the image and then click "Open" to insert the image into the document.
5. Click the image to drag it to the desired location.
d) Enter the College name and change the following Font Size: 30, Font Name: Arial,
Type Style: Bold.
In Font Tool select size is 30 and Font name Arial, Type style is Bold.
e) Add two images and demonstrate the Bring to front and send to back command.
The Arrange menu is used to change the elements order, to set the elements positioning and
to group two or more elements.
Bring To Front: Moves the selected element forward one position.
Send To Back: Moves the selected element back one position.
Program-9
a) Insert an image.
1. Now select the photo, which you want to insert. Go to File > Open > Select picture from your drive > Click
on Open.
2. Create the shape layer (ellipse).
3. Make sure your image is above the shape layer in the Layers panel.
1. Open an image, any image, in Photoshop. In Photoshop’s Toolbox, double-click on the Zoom tool icon.
2. Now open the Image> Image Size dialog box.
3. Changes made will alter the number of pixels in the image.
4. The Document Size fields are available put width is 15 cm and height is 20cm.
The Lasso tools allow you to select precise areas of an image by drawing or tracing the selection outline.
There are three lasso tools available.
.
d) Demonstrate the Crop tool
The Crop tool allows you to select an area of an image and discard everything outside
this area. The tool is located third from the top in the Photoshop Toolbox, on the left side.
The Slice tool allows you to divide an image into smaller sections which fit together like a
jigsaw (but with straight edges).
Program10
(b) Write a PL-SQL program to display the odd numbers from 1 to 100.
Declare
n number;
sum1 number default 0;
endvalue number;
begin
endvalue:=&endvalue;
n:=1;
for n in 1..endvalue
loop
if mod(n,2)=1
then
sum1:=sum1+n;
end if;
end loop;
dbms_output.put_line(' sum = '||sum1);
end;
/
Enter value for endvalue: 30
old 6: endvalue:=&endvalue;
new 6: endvalue:=30;
sum = 225
2.Select the "Layout" menu and click "Auto flow" to set the text to flow automatically.
4.Select the "File" menu, and then click "Place (Import text and graphics)." A dialog box appears.
5. Find and double-click the document with the text you want to import. Your mouse head changes into a
squiggly arrow.