XploCode Infotech Private Limited
Intern - Java Basics Tasklist
Day 1
1. Declare variables for a person’s name, age, and salary. Print all values.
2. Declare variables for three subject marks. Calculate and print the total.
3. My name is Rani
My age is 23
My height is 5.4
Write code using variables to produce the above output.
4. Task: Get name, roll number, and department from the user. Display them.
Expected Output :
Enter name: Rahul
Enter roll number: 101
Enter department: CSE
STUDENT DETAILS
***********************
Student Name: Rahul
Roll Number: 101
Department: CSE
5. Task: Get book title, author, and number of pages. Display them.
Expected Output :
Enter book title: Java Basics
Enter author: James
Enter pages: 300
Book Details
~~~~~~~~~
Title : Java Basics
Author : James
Pages : 300