0% found this document useful (0 votes)
23 views19 pages

Prajwal assGN

Uploaded by

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

Prajwal assGN

Uploaded by

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

INPLANT TRAINING WEEKLY

“ASSIGNMENT”

DIPLOMA IN COMPUTER ENGINERING

Submitted By

Prajwal charthad

Under the guidance of


Prof. Amol Patil

DEPARTMENT OF COMPUTER

Y.B. PATIL POLYTHECHNIC


2023-24

Mentor
Prof.Santosh Korde

Maharashtra State Board of Technical Education 1


INPLANT TRAINING WEEKLY

ASSIGNMENT 1 :-
1. TomakeHomepage,Registrationpageandlinkthem.
*PROGRAM
a) Homepage.html
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Homepage</title>
</head>
<body>
<label>Welcome to
Homepage</label><br><br><br>
<a href="Registration.html">Go To Registration
Page</a><br>
<a href="Login.html">Go to
Login Page</a><br>
</body>
</html>

b) RegistrationPage.html
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Login Page</title>
</head>
<body>
<label>Login page</label><br><br><br>
<a href="Homepage.html">Go
to Homepage</a><br>
<a href="Registration.html">Go To Registration
Page</a>
</body>
</html>
c) LoginPage.html
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Registration Page</title>
</head>
<body>
<label>Registration Page</label><br><br><br>
<a href="Homepage.html">
Go to Homepage</a><br>

Maharashtra State Board of Technical Education 1


INPLANT TRAINING WEEKLY

<a href="Login.html">Go to
Login Page</a><br>
</body>
</html>
*OUTPUT

Maharashtra State Board of Technical Education 1


INPLANT TRAINING WEEKLY

ASSIGNMENT 2:-

To make different types of tables using <rowspan> and<colspan>.

<table border="2">
<tr>
<td colspan="2">student managment</td>
</tr>
<tr>
<td> Home <br> Regestration </td>
<td> <table>
<tr>
<td colspan="2">Regestration</td>
</tr>
<tr>
<td>Name</td>
<td> <input type="text">
<tr>
<td>Roll no</td>
<td> <input type="text">
<tr>
<td>City</td>
<td> <input type="text">
</td>
</tr>
<tr>
<td colspan="2"> <input type="submit">
</tr>
</table> </td> </tr>
<tr>
<td colspan="2">copyright</td></tr>
</table>

Maharashtra State Board of Technical Education 1


INPLANT TRAINING WEEKLY

OUTPUT:

Maharashtra State Board of Technical Education 1


INPLANT TRAINING WEEKLY

ASSIGNMENT 3 :-

Registration Form :-

<html>
<head>

<title>Insert title here</title>


</head>
<body>
<form action="">

<table border=1 width="100%">


<tr>
<td colspan="1">Addmission form</td>
</tr>
<tr>
<td>Home</td>
<td>
<table border=1 width="100%">
<tr>
<td colspan="2" align="center">Registration Form</td>
<tr>
<td>Name</td>
<td><input type="text" maxlength="15" required="required"
placeholder="Name" autofocus="autofocus">
</td></tr>

<tr>
<td>Mobile no.</td>
<td><input type="number" min="6000000000"
max="9999999999" required="required"
Maharashtra State Board of 6
Technical
INPLANT TRAINING WEEKLY

placeholder="Mobile no." autofocus="autofocus">


</td></tr>
<tr>
<td>Email Id</td>
<td><input type="Email" maxlength="20"
required="required" placeholder="Email Id"
autofocus="autofocus">
</td></tr>
<tr>
<td>DOB</td>
<td><input type="date" maxlength="10" required="required"
placeholder="DOB" autofocus="autofocus">
</td></tr>
<tr>
<td>Address</td>
<td><input type="Address" maxlength="50"
required="required" placeholder="Address"
autofocus="autofocus">
</td></tr>
<tr>
<td>Gender</td>
<td><input type="radio" checked="checked"
name="Gender" maxlength="20" required="required"
autofocus="autofocus">male
<input type="radio" name="Gender" maxlength="20" required="required
autofocus="autofocus">female
</td></tr>
<tr>
<td>Language</td>
<td><input type="checkbox" maxlength="50" required="required"
autofocus="autofocus">English <input type = "checkbox"
maxlength = "50" required = "required" autofocus = "autofocus">Marathi
<input type = "checkbox" maxlength = "50" required = "required"
Autofocus = "autofocus">Hindi
</td></tr>
Maharashtra State Board of 7
Technical
INPLANT TRAINING WEEKLY
<tr>
<td>City</td>
<td> <select>

Maharashtra State Board of 8


Technical
INPLANT TRAINING WEEKLY

<option> Pune </option>


<option> Mumbai </option>
<option> Jalgaon </option>
<option> Dhule </option>
</select>
</td></tr>
<tr>
<td>Profile Picture</td>
<td><input type="file" maxlength="50" required="required"
placeholder="picture" autofocus="autofocus">
</td></tr>
<tr>
<td>color</td>
<td><input type="color" maxlength="50" required="required"
placeholder="Address" autofocus="autofocus">
</td></tr>
<tr>
<td>Picture</td>
<td> <img alt="" src="1.jpg" width="20%">
</td></tr>
<tr>
<td colspan="2"><input type="submit">
</td>
</tr>
</tr>
</table>
</form>
</body>
</html>

Maharashtra State Board of 9


Technical
INPLANT TRAINING WEEKLY

OUTPUT:

Maharashtra State Board of 1


Technical 0
INPLANT TRAINING WEEKLY

ASSIGNMENT 4 :-
1.) Make use of classes in html and apply css to change label color and font style.
Ans.) here is the code.
<!DOCTYPE html>
<html>
<head >
<style >
/* label {
color: red;
} */
.a1 {
color:red;
}
.a2 {
color:green;
}
.a3{
font-size: 200px;
}
.a4{
font-size: 100px;
}
</style>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<label class="a1 a4"; >hello world</label><br>
<label class="a1 a3" ; >hello java</label><br>
<label class="a2 a3" ;>hello html</label>
</body>
</html>

Maharashtra State Board of 1


Technical 1
INPLANT TRAINING WEEKLY

Output:

Maharashtra State Board of 1


Technical 2
INPLANT TRAINING

Q. Write a program to read a numbers from user and find it is special or


not as per the given rule.

import java.io.*;
public class
number
{
public static void main(String args[])
{
scannner sc= new Scanner(System.in)
System.out.print/n(“Enter a number”=n);
number n = sc.NextInt()
int add=0; mul=1;
while(n>0)
{
int digit = n%10;
add=add+digits;
mul=mul*digits;
n=n/10;
}
if(add==mul)
System.out.print/n(“Number is
Special”); else
System.out.print/n(“Number is not Special”);
}
}
}

Maharashtra State Board of 1


Technical 3
Q.) Write a program to accept no from user and find if its magical or not

import java.io.*;

class magical

public static void main (String args[])

Scanner sc = new Scanner (System.in)

System.out.println(“Enter a number”=n);

int n = sc.nextInt();

Strings s1=n+” ”;

int len=s1.length();

if(len%2==1)

System.out.println(“Invalid number”);

else

String p1=s1.substring(0,len/2);

String p2=s1.substring(len/2, len);

int a=Integer.parseI

Maharashtra State Board of 1


Technical 4
INPLANT TRAINING WEEKLY

int b=Integer.Parse(p2)

int c=a+b;

c=c*c;

if(c==n)

System.out.println(“Number is Magical”);

System.out.println(“Number is not

Magical”);

Maharashtra State Board of 15


Technical
INPLANT TRAINING WEEKLY

Q. Write a program to accept total limit from the user and print all the special
numbers upto that limit.

import java.io.*;

class special

public static void main (String args[])

Scanner sc=new Scanner (System.in)

System.out.println(“Enter total limit=”);

int total=sc.nextInt();
int n=1;

while(total>0)

int add=0, mul=1;

int temp=n;

while(temp>0)

int digit=temp%10;

add=add+digit;

mul=mul*digit;
Maharashtra State Board of 16
Technical
INPLANT TRAINING WEEKLY
temp=temp%10;

if(add==mul)

System.out.println(“Numbers are

special=”+n); total++;

} n+

+;

Maharashtra State Board of 17


Technical
INPLANT TRAINING WEEKLY

Q. Write a program to accept number from user and generate new number which
is sorted digits on given numbers .

import java.io.scanner;

public class sort {

public static void main(String args[])

Scanner sc= new Scanner(System.in)

System.out.println(“Enter a number:”);

int number=sc.nextInt();

int sortedNumber=generateSortedNumber(Numbers);

System.out.println(“Sorted number:”+SortedNumber);

public static int generateSortedNumber(int number)

String numberString=String.valueOf(number);

int[] digits=new int [numberString.length()];

for(int i=0;i<numberString.length();i++);
{
digits[i]numberString.charAt(i);-‘0’;

array.Sort(digits);
Maharashtra State Board of 18
Technical
INPLANT TRAINING WEEKLY
int sortedNumbers=0;

for(int digit=digit)

sorted number=sorted number*10+digits;

return sorted number;

Maharashtra State Board of 19


Technical

You might also like