0% found this document useful (0 votes)
73 views5 pages

Reading Input by Creating An Object of Scanner Class:: Experiment No. 1

Anuj Kundar completed a Java lab experiment on September 7, 2021 under the supervision of Professor Vidya Shet. The experiment demonstrated using the Scanner class to read input and System.out.println to output results. It showed how to read integer, string, and double values as input and use delimiters. The experiment also included a program to calculate gross and net salary based on employee number, name, basic salary and deductions for DA, HRA, CCA, PF, and PT.

Uploaded by

Anuj Kundar
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)
73 views5 pages

Reading Input by Creating An Object of Scanner Class:: Experiment No. 1

Anuj Kundar completed a Java lab experiment on September 7, 2021 under the supervision of Professor Vidya Shet. The experiment demonstrated using the Scanner class to read input and System.out.println to output results. It showed how to read integer, string, and double values as input and use delimiters. The experiment also included a program to calculate gross and net salary based on employee number, name, basic salary and deductions for DA, HRA, CCA, PF, and PT.

Uploaded by

Anuj Kundar
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/ 5

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

You might also like