Lesson 38 Programming Logic - Part 7 Calling Methods and Returning, Armstrong, LCM, Reduce Programs

Опубликовано: 01 Январь 1970
на канале: JavaJourneyWithMadhavi
29
3

The programs discussed in this video are: Special two-digit numbers in a range, Armstrong numbers in a range, HCF, LCM and reduce to a lower fraction methods. This video helps in understanding how to call different methods from main method.

Link to the Book - Essentials of Computer Applications:

https://www.amazon.in/Essentials-Comp...


Link to Lesson 33 for Prime Number Program:

   • Lesson 33 User-defined Methods - Part 3  -...  

Link to Lesson 22 for Extracting Digits and Palindrome Programs:

   • Lesson 22 The while loop in Java - Extract...  

Practice Exercise - User-defined Methods:

1. Read a range from user and display all the palindrome numbers in the range.
2. Read a range from user and display all the perfect numbers in the range.
3. Sum = (1 + 2) / (1 × 2) + (1 + 2 + 3) / (1 × 2 × 3)… (1 + 2 + 3 +..N)/(1 × 2 X ×…N)
(Hint: The above program requires 3 methods. One for addition, second for factorial and then the main method which calls both the methods and displays the sum)