Skip to content

Commit a350385

Browse files
arrays assignment
1 parent d7f400a commit a350385

File tree

8 files changed

+105
-1
lines changed

8 files changed

+105
-1
lines changed

assignments/Conditional and Loops.pdf

-68.8 KB
Binary file not shown.

assignments/First Java Program.pdf

-63.8 KB
Binary file not shown.

assignments/Flow of Program.pdf

-61.6 KB
Binary file not shown.

assignments/arrays.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,24 @@
1+
# [Video Link](https://youtu.be/n60Dn0UsbEk)
12

3+
## Submit the following on your Leetcode profile itself.
4+
5+
1. [Build Array from Permutation](https://leetcode.com/problems/build-array-from-permutation/)
6+
2. [Concatenation of Array](https://leetcode.com/problems/concatenation-of-array/)
7+
3. [Running Sum of 1d Array](https://leetcode.com/problems/running-sum-of-1d-array/)
8+
4. [Richest Customer Wealth](https://leetcode.com/problems/richest-customer-wealth/)
9+
5. [Shuffle the Array](https://leetcode.com/problems/shuffle-the-array/)
10+
6. [Kids With the Greatest Number of Candies](https://leetcode.com/problems/kids-with-the-greatest-number-of-candies/)
11+
7. [Number of Good Pairs](https://leetcode.com/problems/number-of-good-pairs/)
12+
8. [How Many Numbers Are Smaller Than the Current Number](https://leetcode.com/problems/how-many-numbers-are-smaller-than-the-current-number/)
13+
9. [Create Target Array in the Given Order](https://leetcode.com/problems/create-target-array-in-the-given-order/)
14+
10. [Check if the Sentence Is Pangram](https://leetcode.com/problems/check-if-the-sentence-is-pangram/)
15+
11. [Count Items Matching a Rule](https://leetcode.com/problems/count-items-matching-a-rule/)
16+
12. [Find the Highest Altitude](https://leetcode.com/problems/find-the-highest-altitude/)
17+
13. [Flipping an Image](https://leetcode.com/problems/flipping-an-image/)
18+
14. [Cells with Odd Values in a Matrix](https://leetcode.com/problems/cells-with-odd-values-in-a-matrix/)
19+
15. [Matrix Diagonal Sum](https://leetcode.com/problems/matrix-diagonal-sum/)
20+
16. [Find Numbers with Even Number of Digits](https://leetcode.com/problems/find-numbers-with-even-number-of-digits/)
21+
17. [Transpose Matrix](https://leetcode.com/problems/transpose-matrix/)
22+
18. [Add to Array-Form of Integer](https://leetcode.com/problems/add-to-array-form-of-integer/)
23+
19. [Maximum Population Year](https://leetcode.com/problems/maximum-population-year/)
24+
20. [Determine Whether Matrix Can Be Obtained By Rotation](https://leetcode.com/problems/determine-whether-matrix-can-be-obtained-by-rotation/)

assignments/conditionals-loops.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# [Video Link](https://youtu.be/ldYLYRNaucM)
2+
## Write Java programs for the following:
3+
4+
### Basic Java Programs
5+
1. Area Of Circle Java Program
6+
2. Area Of Triangle
7+
3. Area Of Rectangle Program
8+
4. Area Of Isosceles Triangle
9+
5. Area Of Parallelogram
10+
6. Area Of Rhombus
11+
7. Area Of Equilateral Triangle
12+
8. Perimeter Of Circle
13+
9. Perimeter Of Equilateral Triangle
14+
10. Perimeter Of Parallelogram
15+
11. Perimeter Of Rectangle
16+
12. Perimeter Of Square
17+
13. Perimeter Of Rhombus
18+
14. Volume Of Cone Java Program
19+
15. Volume Of Prism
20+
16. Volume Of Cylinder
21+
17. Volume Of Sphere
22+
18. Volume Of Prism
23+
19. Curved Surface Area Of Cube
24+
20. Total Surface Area Of Cylinder
25+
21. Fibonacci Series In Java Programs
26+
22. [Subtract the Product and Sum of Digits of an Integer](https://leetcode.com/problems/subtract-the-product-and-sum-of-digits-of-an-integer/)
27+
28+
### Intermediate Java Programs
29+
1. Factorial Program In Java
30+
2. Calculate Electricity Bill
31+
3. Calculate Average Of N Numbers
32+
4. Calculate Discount Of Product
33+
5. Calculate Distance Between Two Points 6. Calculate Commission Percentage
34+
7. Power In Java
35+
8. Deprecation Program
36+
9. Calculate Batting Average
37+
10. Calculate CGPA Java Program
38+
11. Compound Interest Java Program
39+
12. Calculate Average Marks
40+
13. Addition Of Two Numbers
41+
14. Sum Of N Numbers
42+
15. Armstrong Number In Java
43+
16. Find Ncr & Npr
44+
17. Reverse A String In Java
45+
18. Find if a number is palindrome or not 19. Future Investment Value
46+
20. HCF Of Two Numbers Program
47+
21. LCM Of Two Numbers
48+
22. Java Program Vowel Or Consonant 23. Perfect Number In Java
49+
24. Check Leap Year Or Not
50+
25. Sum Of A Digits Of Number

assignments/first-java.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# [Video Link](https://youtu.be/TAtrPoaJ7gc)
2+
3+
## Write Java programs for the following:
4+
5+
1. Write a program to print factorial of a number, also take input.
6+
2. Write a program to print whether a number is even or odd, also take
7+
input.
8+
3. Take name as input and print a greeting message for that name.
9+
4. Write a program to input principle, time and rate (P, T, R) from user and
10+
find Simple Interest.
11+
5. Take in two numbers and an operator (+, -, *, /) and calculate the value.
12+
(Use if conditions)
13+
6. Take 2 numbers as input and print the largest number.
14+
7. Input a number and print all the factors of that number (use loops).
15+
8. Input currency in rupee and output in dollar.
16+
9. Take integer inputs till the user enters 0 and print the sum of all numbers
17+
(HINT: while loop)
18+
10. Take integer inputs till the user enters 0 and print the largest number from
19+
all.

assignments/flow-of-program.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[Video Link](https://youtu.be/lhELGQAV4gg)
2+
3+
## Create flowchart and pseudocode for the following:
4+
5+
1. Input a year and find whether it is a leap year or not.
6+
2. Take two numbers and print the sum of both.
7+
3. Take a number as input and print the multiplication table for it.
8+
4. Take a 2 numbers as inputs and find their HCF and LCM.
9+
5. Keep taking numbers as inputs till the user enters ‘x’, after that print sum
10+
of all.

assignments/functions.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Questions
1+
# [Video Link](https://youtu.be/vvanI8NRlSI)
22

33
1. Define two methods to print the maximum and the minimum number respectively among three numbers entered by user.
44

@@ -34,3 +34,5 @@ Also,
3434
0! = 0
3535

3636
10. Write a function to find if a number if palindrome or not. Take number as parameter.
37+
38+
11. Convert the programs in [flow of program](flow-of-program.md), [conditionals & loops](conditionals-loops.md), [first java](first-java.md) assignemts into functions.

0 commit comments

Comments
 (0)