0% found this document useful (0 votes)
16 views2 pages

Java Exercise I

The document lists a series of programming exercises covering various topics such as statistical calculations, number theory, sorting algorithms, and data handling in Java. It includes tasks like finding means, checking for prime numbers, and manipulating arrays, as well as reading from and writing to CSV and Excel files. The exercises are designed to enhance programming skills and understanding of algorithms and data structures.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views2 pages

Java Exercise I

The document lists a series of programming exercises covering various topics such as statistical calculations, number theory, sorting algorithms, and data handling in Java. It includes tasks like finding means, checking for prime numbers, and manipulating arrays, as well as reading from and writing to CSV and Excel files. The exercises are designed to enhance programming skills and understanding of algorithms and data structures.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

List of Exercise:

1. Find mean and standard deviation


2. Find the ncr and npr
3. Print all prime numbers in the given range
4. Find sum of the digits
5. Check whether a given number is palindrome or not
6. Check whether a given number is prime factor or not.
7. Check whether a given number is perfect number or not
8. Check whether a given number is deficient number or not.
9. Apply any one of the sorting algorithm
10. Number conversion from decimal to binary
11. Distance conversion
12. Write a program to complete and exp(e)
13. Program to compute row sum, column sum and trace of a matrix
14. Write a program called Harmonic Sum to compute the sum of a
harmonic series, as shown below, where n=50000. The program
shall compute the sum from left-to-right as well as from the right-
to-left. Are the two sums the same? Obtain the absolute difference
between these two sums and explain the difference. Which sum is
more accurate?

15. Write a program which prompts user for the number of students
in a class (a non- negative integer), and saves it in an int variable
called num Students. It then prompts user for the grade of each of
the students (integer between 0 to 100) and saves them in an int
array called grades. The program shall then compute and print the
average (in double rounded to 2 decimal places) and
minimum/maximum (in int).
16. Write a progam in java to read the CSV file using Scanner and Split.
17. Write a Java Program to load data from CSV file
18. Write a java program to perform data cleaning in the excel files.
19. Write a Java Program to read Date and String from Excel file in Java?
20. Write a java program to write a content into excel file using BufferedWriter class
in Java?
21. Write a Java program to separate 0s on left side and 1s on right
side of an array of 0s and 1s in random order.
22. Write a Java program to add and remove a specific element from an
array.
23. Write a program called CozaLozaWoza which prints the numbers
1 to 110, 11 numbers per line. The program shall print "Coza" in
place of the numbers which are multiples of 3, "Loza" for multiples
of 5, "Woza" for multiples of 7, "CozaLoza" for multiples of 3 and 5,
and so on. The output shall look like:
1 2 Coza 4 Loza Coza Woza 8 Coza Loza 11
Coza 13 Woza CozaLoza 16 17 Coza 19 Loza CozaWoza 22
23 Coza Loza 26 Coza Woza 29 CozaLoza 31 32 Coza

You might also like