Difference between revisions of "Spring 2020: Programming in Java Lab"

From MKWiki
Jump to navigation Jump to search
Line 33: Line 33:
  
  
== '''Lab 2:''' ( week of 22nd January 2020 ) ==
+
== '''Lab 2:''' ( week of 15th January 2020 ) ==
 
* Brief introduction to Java Basic Building Blocks [http://mkbhandari.com/mkwiki/data/spring2020/Lab01.pdf '''Download''']
 
* Brief introduction to Java Basic Building Blocks [http://mkbhandari.com/mkwiki/data/spring2020/Lab01.pdf '''Download''']
  
Line 51: Line 51:
 
|-
 
|-
 
| 3 || WAP to check whether the given number is prime or not || Lab Exercise No. 6 ||
 
| 3 || WAP to check whether the given number is prime or not || Lab Exercise No. 6 ||
 +
|}
 +
 +
== '''Lab 3:''' ( week of 22nd January 2020 ) ==
 +
* Brief introduction to Java Basic Building Blocks [http://mkbhandari.com/mkwiki/data/spring2020/Lab01.pdf '''Download''']
 +
 +
{| class="wikitable" style="text-align: left; width: 100%";
 
|-
 
|-
| 4 || WAP to print the following pattern using nested for loop:<br>
+
! Q. NO. 
*<br>
+
! Program 
*  *<br>
+
! Lab Exercise No. 
*  *  *<br>
+
! Remarks
*  *  *  *
+
|-
|| Practice Set L1 ||
+
| style="width: 8%"  | 1
 +
| style="width: 60%" | WAP to find the sum of any number of integers entered as command line argument
 +
| style="width: 15%" | Lab Exercise No. 1
 +
|
 +
|-
 +
| 2 || WAP to find the factorial of a given number || Lab Exercise No. 2 ||
 +
|-
 +
| 3 || WAP to check whether the given number is prime or not || Lab Exercise No. 6 ||
 
|}
 
|}
  
== '''Lab 3:''' ( week of 15th January 2020 ) ==
+
== '''Lab 4:''' ( week of 29th January 2020 ) ==
 
* Brief introduction to Java Basic Building Blocks [http://mkbhandari.com/mkwiki/data/spring2020/Lab01.pdf '''Download''']
 
* Brief introduction to Java Basic Building Blocks [http://mkbhandari.com/mkwiki/data/spring2020/Lab01.pdf '''Download''']
  
Line 78: Line 91:
 
|-
 
|-
 
| 3 || WAP to check whether the given number is prime or not || Lab Exercise No. 6 ||
 
| 3 || WAP to check whether the given number is prime or not || Lab Exercise No. 6 ||
|-
 
| 4 || WAP to print the following pattern using nested for loop:<br>
 
*<br>
 
*  *<br>
 
*  *  *<br>
 
*  *  *  *
 
|| Practice Set L1 ||
 
 
|}
 
|}

Revision as of 23:40, 14 January 2020

  • Instructions
    • Please be on time to avoid the attendance penalty.
    • Turn off(shutdown) your assigned computer after finishing your work (or before you leave the lab).
    • Please arrange the chair in proper place while leaving the lab.
    • Please put your phone in silent mode.

Lab 1: Getting Started ( week of 8th January 2020 )

  • Brief introduction to Java Basic Building Blocks Download
Q. NO. Program Lab Exercise No. Remarks
1 WAP to find the sum of any number of integers entered as command line argument Lab Exercise No. 1
2 WAP to find the factorial of a given number Lab Exercise No. 2
3 WAP to check whether the given number is prime or not Lab Exercise No. 6
4 WAP to print the following pattern using nested for loop:
*
* *
* * *
* * * *
Practice Set L1


Lab 2: ( week of 15th January 2020 )

  • Brief introduction to Java Basic Building Blocks Download
Q. NO. Program Lab Exercise No. Remarks
1 WAP to find the sum of any number of integers entered as command line argument Lab Exercise No. 1
2 WAP to find the factorial of a given number Lab Exercise No. 2
3 WAP to check whether the given number is prime or not Lab Exercise No. 6

Lab 3: ( week of 22nd January 2020 )

  • Brief introduction to Java Basic Building Blocks Download
Q. NO. Program Lab Exercise No. Remarks
1 WAP to find the sum of any number of integers entered as command line argument Lab Exercise No. 1
2 WAP to find the factorial of a given number Lab Exercise No. 2
3 WAP to check whether the given number is prime or not Lab Exercise No. 6

Lab 4: ( week of 29th January 2020 )

  • Brief introduction to Java Basic Building Blocks Download
Q. NO. Program Lab Exercise No. Remarks
1 WAP to find the sum of any number of integers entered as command line argument Lab Exercise No. 1
2 WAP to find the factorial of a given number Lab Exercise No. 2
3 WAP to check whether the given number is prime or not Lab Exercise No. 6