In this video, building logic of two programs is explained in the java environments. First program is on denomination and second one is checking validity of the date of birth entered by the user.
Link to the Book - Essentials of Computer Applications:
https://www.amazon.in/Essentials-Comp...
Practice exercise Programming logic 9:
1. Read/initialize two arrays and find the intersection of the arrays.
First contains: 4 3 5 2 7 8
Second contains: 8 6 1 2 9 3 12
Then intersection of First and Second is: 3 2 8
Print all three arrays.
2. Find the missing number in the following array:
Array contains {5,1,4,2,3,7,10,9,6,8,12};
Formula is: sum 1 = (len * (len+1))/2
Hint: if one number is missing then length would be current length +1.
Sum 2 = sum of all the elements in the array
Sum1 – sum 2 will be the missing element