Page 105 - 2617_JSSPS_C-6
P. 105

Explore in the Lab                               21 st  Century   #Critical Thinking
                                                                               Skills
                                                                                   #Creativity
                  To
                  Subject  Program Coding
                   1.  Write a Java program to display your Name and Roll Number on the terminal.

                   2.  Write a Java program to display the names of five students in separate lines.
                   3.  Write a Java program to calculate the sum of marks in 5 subjects.
                   4.   Write a Java program to calculate simple interest. SI = (P * r * t ) / 100 where P is for the principal
                      amount, r is for the rate of interest, and t is for time duration. Take all the values from the user.
                   5.   Write a Java program to take the basic salary of an employee as input from the user and calculate the
                      net salary based on the criteria given below:
                        Net salary = basic salary + incentive

                        Incentive = 7 % of the basic salary



                For The Teacher
                    Talk about the various programming languages.
                    Discuss the features of Java and how they contribute to make Java a strong programming language.






















































                                                                              Introduction to Programming in Java  103
   100   101   102   103   104   105   106   107   108   109   110