niit_ ku 5th sem practical solutions
TRANSCRIPT
-
8/10/2019 Niit_ Ku 5th Sem Practical Solutions
1/15
8/21/2014 NIIT: KU 5TH SEM PRACTICAL SOLUTIONS
http://sslifehacker.blogspot.in/2013/04/ku-5th-sem-practical-solutions_6442.html
Follow @ss731382
Welcome to..www.sslifehacker.blogspot
Get more stuff like.. Assignments, Documents, PC tips and tricks, Widescreen wallpapers,Learning videos,Open source software,Latest co
packs,Important web links and whatever you want...
Home
Tuesday, 16 April 2013
Set 1
//1. Open an Image. And separate background using selection tool.
Step 1: run Photoshop
Step 2: go to file menu -> open
Step 3: select image ->click open
Step 4: click on magic wand tool from tool menuStep 5: select on background of the image using magic wand tool
Step 6: press delete on keyboard
Step 7: go to file menu -> save as
Step 8: select JPEG format
Step 9: enter file name -> click SAVE
//2. Write a JSP page to display the number of hits to this page. (Hint: use application scope of java bean).
Page Counter Using URL Rewriting
KU 5TH SEM PRACTICAL SOLUTIONS
Sea
4
6
A
C(
G(
s-
ME
http://sslifehacker.blogspot.in/search/label/solved%20Answers%20Bsc.IT%20-51http://sslifehacker.blogspot.in/search/label/PRACTICALhttp://sslifehacker.blogspot.in/search/label/Notificationhttp://sslifehacker.blogspot.in/search/label/Icons%20Packhttp://sslifehacker.blogspot.in/search/label/ibpshttp://sslifehacker.blogspot.in/search/label/GNIIT%20Sem%20C%20Elective%20.http://sslifehacker.blogspot.in/search/label/Downloadshttp://sslifehacker.blogspot.in/search/label/Documentshttp://sslifehacker.blogspot.in/search/label/Cracking%20Passwordhttp://sslifehacker.blogspot.in/search/label/Assignmentshttp://sslifehacker.blogspot.in/search/label/6%20Sem%20KU%20Lab%20Practicalhttp://sslifehacker.blogspot.in/search/label/4th%20semhttp://sslifehacker.blogspot.in/http://sslifehacker.blogspot.in/https://twitter.com/intent/follow?original_referer=http%3A%2F%2Fsslifehacker.blogspot.in%2F2013%2F04%2Fku-5th-sem-practical-solutions_6442.html®ion=follow_link&screen_name=ss731382&tw_p=followbutton&variant=2.0 -
8/10/2019 Niit_ Ku 5th Sem Practical Solutions
2/15
8/21/2014 NIIT: KU 5TH SEM PRACTICAL SOLUTIONS
http://sslifehacker.blogspot.in/2013/04/ku-5th-sem-practical-solutions_6442.html 2
Page Counter Using URL Rewriting
This is the first time you have accessed this page. You have accessed the page once before. You have accessed the page times before.
Click
here to visit the page again.
Set 2
//1. Using pencil tool create an image of landscape, and color it with Brush tool.
Step 1: run Photoshop
Step 2: click file menu -> new -> select size -> press OK
Step 3: in dialog box, click on preset -> select landscape in size box -> press OK
Step 4: click on pencil tool in tool menu
Step 5: draw an image in landscape using pencil tool
Step 6: right click on pencil tool and select brush tool
Step 7: using brush tool, fill the color in landscape image
Step 8: go to file menu -> save as
Step 9: select JPEG format
Step 10: enter file name -> click SAVE
//2. Create an HTML page containing the following features
a. Create a login JSP page with username, password and submit button.
b. On submit, display message Thank you for logging in also create cookie s to store username and password.
c. Open login JSP page on a new browse r. If the cookie is pres ent the username and password field should be
automatically populated with the values from the cookie.
Please Enter Your Detials !
First Name
Last Name
Next.jsp
JSP Page
s-
s-
s-
s-
s-
s-
s-
T
REC
T
Tw
Fol
Em
Tot
1
https://twitter.com/ss731382http://sslifehacker.blogspot.in/search/label/Tips%20and%20Trickshttp://sslifehacker.blogspot.in/search/label/solved%20Answers%20Bsc.IT%20-64http://sslifehacker.blogspot.in/search/label/solved%20Answers%20Bsc.IT%20-63http://sslifehacker.blogspot.in/search/label/solved%20Answers%20Bsc.IT%20-62http://sslifehacker.blogspot.in/search/label/solved%20Answers%20Bsc.IT%20-61http://sslifehacker.blogspot.in/search/label/solved%20Answers%20Bsc.IT%20-54http://sslifehacker.blogspot.in/search/label/solved%20Answers%20Bsc.IT%20-53http://sslifehacker.blogspot.in/search/label/solved%20Answers%20Bsc.IT%20-52 -
8/10/2019 Niit_ Ku 5th Sem Practical Solutions
3/15
8/21/2014 NIIT: KU 5TH SEM PRACTICAL SOLUTIONS
http://sslifehacker.blogspot.in/2013/04/ku-5th-sem-practical-solutions_6442.html 3
Set 3
//1. Write a JSP program to display current dateand time and suitable welcome message.
a. If time is between 5AM and 12 PM display welcome mes sage as Good Morning
b. If time is between 12 PM and 5 PM display welcome message as Good Afternoon
c. After 5PM display message as Good evening.
Welcome
5 && time12 && time17)
out.println("\n Good Evening !");
%>
current time is ::
//2. Using Rubberstamp tool, create a clone image
Step 1: run Photoshop
Step 2: go to file menu -> open
Step 3: select image -> click open
Step 4: select rubberstamp tool from tool menu
Step 5: press ALT then left click on image to begin
Step 6: click on the image and drag where you want to make clone of that image
Step 7: go to file -> save as
Step 8: select JPEG format
Step 9: enter file name -> click SAVE
Set 4
//1. Using Gradient tool, create some backgrounds for photos.
Step 1: run Photoshop
Step 2: go to file menu -> new -> select size -> press okStep 3: select gradient tool from tool menu
Step 4: choose gradient (linear/ radial/ angle/ diamond) from option toolbar
Step 5: press left click on mouse then drag on image to create gradient
Step 6: go to file -> save as
Step 7: select JPEG format
Step 8: enter file name -> click SAVE
//2. .Create an HTML page containing the following features
a. A combo box containing the list of 7 colors: Violet, Indigo, Blue, Green, Yellow, Orange, Red
b. Depending upon the color se lecte d from the above combo box, the mes sage in the status bar of the window
must be reflect the value selected in the combo box (hint: on change event of the combo box).
http://vslifehacker.blogspot.in/2012/11/ku-5th-sem-practical-solutions_4640.html# -
8/10/2019 Niit_ Ku 5th Sem Practical Solutions
4/15
8/21/2014 NIIT: KU 5TH SEM PRACTICAL SOLUTIONS
http://sslifehacker.blogspot.in/2013/04/ku-5th-sem-practical-solutions_6442.html 4
Showing Message in Status Bar
functionfn()
{
num=document.frm.vibgyor.selectedIndex;
if(num==0)
{
window.status="You have selected Violet.";
}
if(num==1)
{
window.status="You have selected Indigo.";
}
if(num==2)
{
window.status="You have selected Blue.";
}
if(num==3)
{
window.status="You have selected Green.";
}
if(num==4)
{
window.status="You have selected Yellow.";
}
if(num==5)
{
window.status="You have selected Orange.";
}
if(num==6)
{
window.status="You have selected Red.";
}
}
Violet
Indigo
Blue
Green
Yellow
Orang
Red
Set 5
//1. Create an HTML page containing the following featuresa. A combo box containing the list of 7 colors: Violet, Indigo, Blue, Gree n, Yellow, Orange, Red
b. An empty 1X1 table with default background color: White
c. Depending upon the color se lecte d from the above combo box, the background of the table must be changed
accordingly. (hint: on change event of the combo box).
Changing Table Color by selecting color from the ComboBox
functionfn()
-
8/10/2019 Niit_ Ku 5th Sem Practical Solutions
5/15
8/21/2014 NIIT: KU 5TH SEM PRACTICAL SOLUTIONS
http://sslifehacker.blogspot.in/2013/04/ku-5th-sem-practical-solutions_6442.html 5
{
num=document.frm.vibgyor.selectedIndex;
if(num==0) {
document.getElementById("tab").bgColor="Violet";
}
if(num==1)
{
document.getElementById("tab").bgColor="Indigo";
}
if(num==2) {
document.getElementById("tab").bgColor="Blue";
}
if(num==3)
{
document.getElementById("tab").bgColor="Green";
}
if(num==4)
{
document.getElementById("tab").bgColor="Yellow";
}
if(num==5)
{
document.getElementById("tab").bgColor="Orange";
} if(num==6)
{
document.getElementById("tab").bgColor="Red";
}
}
Violet
Indigo
Blue
Green
Yellow
Orange
Red
Name
Registration Number
priyanka rani
072B5725
//2. Import a JPEG format image and save it as a PSD image, using layer options
Decrease the opacity of image.
Tips: Ctrl + Shift + S = save as window
Step 1: run Photoshop
Step 2: go to file menu -> open
Step 3: select a JPEG image -> click open
Step 4: go to layer -> new -> click on layer from background
Step 5: enter layer name in dialog box -> press OK
Step 6: press F7 then decrease opacity
Step 7: go to file -> save as
Step 8: select PSD format
Step 9: enter file name -> click SAVE
-
8/10/2019 Niit_ Ku 5th Sem Practical Solutions
6/15
8/21/2014 NIIT: KU 5TH SEM PRACTICAL SOLUTIONS
http://sslifehacker.blogspot.in/2013/04/ku-5th-sem-practical-solutions_6442.html 6
Set 6
//1. Open a PORTRAIT image, convert it into grayscale. Now color the image Using COLOR BALANCE,
LEVELS and CURVES
Step 1: run Photoshop
Step 2: go to file menu -> open
Step 3: select a portrait JPEG image ->click open
Step 4: go to image -> mode -> click on Grayscale
Step 5: click discard in message box
Step 6: go to image -> adjustments -> image -> click on curves
Step 7: adjust curves -> press OK
Step 8: go to file -> save as
Step 9: select JPEG format
Step 10: enter file name -> click SAVE
//2. Write a HTML page containing an HTML form to capture the following properties from the user:
a. Name (text box)
b. Address (text area)
c. Phone (text box)
Write javascript functions
a. to validate Name to contain only alphabets and of maximum length should be 25 ; Show appropriate mes sage s
on failure
b. to validate Address field to contain maximum length of 200 characters; Show appropriate on failure and focus
the Address field text area
c. to validate phone number to contain only numeric data; show appropriate mes sage s on failure
HTML form
function f()
{
var name=document.f1.Name.value;
var phone=document.f1.Phone.value;
var address=document.f1.Address.value;
if(name.length=="")
{
alert("Please enter name");
name.focus();
return;
}
if (name.length> 25)
{
alert("Name Field cannot contain more than 25 characters");
name.focus();
return;
}
if (!isNaN(name))
{alert("Name field must be filled with only Alphabets");
name.focus();
return;
}
if(phone.length=="")
{
alert("Please enter phone numbar");
phone.focus();
return;
}
if (isNaN(phone))
{
-
8/10/2019 Niit_ Ku 5th Sem Practical Solutions
7/15
8/21/2014 NIIT: KU 5TH SEM PRACTICAL SOLUTIONS
http://sslifehacker.blogspot.in/2013/04/ku-5th-sem-practical-solutions_6442.html 7
alert("Phone Number must be numeric");
phone.focus();
return;
}
if(address.length=="")
{
alert("Please enter address");
address.focus();
return;
}
if (address.length> 200)
{
alert("Address Field can contain maximum of 200 character");
}
}
A Sample FORM
Name:
Phone:
Address:
-
8/10/2019 Niit_ Ku 5th Sem Practical Solutions
8/15
8/21/2014 NIIT: KU 5TH SEM PRACTICAL SOLUTIONS
http://sslifehacker.blogspot.in/2013/04/ku-5th-sem-practical-solutions_6442.html 8
PrintWriter out = response.getWriter();
String firstname=request.getParameter("firstname");
String lastname=request.getParameter("lastname");
out.println("Welcome "+firstname+" "+lastname);
}
}
//2. Open a portrait, select the eyeballs using marquee tool, and now change the color of eyes using Hue /
saturation.
Tips: Ctrl + U = Hue / saturation
Step 1: run Photoshop
Step 2: go to file menu -> open
Step 3: select image ->click open
Step 4: click on marquee tool from tool menu
Step 5: select eyeball from the image using marquee tool
Step 6: press CTRL+U
Step 7: adjust HUE AND SATURATION from dialog box -> press OK
Step 8: go to file -> save as
Step 9: select JPEG format
Step 10: enter file name -> click SAVE
Set 8
//1. Open 3 to 4 images in a same layer. Using filter effects create creative backgrounds for book cover page.
Step 1: run Photoshop
Step 2: go to file menu -> new -> select background size -> press OK
Step 3: go to filter -> noise -> add noise
Step 4: adjust amount in noise dialog box -> press OK
Step 5: go to file menu -> open
Step 6: select 3-4 images -> click open
Step 7: select images, copy and paste them in background one by one
Step 8: go to file -> save as
Step 9: select JPEG format
Step 10: enter file name -> click SAVE
//2. Create a HTML page to display a list of film songs available in the library. The following are features of the
page
a. The name of the songs must be hyper linked to the songs, so that the users must be able to download songs.
b. The following is the song database available in the library:
c. Library Name: Hariharan Music Site
Slno Song Name Film Artiste
1 PATA-PATA Apthamitra Udith Narayan
2 Kana Kanade Apthamitra Madhubalakrishna
3 Anku Donku Apthamitra S P Balasubramanyam
4 Kalavanu Thadeyoru Apthamitra Hariharan
5 Bombe Anayya Unknown
Hiriharan Songs Site
Welcome to Hariharan's Songs Site
S.No.
Song Name
Film
Artist
1.
-
8/10/2019 Niit_ Ku 5th Sem Practical Solutions
9/15
8/21/2014 NIIT: KU 5TH SEM PRACTICAL SOLUTIONS
http://sslifehacker.blogspot.in/2013/04/ku-5th-sem-practical-solutions_6442.html 9
Patta-Patta
Apthamitra
Udit Narayan
2.
Kana Kanede
Apthamitra
Madhubalakirishna
3.
AnkuDonku
Apthamitra
S P Balasupramanniyam
4.
Bombay
Anaya
Unknown
Set 9
//1. Create an HTML page to display the following data using tags
First Name Last Name City Phone Number
Shiva Rama Mysore 08212569964
Pratap S Bangalore 08025689754
Sreenivas G Mercara 08965445454
Data Table
First Name
Last Name
City
Phone Number
Shiva
Rama
Mysore 08212569964
Pratap
S
Bangalore
08025689754
Shrinivas
G
Mercara
08965445454
-
8/10/2019 Niit_ Ku 5th Sem Practical Solutions
10/15
8/21/2014 NIIT: KU 5TH SEM PRACTICAL SOLUTIONS
http://sslifehacker.blogspot.in/2013/04/ku-5th-sem-practical-solutions_6442.html 10
//2. Open an image and adjust a level of image.
Tips: Ctrl + L = level
Step 1: run Photoshop
Step 2: go to file menu -> open
Step 3: select an image -> click open
Step 4: go to image -> adjustments -> click on level or press ctrl + l
Step 5: adjust level -> press OK
Step 6: go to file -> save as
Step 7: select JPEG format
Step 8: enter file name -> click SAVE
Set 10
//1. Write HTML script to display Hello World, Welcome to the world of HTML. Put the title as World of
HTML
Welcome to the world of HTML
"Hello WorldWelcome to the world of HTML"
//2. Change an image size 22 cm x 29 cm to 44 cm x 58 cm. and resolution 72 to 300.
Step 1: run Photoshop
Step 2: go to file menu -> open
Step 3: select an image with 22 cm x 29 cm size -> click open
Step 4: go to image -> image size
Step 5: change image size to 44 cm x 58 cm size with 100 resolutions -> press OK
Step 6: go to file -> save as
Step 7: select JPEG format
Step 8: enter file name -> click SAVE
Set 11
//1. Create some geometrical shapes, using shape tool.
Step 1: run Photoshop
Step 2: go to file menu -> new -> select size -> press OK
Step 3: click on custom shape tool from tool menu
Step 4: click on custom shape picker in options toolbar
Step 5: click on smart tag -> select all then click append
Step 6: choose shape from option toolbar
Step 7: left click on background and drag mouse to draw shape
Step 8: go to file -> save as
Step 9: select JPEG formatStep 10: enter file name -> click Save
Set 12
//1. Type text GRADATION and apply gradient tool on text.
Step 1: run Photoshop
Step 2: go to file menu -> new -> select size -> click OK
Step 3: click on text from tool menu
Step 4: type text GRADATION
Step 5: click on layer from layer property
Step 6: right click on selected layer and click on blending options
Step 7: click and check on gradient overlay
Step 8: adjust gradient or change angle to 0o -> then press OK
-
8/10/2019 Niit_ Ku 5th Sem Practical Solutions
11/15
8/21/2014 NIIT: KU 5TH SEM PRACTICAL SOLUTIONS
http://sslifehacker.blogspot.in/2013/04/ku-5th-sem-practical-solutions_6442.html 1
Step 9: go to file menu -> save as
Step 10: select JPEG format
Step 11: enter file name -> click SAVE
//2. Create an HTML page to display the following data using tags
First Name Last Name City Phone Number
Shiva Rama Mysore 08212569964
Pratap S Bangalore 08025689754
Sreenivas G Mercara 08965445454
Data Table
First Name
Last Name
City
Phone Number
Shiva
Rama
Mysore
08212569964
Pratap
S
Bangalore
08025689754
Shrinivas
G
Mercara
08965445454
Set 13
//1. Write C Program to create Indian Flag.
#include
#include
#include
#include
const float PI=3.14154;void main()
{
int gdriver=DETECT,gmode=0;
int I;
Int x,y;
initgraph(&gdriver,&gmode,"c:\\tc\\bgi");
cleardevice();
rectangle(0,0,639,479);
outtextxy(250,20,"INDIAN FLAG");
rectangle(80,50,560,380);
line(80,160,560,160);
line(80,270,560,270);
setfillstyle(SOLID_FILL,LIGHTRED);
-
8/10/2019 Niit_ Ku 5th Sem Practical Solutions
12/15
8/21/2014 NIIT: KU 5TH SEM PRACTICAL SOLUTIONS
http://sslifehacker.blogspot.in/2013/04/ku-5th-sem-practical-solutions_6442.html 12
floodfill(85,60,getmaxcolor());
setfillstyle(SOLID_FILL,WHITE);
floodfill(85,170,getmaxcolor());
setfillstyle(SOLID_FILL,GREEN);
floodfill(85,280,getmaxcolor());
setcolor(BLUE);
circle(320,215,50);
for(I=0;I
-
8/10/2019 Niit_ Ku 5th Sem Practical Solutions
13/15
8/21/2014 NIIT: KU 5TH SEM PRACTICAL SOLUTIONS
http://sslifehacker.blogspot.in/2013/04/ku-5th-sem-practical-solutions_6442.html 13
if(flag==1)
j=j+2,q=q-2;
if(j=0)
flag=0;
delay(10);
cleardevice();
}
getch();
closegraph();
}
Set 14
//1. Write Open GL Program to create a Window and display HELLO inside.
#include
void display(void)
{
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(1.0,1.0,1.0);
glBegin(GL_POLYGON);
glVertex3f(0.25,0.25,0.25);
glVertex3f(0.75,0.25,0.0);
glVertex3f(0.75,0.75,0.0);
glVertex3f(0.25,0.75,0.0);
glEnd();
glFlush();
}
Void init(void)
{
glClearColor(0.0,0.0,0.0,0.0);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0.0,1.0,0.0,1.0,-1.0,1.0);
}
Int main(int argc,char**argv)
{
glutInit(&argc,argv);
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize(250,250);
glutInitWindowPosition(100,100);
glutCreateWindow(HELLO);
init();
glutDisplayFunc(display);
glutMainLoop();
return 0;}
//2. Create a simple static web page for a college (assume necessary information)
My College Site
My College Site
-
8/10/2019 Niit_ Ku 5th Sem Practical Solutions
14/15
8/21/2014 NIIT: KU 5TH SEM PRACTICAL SOLUTIONS
http://sslifehacker.blogspot.in/2013/04/ku-5th-sem-practical-solutions_6442.html 14
Newer Post Older PostHome
Subscribe to: Post Comments (Atom)
Posted by Satyendra Sharma at 22:53
Labels: PRACTICAL
Home
Sitemap
About Us
Online Admission
Enter your name:
Gender: Male Female
Qualification: Matric Enter
Recommend this on Google
Enter your comment...
Comment as: Google Accou
Publish
Preview
No comments:
Post a Comment
Subscribe To
Posts
Comments
Satyendra Sharma
10have mein circles
Add to circles
Google+ Followers
Copyright 2013 Created By - Satyendra Sharma. Simple template. Powered by Blogger.
Assignments(3) Cracking Password(2) Downloads(2) ibps(2) Icons Pack(2) PRACTICAL
Labels
https://plus.google.com/+PreetyUzlainsarkariNaukrihttps://plus.google.com/104293862079951853374https://plus.google.com/105221740964368678996http://sslifehacker.blogspot.in/search/label/PRACTICALhttp://sslifehacker.blogspot.in/search/label/Icons%20Packhttp://sslifehacker.blogspot.in/search/label/ibpshttp://sslifehacker.blogspot.in/search/label/Downloadshttp://sslifehacker.blogspot.in/search/label/Cracking%20Passwordhttp://sslifehacker.blogspot.in/search/label/Assignmentshttp://www.blogger.com/https://plus.google.com/105262405286077301848https://plus.google.com/102066855548888917959https://plus.google.com/111199550385521280450https://plus.google.com/109931362660505788545https://plus.google.com/112354499610531326094https://plus.google.com/114700096026733923382https://plus.google.com/105221740964368678996https://plus.google.com/104293862079951853374https://plus.google.com/+PreetyUzlainsarkariNaukrihttps://plus.google.com/109931362660505788545http://www.blogger.com/share-post.g?blogID=6920930351978174734&postID=2851795764063704980&target=pinteresthttp://www.blogger.com/share-post.g?blogID=6920930351978174734&postID=2851795764063704980&target=facebookhttp://www.blogger.com/share-post.g?blogID=6920930351978174734&postID=2851795764063704980&target=twitterhttp://www.blogger.com/share-post.g?blogID=6920930351978174734&postID=2851795764063704980&target=bloghttp://www.blogger.com/share-post.g?blogID=6920930351978174734&postID=2851795764063704980&target=emailhttp://sslifehacker.blogspot.in/search/label/PRACTICALhttp://www.blogger.com/email-post.g?blogID=6920930351978174734&postID=2851795764063704980http://sslifehacker.blogspot.in/2013/04/ku-5th-sem-practical-solutions_6442.htmlhttps://plus.google.com/109931362660505788545http://sslifehacker.blogspot.com/feeds/2851795764063704980/comments/defaulthttp://sslifehacker.blogspot.in/http://sslifehacker.blogspot.in/2013/04/flag-icons-pack.htmlhttp://sslifehacker.blogspot.in/2013/04/ku-time-table-2013-1st-cycle.html -
8/10/2019 Niit_ Ku 5th Sem Practical Solutions
15/15
8/21/2014 NIIT: KU 5TH SEM PRACTICAL SOLUTIONS