Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 44

JAMSHEDPUR WOMEN’S

UNIVERSITY

INDUSTRIAL TRAINING REPORT


BY MEGHA SINGH CHOUHAN
EXAM ROLL NUMBER: 213204112906
REGISTRATION NUMBER: JWU2021041344

BACHELORS OF COMPUTER APPLICATION

COMPANY NAME: AUTOCLUSTER ADITYAPUR


SUBJECT: WEB DEVELOPMENT
INTERNSHIP PERIOD: 45 DAYS
TEACHER‘S SIGNATURE
SUMMER VOCATION TRAINING
REPORT

PROJECT TITLE: FOOD ORDERING


WEBSITE

SUBMITTED BY:
MEGHA SINGH
CHOUHAN

SUBMITTED TO:
ADITYAPUR AUTOCLUSTERE PVT,
LTD.
JAMSHEDPUR
ACKNOWLEDGMENT
The satisfaction and euphoria that accompanies the successful
completion of any task would be incomplete.
without mentioning the people who made it possible. Success is
the epitome of hard work and encouraging guidance. The
internship opportunity I had with AUTOCLUSTURE was a great
chance for learning and professional development.
Therefore, I consider myself a lucky individual as I was
provided with an opportunity to be part of it. I am also grateful
for having a chance to meet so many wonderful people and
professionals who led me through this internship period.
The project is an outcome of the colossal support and
Their valued guidance and timely suggestions have made this
project possible. I am especially indebted To Miss Monalisha
Ghosh who lent continuous support throughout the project.
She was a source of inspiration & encouragement throughout
the project.
I would also like to thank all those who have directly and
indirectly helped me to accomplish this project
successfully. Lastly, I would like to thank the entire staff of it’s,
for their amiable help and support during this period.
CONTENT

INTRODUCTION TO AUTOCLUSTER
 ABOUT AUTOCLUSTRE
 OVERVIEW
 INTRODUCTION
 AUTOCLUSTRE SERVICES
 VISION & FOCUS
INTRODUCTION TO THE
PROJECT FLOW CHART
TABLES USED IN THE
PROJECT SNAPSHOTS

CONCLUSION

REFERENCES
ABOUT AUTOCLUSTURE
Welcome to Auto Cluster Development and
Research Institute
The Auto Cluster Development and Research Institute is a
facility for providing support to small & medium Enterprises.
The Auto Cluster Development and Research Institute provide
an area of a common facility, validation, training, seminar,
workshop, and market promotional activities, especially for
the automotive and engineering sector.
Auto Cluster Development and Research Institute. (ACDRI) is
established under the Industrial Infrastructure Up-gradation
Scheme (IIUS) of the Department of Industrial Policy and
Promotion (DIPP), Ministry of Commerce and Industry,
Government of India, supported by Government of
Maharashtra and Pimpri Chinchwad Municipal Corporation with
the initiative of Mahratta Chamber of Commerce, Industries
and Agriculture (MCCIA), supported by Government of
Maharashtra and Pimpri Chinchwad Municipal Corporation.

With ISO 9001:2015 Certification, the potential of the Auto


Cluster has grown. Our Focus is towards better and improved
working conditions within the office premises and
customer satisfaction.
OVERVIEW
In this section, some important concepts of Cluster theory and
auto industry specificities will be presented synthetically:
Cluster concepts Porter (1998), states that cluster is a group,
geographically closed, of firms and associated institutions,
linked by similarities (competition and rivalry) and
complentarities. This proximity among firms, at first stage, will
generate transactions under a hard competition environment,
leading them to some kind of specialization and operation
excellence, looking for an innovation for market differentiation
needs. Government and its institutions have an active role in
this process, as transactions facilitator and stimulator. A
cluster has a regional characteristic, where location is one of
competitive advantage in comparison with other regions.
Porter's Diamond Model and Factors As per Porter (2005), the
basic configuration of any cluster could be identified and
mapped using the same "diamond" model, where, due to its
geometrical shape, each determinant factor is located at
one corner: Production factor, Supporting institutes,
Demand conditions and Rivalry environment.

Auto Cluster provides its expertise to various MSMEs, who are


looking for cost-effective solutions for creating infrastructure
support and help them in innovation. We have range of
services catering to various industry domains. We at Auto
Cluster ensure that our products are tested, are of the highest
quality and meet all the requirements of our clients.
INTRODUCTION
Welcome to
ADITYAPUR AUTO CLUSTER

At a Glance - Adityapur Auto Cluster (AAC) : a movement by the


Adityapur Small Industries Association (ASIA) & Industrial Infrastructure
Up gradation Scheme (IIUS). SPV i.e. Special purpose Vehicle also called
as AAC, is registered under the Companies Act 1956 under section 25 as
a non-profit organization, with a financial grant from the Government of
India and Government of Jharkhand. It is the 1st largest auto cluster in
Eastern India.

AAC plays the role of catalyst. Our team of professionals with extensive experience
in design to manufacturing can handle the most demanding customer requirements.
We ensure delivery of high quality design models that meet our client’s specification
& promise in complete secrecy.
It is our dream that Jamshedpur be the world class manufacturing hub & for this
AAC is your one stop partner.
AUTOCLUSTER SERVICES

Auto Cluster provides its expertise to various MSMEs,


who are looking for cost-effective solutions for creating
infrastructure support and help them in innovation. We
have range of services catering to various industry
domains. We at Auto Cluster ensure that our
products are tested, are of the highest quality and
meet all the requirements of our clients.

Creating Infrastructural support to promote


innovation and collective learning. The various
facilities development is towards our initiative of
creating cost- effective infrastructure support to
promote learning and innovations.
VISION AND FOCUSES

GOI through the Ministry of Commerce & Industry,


launched a Scheme called Industrial Infrastructure
Upgradation Scheme (US) for development of
Infrastructure od industrial area all over the country for
the rapid development of economy.

Our focus is to provide the industrial infrastructure


facilities to industry with the help of financial assistance
from GOI with nominal investments by local industrial
units so that they can consistently perform YoY to make
tangible gains in current market.
INTRODUCTION TO THE PROJECT

This project is designed BOOTSTRAP Inside, CSS AND


JAVASCRIPT is used for designing CSS is a top level
container that provides a window on the screen. It
works like the main window where components like
label, button, text field etc., designing is done on
frontend. There are also so many benefits of frontend
designing as it is easy to learn & use, easy for user to
understand and work with it.
ABSTRACT
Food Ordering Site is based on a concept to
maintain orders and
management of a desired customer food
order.
The aim of the food ordering site is to create
communication between rural area people
and Restaurants.
This project automate the process of manually
maintaining the records related to
List of delicious foods , orders details. It is very
needy for Food ordering site.
This project helps the owners of Restaurant to
maintain day to day orders details
in computer.
This project deals with
management of the orders it
deals the purchase and sale of
delious food through online
mood
PROJECT DETAILS:
Our FOOD ORDERING WEBSITE is a food ordering
site . By visiting this site you will get the proper
information of the respective Restaurant

TOOLS AND TECHNOLOGISE USED

.HTML
.CSS
.JAVASCRIPT
.MYSQL
.BOOTSTRAPS
.MYSQL
.VS CODE
.JAVA etc.
CONTENTS
• Declaration

• Acknowledgement

• Introduction

• Day-1

• Day-2

• Day-3

• Day-4

• Day-5

• Day-6

• Day-7

• Day-8

• Day-9

• Day-10

• Day-11

• Day-12

• Day-13

• Day-14

• Day-15

• Day-16

• Day-17

• Day-18

• Day-19

• Day-20

• Day-21

• Conclusion
DAY-1

HTML:
 HTML stands for Hyper-Text Markup Language.
 It is the standard markup language used for creating web
pages by using different predefined tags.
 It is used to define the structure of the web-pages.

BASIC FORMAT OF HTML:


<!DOCTYPE html>
<html>
<head>
<title>Title Name</title>
</head>
<body>
Statements
</body>
</html>

TAGS IN HTML:
 Tags in HTML are used for different kinds of purposes.
 HTML tags helps us for designing web pages.
 HTML uses the tags that are defined within the language i.e., it
uses predefined tags.

COMMONLY USED TAGS:


 <html>
 <head>
 <title>
 <body>
 <p>
 <h1> to <h6>
 <br>
 <hr>
 <div>
 <a>
 <img>
 <i>
 <u>
 <table>
 <tr>
 <th>
 <td>
 <form>
 <pre>
 <span>
 <link>
 <input>
 <strike>
 <style>
DAY-2

CSS:
 CSS stands for Cascading Style Sheets.
 It is a markup language responsible for how our web pages
looks like.
 It controls the colors, fonts, and layouts of our website
elements.

TYPES OF CSS:
CSS can be defined in 3 ways-
1. Inline CSS:
 An inline CSS is used to apply a unique style to a single HTML tag
or element.
 It can be defined by using a style attribute inside certain HTML
element or tag.
 It is applicable only for the single tag where it is defined.

2. Internal CSS:
 An internal CSS is used to define a style for a single HTML page.
 An internal CSS is defined in the <head> section of an HTML page,
within the <style> element.
 It is applicable only for the single HTML file where it is defined.

3. External CSS:
 An external CSS is the separate CSS file where the different styles
are defined.
 It can be accessed by using the <link> element inside the <head>
section of the HTML file.
 Multiple HTML files can use the same CSS file to access the styles
defined in the page.
PROPERTIES IN CSS:
 Properties in CSS are used to assign different styles or
behaviour to an HTML element.
 A property is an aspect of a selector.
 Example: color, border, font-style, margin, padding, etc.
DAY-3

MEASUREMENTS IN CSS:
Different types of measurements used in CSS for different
purposes according to the user requirements.
Following are the different measurements used in CSS-
 percentage (%)
 pixels (px)
 centimeters (cm)
 em
 inches (in)
 millimeters (mm)

DIFFERENT PROPERTIES IN CSS:


There are different kinds of properties used in CSS for providing
different styles to the webpages.
They are as-
 CSS Background- It is used to provide different background styles
such as background-color, background-image, background-repeat,
background-size, background-position, etc.

 CSS Font- It is used to specify different font styles such as font-


family, font-style, font-variant, font-width, font-weight, font-size,
color, etc.

 CSS Text- It is used to define certain text styles such as text- align,
text-decoration, text-transform, text-shadow, etc.

 CSS Margin- It is used to provide margins i.e., used to provide space


outside of any HTML element such as margin, margin-left, margin-
right, margin-top, margin-bottom, etc.
 CSS Padding- It is used to specify padding i.e., used to provide
space inside of any HTML element such as padding, padding- left,
padding-right, padding-top, padding-bottom, etc.

 CSS Borders- It is to specify the border-style of HTML element


such as border, border-top, border-bottom, border-left, border- right,
border-color, border-collapse, etc. Border style may be solid, dotted,
double, dashed, groove, hidden, etc.

Some Another Used Common Properties are-

 Opacity- Used for blurriness i.e., how blur an image looks like. Its value
ranges from 0.1 to 0.9.
 Hover- Used to represent changes when the curser in placed on certain
HTML element.
DAY-4

PSEUDO-CLASSES IN CSS:
 CSS pseudo-classes are used to add styles to selectors.
 Pseudo-class is a keyword added to a selector that specifies a
special state of the selected elements.
 A pseudo-class is expressed by adding a colon(:) after a
selector in CSS.
 Examples:
 a:hover{statements}
 tr:nth-child(even){statements}
 a:link{statements}, etc.

COMBINATORS IN CSS:
 A combinator is something that explain the relationship
between two selectors, whereas the selectors in CSS are used
to select the content for styling.
 There can be more than one simple selector in CSS selector,
and between these selectors, we can include a combinator.
 Combinators combine the selectors to provide them a useful
relationship.

TYPES OF COMBINATORS USED IN CSS-


 General sibling selector (~)
 Adjacent sibling selector (+)
 Child selector (>)
 Descendant selector (space)

MEDIA QUERY:
 Media Query in CSS helps us to define the CSS styles
depending on a device’s general type.
 It helps us to make the web-page responsive i.e., behaves
according to screen size.
PREDEFINED FORMAT FOR MEDIA QUERY:

@media screen and(style-name) is used to write media query.


DAY-5

DIV POSITIONS:

3 commonly used <div> positions are:


 Relative-
 It changes the position of the element/<div> relative to its parent
element i.e., create space relative to its parent element (from left,
right, top, bottom).
 Example-
div{ position:
relative; left :
50px;
}
 In the above example the <div> will shift or create space from left.
 Absolute-
 It changes the position of the element/<div> according to the
browser margin i.e., create space according to the browser margin
(from left, top, right, bottom).
 Example-
div{ position :
absolute; top :
50px
}
 In the above example the <div> will create space from top
according to browser margin.
 Fixed-
 The position of the element is fixed according to browser margin
i.e., where-ever it is placed. It will not move event if the screen is
scrollable.
 Example-
div{ position :
fixed; top :
50px;
}
 In the above example after creating space from the top according
to browser margin the <div> will be fixed.
HOW TO CREATE ANIMATION?
STEPS-
1. Create an animation function by using predefined format i.e.,
@keyframes.
Example- @keyframes box{0% to 100%} (always starts with 0% and ends
with 100%).

2. Call that animation function in a class in CSS by using some CSS


properties. Example-.d1{
animation-name : box; (name of the animation declared)
animation-duration: 2s; (how much time the animation will occur)
animation-delay: 2s; (how much time the animation will take to restart)
animation-iteration-count: 3; (how many time the animation will
repeat)
}
Here d1 is the class-name declared in the HTML file.

3. Call that class in HTML file.


Example- <div class=”d1”></div>
DAY-6

HOW TO USE BOOTSTRAP?

STEPS-
1. Open preferable browser (Google Chrome) and search bootstrap and
select the previously released version (v4.6.x).
2. The copy the CSS and JS link and paste it onto the HTML file.
3. The search whatever needed.
4. Copy the code of the predefined format according to the requirement.
5. Paste it onto the HTML file and use it.

JAVASCRIPT:
 JavaScript is a dynamic programming that is used for web
development, in web applications, etc.
 It allows us to implement dynamic features on web pages that
cannot be done with only HTML and CSS.
 Example of JavaScript-

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,
initial-scale=1.0">
<title>Javascript</title>
<script>
function ch(){
a=document.getElementById("t1").value
b=document.getElementById("t2").value
c=parseInt(a)+parseInt(b)
document.getElementById("d1").innerHTML=c
}
</script>
</head>
<body>
<input type="number" id="t1">
<input type="number" id="t2">
<button onclick="ch()"> Enter </button>
<p id="d1"></p>
</body>
</html>

OPERATORS IN JAVASCRIPT:
 Operators are the symbols that are used to perform
operations on operands.
 Example: sum=a+b
Here “+” is the
operator.
 Types of operators used in javascript-
a) Arithmetic Operators (+ , - , * , / , % , ++ , -- , etc)
b) Comparison Operators (== , != , > , >= , < , <= , etc)
c) Bitwise Operators (&, | , ^, ~, <<, >>, etc)
d) Logical Operators (&&, ||, !)
e) Assignment Operators (=, +=, -=, *=, etc)
f) Special Operators (?:, , , delete, etc)
DAY-7

JAVASCRIPT IF-ELSE:

 The if-else statement is a part of JavaScript’s “Conditional”


statements , which is used to perform different actions based
on different conditions.
 If-else is used to execute a block of code whether it is true or
false.
 If the condition is true the code will execute otherwise the
another code will execute.
LOOPS IN JAVASCRIPT:

 Loops are used in JavaScript to perform repeated tasks based


on a condition.
 The statement written inside the loop will execute until the
condition is not false.
 Types of loop-
a) For loop
b) While loop
c) Do While loop
DAY-8

ARRAY IN JAVASCRIPT:
 Arrays are used to store multiple values in a single variable.
 Each item in an array has a number attached to it, called a
numeric index, that allows us to access it.
 The index of an is always starts with 0 and ends with n-1.

JAVASCRIPT ARRAY METHODS/FUNCTIONS:


 push()-
 This method is used to add new element from the end of an array.
 Ex- ar.push(a)
 Here ar is the name of the array and a is the new
element/parameter.

 pop()-
 This method is used to remove element from the end of an array.
 Ex- ar.pop()
 It does not require any parameter.

 unshift()-
 This method is used to add element at the starting of an array.
 Ex- ar.unshift()
 In this function we can pass parameter.

 shift()-
 This method is used to remove element from starting of an array.
 Ex- ar.shift()
 It also does not require any parameter.

 splice()-
 This method is used to add element at any specific element in an
array.
 It has 3 parameters:
a) Position number where we want to add value.
b) Give number which shows that how many element we want
to delete from the above given position number.
c) The value which we want to add.
 Ex- ar.splice(2,1,”abcd”)

 slice()-
 This method is used to pick elements from an array by using index
number.
 It has two points- the starting point and the ending point.
 Ex- ar.slice(2,4)
DAY-9

DOM ARCHITECTURE IN JAVASCRIPT:

 DOM stands for Document Object Model.


 It is a programming interface for web documents i.e.,
for HTML and XML documents.
 It represents the page so that programs can change the
document structure, style, and content.
 It defines the logical structure of documents and the way a
document is accessed and manipulated.
 It is also known as programming API for HTML and XML.
DAY-10

EVENTS IN JAVASCRIPT:

 Events are actions or occurrences that happens in the system.


 JavaScript has events that provide a dynamic interface to a
webpage.
 There are different types of events used in JavaScript-
a) Onclick-
 This event tells us that whenever we click on the object
where the event called, it performs a specific task.
 Ex- <input type=”button” value=”Enter” onclick=”ch()”>
 In the above example the click event will apply on the enter
button.

b) Onkeypress-
 This event will apply when we press any key one that object
where the event called.
 Ex- <input type=”text” id=”t2” onkeypress=”ch()”>
 In the above example the event will happen only in the
textbox which has id=”t2”.

c) Onkeydown-
 This event will occur in the object when we press the PgDn
key on that object where the event called.
 Ex- <input text=”text” id=”t1” onkeydown=”ch()”>
 In the above example the event will only occur when the
user presses the PgDn key in the textbox which has id=”t1”.

d) Onresize-
 This event will occur when the browser window has been
resized.
 Ex- <body onresize=”ch()”>

e) Onmousemove-
 This event will occur when we move the mouse or cursor in
that object where the event is called.
 Ex- <input type=”text” id=”t2” onmousemove=”ch()”>
 In the above example the event will occur when the user
move the cursor in the textbox which had id=”t2”.

f) Onmouseout-
 This event will occur when we move the mouse or cursor
away or out from the object where the event called.
 Ex- <input type=”text” id=”t1” onmouseout=”ch()”>
 In the above example the event will occur when the user
move the cursor away from the textbox which has id=”t1”.

g) Onload-
 This event can apply to launch a particular function when
the page is fully loaded or displayed.
DAY-11

MY SQL:
 My SQL is a database management system (DBMS).
 It is a part of backend used in any programming language.
 It is used to create a database and store data in the form of
tables.

HOW TO CREATE A DATABASE USING


MYSQL: STEPS-

1. Install XAMPP and start Apache and MySQL.

2. Open Command Prompt and write commands as-

C:\Users\user>cd/
C:\>cd xampp
C:\xampp>cd mysql C:\
xampp\mysql>cd bin
C:\xampp\mysql\bin>mysql -u
root Note- by default username is root.
3. Then create database as-
create database jwc;
Note- here jwc is the database name.
4. Then create table as-
First use dtabase- use jwc;
Then create table as- create table stud(roll int primary key,name
text(50),phno bigint(25),address varchar(50));
Note- here stud is the table name created inside the database jwc.
5. To display the structure of the table, write command as-
desc stud;

6. Insert values in the table-


insert into stud values(1,'khushi',6205017799,'bistupur');
7. Display the data present in the table-
select * from stud;

TYPES OF KEYS USED IN MYSQL-


a) Primary Key-
Primary key is a single or combination of the field, which is used to
identify each record in a table uniquely.
It does not have any duplicate value.
If the column contains primary key constraints, then it cannot be null or
empty.
A table can contain only one primary key.

b) Foreign Key-
Foreign key is a field in one table, that refers to the primary key of
another table.
This key is used to link one table into another table.
The table contains the foreign key known as child table and the table
contains the primary key is known as parent table.

OPERATIONS IN MY SQL-
a) Create-
Ex- create database
jwc(database_name); create table
stud(table_name);

b) Select-
Ex- select * from stud;
select phno(field_name) from stud where roll=3(field_name);

c) Update-
Ex- update stud set phno(field_name)=1234567890 where
roll(field_name) is 2;

d) Delete-
Ex- delete from stud where roll(field_name)=1;
DAY-12

JAVA-

Java is an object oriented programming language which is developed by Sun Microsystem . That produces software for
multiple platforms . When a programmer writes a Java application , the compiled code (known as bytecode) runs on most os ,
including , window , linux & Mac Os .Java is a popular programming language, created in 1995. It is used for Mobile
applications (specially Android apps) , Desktop applications , Web applications , Web servers and application servers ,
Games , Database connection .
Note : file name and java main class should be same and every code should be inside main class . java is case-sensative
lang .
Create file as filename.java
Syntax :
1. Public class filename{
2. Public static void main(String[] args){
3. System.out.println(“…….”);
4. }
5. }
Explanation :
Line 1 : public keyword made java class accessible easily to every other java program , class keyword use to
declare class with its name , { indicate stating of class body .
Line 2 : public keyword make main method accessible , static keyword indicate that the main merthod is belong to
its respective class , void indicate its return type if use void no return statement is need at the end of code to
terminate it , main() is main method that carries all functionality of its class no prog is cmplt without main method
becoz processing is always done in main method only , String[] args It stores Java command-line arguments and is
an array of type java.lang.String class. Here, the name of the String array is args but it is not fixed and the user can
use any name in place of it. { indicate starting of main method .
Line 3 : System is a built-in Java class that contains useful members, such as out, which is short for "output". The println()
method, short for "print line", is used to print a value to the screen (or a file).
Line 4 : } indicates end of main method body , line 5 : } indicates end of java class body .
Note : to print character , alphabets or statements , symbols , code it inside double quotes (“ “) but to print numbers and variable no
need to use double quotes , to concatenate two statements or numbers use + sign .
To comment out statement use :
// for single line comment and /* ….. */ for multi line comments
Variable syntax : type variablename = value ;
Data types : int , float , double , char , Boolean , long
Operators :- Arithmetic operators : + , - , * , / , % , ++ , --
Assignment operators : = , += , -= , *= /= , %= ,&= , |= , >>= , <<=
Comparison operators : == , != , > , < , >= , <=
Logical operators : && , || , !
User Input :
syntax : import.java.util.* or import.java.util.Scanner ;
Public class classname {
Public static void main(String[] args){
Scanner objectname = new Scanner(System.in);
System.out.println(“Enter Statement : “ ):
Datatype variablename = objectname.nextDatatypeName ; } }
Important Points About Java Scanner Class

 To create an object of Scanner class, we usually pass the predefined object System.in, which represents the
standard input stream. We may pass an object of class File if we want to read input from a file.

 To read numerical values of a certain data type XYZ, the function to use is nextXYZ(). For example, to read a value
of type short, we can use nextShort()

 To read strings, we use nextLine().

 To read a single character, we use next().charAt(0). next() function returns the next token/word in the input as a
string and charAt(0) function returns the first character in that string.
 The Scanner class reads an entire line and divides the line into tokens. Tokens are small elements that have some
meaning to the Java compiler. For example, Suppose there is an input string: How are you
In this case, the scanner object will read the entire line and divides the string into tokens: “How”, “are” and “you”. The
object then iterates over each token and reads each token using its different methods.

Maths : The Java Math class has many methods that allows you to perform mathematical tasks on numbers.
Math.max(value1 , value2) , Math.min(value1 , value2) , Math.sqrt(value) , Maths.abs(value) and much more .

String :
A String variable contains a collection of characters surrounded by double quotes
Syntax : String variablename = “value”;
variablename.length() to identify string length , variablename.toUpperCase() to convert string in capitalized letter ,
variablename.toLowerCase() to convert string in small letter and much more .
String Methods

Syntax of Above Methods : let strings are str & str2 ,


i. str.charAt(index);
ii. str.codePointAt(index);
iii. str.compareTo(str2);
iv. str.concat(str2);
v. str.contains(“…..”);
vi. str.endsWith(“…..”);
vii. str.equals(str2);
viii. str.codePointCount(startIndex , endIndex);
ix. str.hashCode();
x. str.indexOf(“……”);
xi. str.isEmpty( );
xii. str.join(“……” , “…….” , ”……”);
xiii. str.LastIndaexOf(“……”);
xiv. str.length( );
xv. str.replace(“existCharacter” , “newCharacter” );
xvi. str.startsWith(“ …… “);
xvii. str.toCharArray( );
xviii. str.toLowerCase( );
xix. str.toUpperCase( );
xx. str.toString( );
xxi. str.trim( );
xxii. str.valueOf( );
Condition Statements :
If :
Syntax : if(condition){ statement…. }
Nested if :
Syntax: if(condition1){
If(condition2){ statement….}
}
If…else :
Syntax : if(condition){ statement…. }
else{ statement….}
if…..else if ….. else :
syntax : if(condition1){ statement…. }
else if (condition2){ statement….}
else{ statement….}
ternary operators :
syntax : variable = (condition) ? expressionTrue : expressionFalse;

switch case :
syntax : switch(expression) {
case x:
statement
break;
case y:
statement
break;
default:
statement
}
Note : break keyword used to jump out from whole condition or loop but continue keyword to its specific condition or loop
and again continue from true condition and loop .
Looping :
Loops can execute a block of code as long as a specified condition is reached.
While loop :
Syntax : initialize variable
while (condition){
Statement….
Increment/decrement }
Do-While loop :
Syntax : initialize variable
do{ statement …
increment/decrement
} while(condition)
For Loop :
Syntax : for(initialize variable , condition , increment/decrement ){
Statement … }
Array : Arrays are used to store multiple values of same datatype in a single variable .
Syntax : datatype[] variablename = { value1 , value2, ……. , valueN};
For check array length : variablename.length
For display array element : for(initialize loop limits , condition , increment/decrement ){
System.out.println(variablename[i]); }
For each-loop : syntax : for ( datatype variablename : arrayname ){
System.out.println(variablename): }
Here variable name work as index of array .
Multidimentional array :
Syntax : datatype[][] variablename = { { value1 , value2 , …..,valueN } , {valueA , valueB , …. , valueN}};
Access element :
Syntax : for(initialise row limit , condition , increment/decrement ){
For(initialise column limit , condition , increment/decrdement ){
System.out.println(arrayname[row][column]);}}

User defined array :


Public class className{
Public static void main(String[] args){
Scanner sc = new Scanner(System.in);
System.out.println("Enter no.of array element :\n");
int n = sc.nextInt();
int[] a = new int[10];
int i;

System.out.println("Enter number :");


for(i=0 ; i<n ; i++){
a[i]=sc.nextInt();
}

System.out.println("Array elements :");


for(i=0 ; i<n ; i++){
System.out.println(a[i]);
}
sc.close();
}}
CONCLUSION
The Industrial Training period at Adityapur
Auto Cluster was fill with knowledge.
During this period, I learnt many useful
concepts which will also help me a lot
in my upcoming future projects. Such a
great experience I got in this training
period. It was quite a learning period
where I got some basic knowledge that
how a website can be created and how
does it works.Overall the training period
is about gaining knowledge,understanding
the concepts, boosts confidence, and
many more.

You might also like