Academic Year: 2021-22 Name of Student:Anuj Kundar
Semester: III Student ID:20104047
Class / Branch: SE IT Date of Performance:07-09-2021
Subject: Java Lab(SBL) Date of Submission:13-09-2021
Name of Instructor: Prof. Vidya Shet Div:A Roll no:42
Experiment No. 1
Aim : Write a Java Program To Demonstrate Scanner & System.out.println
Output :
• Reading Input by creating an object of scanner class :
Output
Subject Incharge: Asst.Prof. Vidya Shet Page 1 Department of Information Technology
• Use of System.out.println :
Java Scanner class which reads the int, string and double value as an input:
Output :
Subject Incharge: Asst.Prof. Vidya Shet Page 2 Department of Information Technology
✔ Use of Delimiter :
Output :
Subject Incharge: Asst.Prof. Vidya Shet Page 3 Department of Information Technology
• Problem Statement :
Implement a java program to calculate gross salary & net salary taking the following
data.
Input: empno, empname, basic
Process:
DA=70% of basic
HRA=30% of basic
CCA=Rs240/-
PF=10% of basic
PT= Rs100/-
PROGRAM :
Subject Incharge: Asst.Prof. Vidya Shet Page 4 Department of Information Technology
OUTPUT :
Subject Incharge: Asst.Prof. Vidya Shet Page 5 Department of Information Technology