Your program should first greet the player and then offer him/her to enter Rock, Paper, or Scissors option. The player should enter one of the three. You need to check that the player always enters one of the correct options. If she enters a wrong option you should ask her to try again.
Next, the computer randomly “picks” rock, paper or scissors as well, and the program prints out the result according to the rules of the game.
The program should also keep the overall score and print it out after each game.
After each game, the program should ask the player if she wants to continue. If the player says “yes” the game continues in the same manner.
Explain static variable, object variable, instance variable with example
Explain constructor with argument and without argument
Explain constructor with examples
Write a menu driven application to Library Management using Java to demonstrate the concept of Inheritance. Your application must contain the following functionalities along with the use of method overriding, and super keyword.
a. The following details must be there for each Book
i. bookTitle
ii. bookAuthor
iii. bookNoOfCopies
iv. bookAvailability
v. bookEdition
vi. bookPublisher
b. Get the Book details from librarian
c. In the menu give options to borrow, return and Search options
Draw a flowchart that uses while loops to perform the following steps:
a. input two integers: firstNum and secondNum.
b. all the odd numbers between firstNum and secondNum inclusive.
c. the sum of all the even numbers between firstNum and secondNum inclusive.
d. all the numbers and their squares between 1 and 10.
e. the sum of the squares of all the odd numbers between firstNum and secondNum inclusive.
Draw a flowchart that to perform the following steps:
a. The user must input two integers: firstNum and secondNum.
b. Output all the odd numbers between firstNum and secondNum inclusive.
c. Output the sum of all the even numbers between firstNum and secondNum inclusive.
d. Output all the numbers and their squares between 1 and 10.
e. Output the sum of the squares of all the odd numbers between firstNum and secondNum inclusive.