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

. Accept names and marks of 10 students from user
b. Ensure that valid data is entered. If user enters an invalid data then appropriate message should be displayed, e.g. “Name cannot be a number” or “Marks must be an integer value”
c. Display this data in descending order according to the marks such that name of the student having maximum marks should be displayed at the top and the name of the student having minimum marks should be displayed at the bottom.
. Create a class named 'Member' having the following members:
Data members [Marks = 03]
1 – Name
2 – Age 3 - Phone number
4 – City 5 – Salary
,Two classes 'Employee' and 'Manager' inherits the 'Member' class. The 'Employee' and 'Manager' classes have data members 'specialization' and 'department' respectively. Now,
(a)- Assign name, age, phone number, city and salary to an employee and a manager by making an object of both of these classes and print the same.
(b)- Add a method to the above class, searchBySpecialization(), which inputs the Specialization from user and print all the Employees with the entered specialization
(c)- Add another method to the above class searchBySalary(), which inputs the two Values of the Salary Minimum and Maximum and then show all the Employees with Salary in the entered range of the Salary and with Age <50.
Write neat and clean Java Code with Classes, Obejcts, Constructors and Overloaded Methods
Design an abstract class GeometricObject with lineColor as data member. GeometricObject must ensure that its children implement calcArea() method. Design Rectangle and Circle classes as children of GeometricObject class with overridden toString() method to return “ Rectangle with ‘w’ width and ‘h’ height is drawn” OR “Circle with ‘r’ radius is drawn”.
- The attribute of Rectangle are length and width
- The attribute of Circle is radius

*Hint:
Area of Circle= πr2
Area of Rectangle=w*l
Design an abstract class GeometricObject with lineColor as data member. GeometricObject must ensure that its children implement calcArea() method. Design Rectangle and Circle classes as children of GeometricObject class with overridden toString() method to return “ Rectangle with ‘w’ width and ‘h’ height is drawn” OR “Circle with ‘r’ radius is drawn”.
- The attribute of Rectangle are length and width
- The attribute of Circle is radius

*Hint:
Area of Circle= πr2
Area of Rectangle=w*l
Write Java Code to input a complete paragraph, as an input. Further, read a single character/letter. Finally, you are required to [Marks = 02]
(a) - Count the number of Words in the paragraph starts with the letter taken as input from the user.
(b)- Display the total number of words in the paragraph
Implement all this scenario using OOP Concepts of Java. Your code should also take care of the exceptions that can occur while dealing with Strings.
Write Java program to [Marks = 03]
a. Accept names and marks of 10 students from user
b. Ensure that valid data is entered. If user enters an invalid data then appropriate message should be displayed, e.g. “Name cannot be a number” or “Marks must be an integer value”
c. Display this data in descending order according to the marks such that name of the student having maximum marks should be displayed at the top and the name of the student having minimum marks should be displayed at the bottom.
a. Accept names and marks of 10 students from user
b. Ensure that valid data is entered. If user enters an invalid data then appropriate message should be displayed, e.g. “Name cannot be a number” or “Marks must be an integer value”
c. Display this data in descending order according to the marks such that name of the student having maximum marks should be displayed at the top and the name of the student having minimum marks should be displayed at the bottom.
Accept names and marks of 10 students from user
. Ensure that valid data is entered. If user enters an invalid data then appropriate message should be displayed, e.g. “Name cannot be a number” or “Marks must be an integer value”
. Display this data in descending order according to the marks such that name of the student having maximum marks should be displayed at the top and the name of the student having minimum marks should be displayed at the bottom
How the compilation process of the Java language is different from that of C++ programming language. Discuss in details.
Accept names and marks of 10 students from user
. Ensure that valid data is entered. If user enters an invalid data then appropriate message should be displayed, e.g. “Name cannot be a number” or “Marks must be an integer value”
. Display this data in descending order according to the marks such that name of the student having maximum marks should be displayed at the top and the name of the student having minimum marks should be displayed at the bottom
LATEST TUTORIALS
APPROVED BY CLIENTS