0% found this document useful (0 votes)
5 views

Exp 1.1 Java

The document outlines a performance evaluation for a student named Shivam Anand in the CSE branch, focusing on two programming experiments in Java. The first experiment involves creating a multiplication table based on user input, while the second experiment calculates a series based on user-defined values. The evaluation includes learning outcomes and an assessment grid with marks obtained in various parameters.

Uploaded by

amanbhati9528
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Exp 1.1 Java

The document outlines a performance evaluation for a student named Shivam Anand in the CSE branch, focusing on two programming experiments in Java. The first experiment involves creating a multiplication table based on user input, while the second experiment calculates a series based on user-defined values. The evaluation includes learning outcomes and an assessment grid with marks obtained in various parameters.

Uploaded by

amanbhati9528
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Student Name Shivam Anand Branch CSE

UID 21BCS3276 Secton/ 21BCS-610 A


Group
Date of
Performance 17-August-2022 Subject OOPs using
Name Java
Semester 3rd Subject Code 21CSH-218

Experiment Number :
1.1

AIM OF THE EXPERIMENT :- Write a program to print table by taking input from the
user. In the form of “2 x 1 = 2”.

Objective :-We will be able to learn & implement different types of loops.

Source Code:
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.regex.*;

public class Solution {


public static void main(String[] args) throws IOException {
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in
));

int N = Integer.parseInt(bufferedReader.readLine().trim());
for( int i=1;i<=10;i++)
{
System.out.println(N+" x "+i+" = "+i*N);
}

bufferedReader.close();
}
}

Output:

Code Link: https://github.com/ShivamAnand26/OOPs-Using-


Java/blob/d652d38e704170373ff4eb17217c23b39e349bf8/Exp%201.1
AIM OF THE EXPERIMENT :- Write a program to print in the form of (a+20b),
(a+20b+21b), ……, (a+20b+21b+…..+2n-1b), where the values of a & b are taken from the
user.

Source Code:
import java.util.*;
import java.io.*;
import java.lang.Math;

class Solution{
public static void main(String []argh){
Scanner in = new Scanner(System.in);
int t=in.nextInt();
int d=0;

for(int i=0;i<t;i++){
int a = in.nextInt();
int b = in.nextInt();
int n = in.nextInt();
for ( int j=1;j<=n;j++)
{
d = (int)Math.pow(2,j);
int c = a + b*(d-1);

System.out.print(c+" ");
}
System.out.println();

}
in.close();
}
}
Output:

Code Link: https://github.com/ShivamAnand26/OOPs-Using-Java/blob/main/Exp%201(b)

Learning outcomes (What I have learnt):


1. Understand the basic concepts of Java.

2. Learnt about the loops & syntax of it.

3. Learnt about the math library & power function.

Evaluation Grid :
Sr. No. Parameters Marks Obtained Maximum Marks
1. Student Performance 12
(Conduct of experiment)
objectives/Outcomes.
2. Viva Voce 10
3. Submission of Work Sheet 8
(Record)
Total 30

You might also like