Lecture: 4 Theory: Java basic (Escape sequences, Operators & their precedence, Math class). Looping in java (do while), Switch case. Programming: Basic programs: WAP to accept marks of n subject and print the average. WAP to print the factorial of a given no. WAP to print ASCII value of a given digit or alphabet or special character. WAP to input two number and print quotient and remainder. WAP to input a character and print the next three characters. WAP to input a digit and print its reverse. Program using Math class: WAP to read a no. n and print n^2, n^3 and n^5. WAP to create a Guessing game using three player. Program using Switch case WAP to input choice (1 or 2). If choice is 1, print the area of the circle otherwise print the perimeter of circle. Accept the radius from the user. WAP to perform arithmetic calculation using switch. This program inputs two operands and a choice and then display the calculated result.
Lecture: 4
Page 1 ... WAP to print ASCII value of a given digit or alphabet or special character. WAP to input two ... WAP to create a Guessing game using three player.