Java | JSP | JSF Answers

Questions: 4 418

Answers by our Experts: 3 943

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Draw a flowchart that uses while loops for the following steps:

a. Prompt the user to input two integers: firstNum and secondNum. (firstNum must be less than 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.

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


Write a Java program to display the three top sales made by employees of an organization. The
rows and columns represent the sales made by each employee identified by their employee
number.
SALES 1 SALES 2 SALES 3
101111 R 3 000 R 2 000 R 3 500
101122 R 2 500 R 5 500 R 3 500
101133 R 1 100 R 2 000 R 4 500
101144 R 1 700 R 2 700 R 2 500
101155 R 5 000 R 2 900 R 5 900
Using a Two Dimensional array produce the employee sales report, and the total sales made by
each employee.
Write a Java program to display the three top sales made by employees of an organization. The
rows and columns represent the sales made by each employee identified by their employee
number.
SALES 1 SALES 2 SALES 3
101111 R 3 000 R 2 000 R 3 500
101122 R 2 500 R 5 500 R 3 500
101133 R 1 100 R 2 000 R 4 500
101144 R 1 700 R 2 700 R 2 500
101155 R 5 000 R 2 900 R 5 900
Using a Two Dimensional array produce the employee sales report, and the total sales made by
each employee.

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.


LATEST TUTORIALS
APPROVED BY CLIENTS