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.
1a.Write a program to input 10 integer numbers into an array named fmax and determine the maximum value entered. Your program should contain only one loop and the maximum should be determined as array element values are being input. (Hint: Set the maximum equal to the first array element, which should be input before the loop used to input the remaining array values.)
b. Repeat 1a, keeping track both the maximum element in the array and the index number for the maximum. After displaying the numbers, print these two messages
The maximum value is: _______
This is element number _______ in the list of numbers.
Have your program display the correct values in place in the underlines in the messages.
c. Repeat 1b, but have your program locate the minimum of the data entered.
Given any whole number from user input, check whether it’s a positive or negative number. If the number is negative then increment it by 3 and multiply the result by 4, however if it’s a positive number then decrement by 4 and multiply it by 3. a) Create a flowchart to be followed to solve the above task b) Create a java program using your flowchart.
Which of the language listed below is not a High-level programming language?
Select one:
a.
MASM
b.
C#
c.
Python
d.
Ruby