Internship Report1
Internship Report1
Submitted By
Mr.Krunal Atul Moharkar.
Guided by
Prof. U. A. Bagde
Computer Engineering Department
Department of Computer Engineering
Government College Of Engineering,
Yavatmal
2019-2020
Government College Of Engineering,
Yavatmal
Department of Computer Engineering
2019-2020
CERTIFICATE
Sincerely
Student,
GCOEY
INDEX
➢ INTRODUCTION…..
➢ INTERNSHIP CERTIFICATE…..
➢ ABSTRACT…..
JAVA:
o 1st WEEK…..
o 2nd WEEK…..
o Awt tasks....
PYTHON:
○ 3rd WEEK…..
○ 4th WEEK…..
○ Description ....
➢ WHAT I LEARNED…..
➢ CONCLUSION…..
INTRODUCTION
CONTACT:
NAGPUR-440010.
E-Mail:[email protected]
ABSTRACT
Day Topic
Day-9 Inheritance
Day- Polymorphism
10
Day- Interfaces
11
Day- Packages
12
Day- AWT
15
AWT TASKS
import java.awt.event.*;
super(title);
setLayout(new GridLayout(2,2));
p1 = new Panel();
p2 = new Panel();
p3 = new Panel();
p4 = new Panel();
b1 = new Button("HAND");
b2 = new Button("Default");
b3 = new Button("TEXT");
b4 = new Button("NE");
t1 = new TextField(10);
t2 = new TextField(10);
t3 = new TextField(10);
t4 = new TextField(10);
b1.setForeground(Color.RED);
b1.setBackground(Color.YELLOW);
p1.add(b1);
p1.add(t1);
p2.add(b2);
t2.setForeground(Color.BLUE);
p2.add(t2);
p3.add(b3);
p3.add(t3);
p4.add(b4);
p4.add(t4);
b1.addActionListener(this);
b2.addActionListener(this);
b3.addActionListener(this);
b4.addActionListener(this);
if(e.getSource() == b2)
setCursor(Cursor.DEFAULT_CURSOR);
t1.setText("DEFAULT");
t2.setText("DEFAULT");
t3.setText("DEFAULT");
t4.setText("DEFAULT");
if(e.getSource() == b3)
setCursor(Cursor.TEXT_CURSOR);
t1.setText("TEXT");
t2.setText("TEXT");
t3.setText("TEXT");
t4.setText("TEXT");
if(e.getSource() == b4)
setCursor(Cursor.NE_RESIZE_CURSOR);
t1.setText("NE");
t2.setText("NE");
t3.setText("NE");
t4.setText("NE");
s.setBounds(50,100,400,600);
s.setVisible(true);
Output –
Eg3:adding drop down list using awt on
window
import java.awt.*;
class awt10 extends Frame
{
public Label lbl;
public Choice Fruits;
public awt10(String title)
{
super(title);
lbl = new Label("Name of Fruits");
Fruits = new Choice();
Fruits.add("Orange");
Fruits.add("Banana");
Fruits.add("Apple");
setLayout(new FlowLayout());
add(lbl);
add(Fruits);
}
public static void main(String args[])
{
awt10 s = new awt10("ANGEL");
s.setSize(500,500);
s.show();
}}
Output:
import java.awt.*;
class awt9 extends Frame
{
public Label lbl;
public Checkbox Gard,Music,Reading;
public awt9(String title)
{
super(title);
lbl = new Label("Hobbies");
Gard = new Checkbox("Gardening",false);
Music = new Checkbox("Music",false);
Reading = new Checkbox("Reading",true);
setLayout(new FlowLayout());
add(lbl);
add(Gard);
add(Music);
add(Reading);
}
public static void main(String args[])
{
awt9 s = new awt9("angel");
s.setSize(500,500);
s.show();
}
}
Output:
Week wise learning contents:
Day Topic
Day-7 Functions
Day-9 Files
Description:
Day-1: Introduction to Python Development Environment- Anaconda-
Anaconda is a free and open-source distribution of the Python programming language
for scientific computing (datascience, machine learning applications, large-scale data
processing, predictive analytics, etc.), that aims to simplify package management and
deployment.
Anaconda Navigator
Anaconda Navigator is a desktop graphical user interface (GUI) included in Anaconda
distribution that allows users to launch applications and manage conda packages,
environments and channels without using command-line commands, Navigator can
search for packages on Anaconda Cloud or in a local Anaconda Repository, install them
in an environment, run the packages and update them. It is available
for Windows, macOS and Linux.
[11]
The following applications are available by default in Navigator :
JupyterLab
Jupyter Notebook
QtConsole
Spyder
Glueviz
Orange
Rstudio
Visual Studio Code
the if-statement
For conditionals Python uses the if-statement, with the following syntax:
if expression:
1.
2.code_block
If the expression is true, then the (indented) code block is executed. If not the block is
ignored. Let's look at an example:
1.>>> x = 1 # variable assignment
2.>>> if x > 0:
3.... print "x is greater then 0"
4....
5.x is greater then 0
The if-statement can be also combined with an elif-statement, that allows you to choose
from different options:
1.if expression1:
2. code_block
3.elif expression2:
4. code_block
5.elif expression3:
6. code_block
7....
An example:
1.>>> x = 15
2.>>> if x < 10:
3.... print "x is smaller then 10"
4.... elif x < 20:
5.... print "x is smaller then 20"
6....
7.x is smaller then 20
Arithmetic Operators
Comparison (Relational) Operators
Assignment Operators
Logical Operators
Bitwise Operators
Membership Operators
Identity Operators
Boolean:
Boolean values are the two constant objects False and True. They are used to
represent truth values (other values can also be considered false or true). In numeric
contexts (for example, when used as the argument to an arithmetic operator), they
behave like the integers 0 and 1, respectively.
Loops:
For loop:
fruits = ["apple", "banana", "cherry"]
for x in fruits:
print(x)
while loop:
i=1
while i < 6:
print(i)
i += 1
Day-4: String, tuples and its operations-
A tuple is a collection which is ordered and unchangeable. In Python tuples are written
with round brackets.
Example
Day 7:function-
A function is a block of organized, reusable code that is used to perform a single,
related action. Functions provide better modularity for your application and a high
degree of code reusing.
def functionname( parameters ):
"function_docstring"
function_suite
return [expression]
● Time Management
As overall technician and programmer are always racing against tight
timeline and packed schedule, a proper time management will minimize
facing overdue deadlines. An effective time management allows us to do
our assignment efficiently and meet our schedules. Scheduling avoids time
wastage and allows us to plan ahead, and gaining more as a result.
● Goal Management
Opposing to a Herculean goal seemed to be reachable at first sight, it is
better to subdivide the goals to a few achievable tasks, so that we will be
gaining more confidence by accomplishing those tasks.
● Colleague Interactions
In the working environment, teamwork is vital in contributing to a strong
organization. Teamwork is also essential in reaching the goals of the
organization as an entity. Thus, communicating and sharing is much
needed in the working environment. Therefore, we should be respecting
each other in work, and working together as a team, instead of working
alone. This is because working together as a team is easier in reaching our
targets, rather than operating individually.