0% found this document useful (0 votes)
28 views14 pages

Internship Report

Uploaded by

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

Internship Report

Uploaded by

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

Table of Contents

1. Introduction
2. Internship Objectives
3. Tasks and Responsibilities
4. Technologies and Tools Used
5. Key Projects and Contributions
6. Learning Outcomes
7. Challenges and Problem-Solving Approaches
8. Conclusion
Introduction

As a Java Development Intern at CODTECH IT


SOLUTION I was responsible for developing small
applications to improve my Java programming skills and
gain practical experience in software development. This
report documents the two main tasks completed during
the internship: a basic calculator and a student grades
management system.
Internship Objectives

The objectives of this internship were to:


➢ Develop a solid understanding of Java programming
and object-oriented concepts.
➢ Apply Java fundamentals to solve real-world
problems.
➢ Improve problem-solving skills through hands-on
projects.
➢ Learn basic data management and processing
techniques.
Tasks and Responsibilities

➢ During the internship, I was assigned two primary


tasks:
➢ Creating a BASIC CALCULATOR PROGRAM in
Java.
➢ Developing a program to TRACK AND MANAGE
STUDENT GRADES .
Technologies and Tools Used

To complete these tasks, I used:


➢ Programming Language : Java
➢ IDE : IntelliJ IDEA for coding and testing
➢ Version Control : Git for code management and
collaboration
➢ Java Libraries : Standard Java libraries for
input/output operations and mathematical
calculations
Key Projects and Contributions

➢ Task One: Simple Calculator


➢ Objective : To develop a basic calculator program that
prompts the user for two numbers, allows the user to
select an arithmetic operation (addition, subtraction,
multiplication, or division), and then displays the
result.

➢ Implementation:
1. Used the `Scanner` class to accept input from the user
for two numbers and the operation choice.
2. Implemented a basic `switch` statement to handle
different operations and return the result.
3. Included error handling for division by zero to ensure
program reliability.
CODE SAMPLE :

import java.util.Scanner;

public class SimpleCalculator {


public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);

System.out.print("Enter first number: ");


double num1 = scanner.nextDouble();

System.out.print("Enter second number: ");


double num2 = scanner.nextDouble();

System.out.print("Choose operation (+, -, *, /): ");


char operation = scanner.next().charAt(0);

double result;
switch (operation) {
case '+':
result = num1 + num2;
break;
case '-':
result = num1 - num2;
break;
case '*':
result = num1 * num2;
break;
case '/':
if (num2 != 0) {
result = num1 / num2;
} else {
System.out.println("Error: Division by zero is
undefined.");
return;
}
break;
default:
System.out.println("Invalid operation.");
return;
}
System.out.println("Result: " + result);
}
}
➢ Task Two: Student Grades Management System

➢ Objective : To develop a program that allows users to


input student grades for different subjects, calculate
the average grade, and display an overall grade,
including letter grades.

➢ Implementation:
1. Used an array to store grades entered by the user.
2. Calculated the average by summing the grades and
dividing by the number of subjects.
3. Assigned letter grades based on the calculated average.
4. Displayed the results along with additional information
like GPA.
CODE SAMPLE :
import java.util.Scanner;

public class StudentGradesManager {


public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Enter number of subjects: ");
int subjects = scanner.nextInt();

double[] grades = new double[subjects];


double total = 0;

for (int i = 0; i < subjects; i++) {


System.out.print("Enter grade for subject " + (i + 1) + ": ");
grades[i] = scanner.nextDouble();
total += grades[i];
}

double average = total / subjects;


char letterGrade;

if (average >= 90) {


letterGrade = 'A';
} else if (average >= 80) {
letterGrade = 'B';
} else if (average >= 70) {
letterGrade = 'C';
} else if (average >= 60) {
letterGrade = 'D';
} else {
letterGrade = 'F';
}

System.out.println("Average Grade: " + average);


System.out.println("Letter Grade: " + letterGrade);
}
}
Learning Outcomes

This internship allowed me to:


➢ Enhance my skills in Java programming and problem-
solving.
➢ Practice using basic programming concepts like
control structures, arrays, and user input.
➢ Develop a deeper understanding of arithmetic
operations and data handling.
➢ Improve my ability to structure code and follow
programming best practices.
Challenges and Problem-Solving Approaches

Throughout the internship, I encountered several


challenges:
➢ Error Handling: Handling division by zero in the
calculator required understanding Java’s exception-
handling mechanisms and adding conditions to
prevent errors.
➢ Input Validation: Ensuring valid grades and valid
inputs involved writing additional code for input
validation and testing the program for robustness.
➢ Project Structuring: As a beginner, structuring projects
into methods and understanding how to separate
functionalities was challenging, but with practice, I
gained confidence in modularizing code.
Conclusion

My internship experience at CODTECH IT SOLUTIONS was


incredibly rewarding. I gained practical experience in Java
programming and problem-solving and developed my
understanding of how to structure basic applications. I am
grateful for the guidance provided by my supervisor and
teammates, which allowed me to complete these tasks
successfully and build a solid foundation in Java
development.

You might also like