Internship Report
Internship Report
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
➢ 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;
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
➢ 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;