Java | JSP | JSF Answers

Questions answered by Experts: 3 611

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

Create a program that takes in two words, check for equality ignoring the cases, if the words are equal the print the word in upper case with an appropriate message however if the words are different then print the two words in lower case with an appropriate message.




  1. Suppose you have ten students in the programming-1 class; you are tasked to check which one of these students is vegetarian. Suppose five students are vegetarian. Write pseudocode, algorithms, flowchart to solve this problem 

consider an array MARKS [20] [5] which stores the marks obtained by 20 students in 5 subjects. now write a program.

(a.) find the average marks obtained in each subject.

(b.)find the average marks obtained by every student

(c.) find the number of students who have scored below 50 in their average.

(d.) display the scores obtained by every student.


Create a class named 'Rectangle' with two datamembers 'length' and 'breadth' andtwo methods to print the area and perimeter of the rectangle respectively. Its constructorhaving parameters for length and breadth is used to initialize length and breadth of therectangle. Let class 'Square' inherit the 'Rectangle' class with its constructor having a

parameter for its side (suppose s) calling the constructor of its parent class as'super(s,s)'. Print the area and perimeter of a rectangle and a square.


Create A Class Named 'Rectangle' With Two Data Members 'Length' And 'Breadth' And Two Methods To Print The Area And Perimeter Of The Rectangle Respectively. Its Constructor Having Parameters For Length And Breadth Is Used

Perform the following operations on file using menu-driven application,

• Opening a existing file

• Creating a new file

• Renaming a file

• Deleting a file

• Creating a directory

• Finding the absolute path of a file

• Get the file names of a directory


Write a Java program to perform the following operations on file using menu-driven application,

• Opening a existing file

• Creating a new file

• Renaming a file

• Deleting a file

• Creating a directory

• Finding the absolute path of a file

• Get the file names of a directory

Java Class that returns the sum of two integers, write a JSP code that uses a page directives to call this Java Class


Create a subclass called TicketSales that extends the Tickets class. The TicketSales class must contain a constructor to accept the customer name, movie title, customer age and price of the movie as parameters. Write code for the print_tickets method which displays the customer name, movie title, movie price, discount and final cost due. A discount of 10% is applied if the customer’s age is greater than or equal to 65. If the customer is under 65 years old, no discount is given. Finally, write a Movie_Tickets class to instantiate the TicketSales class. Sample output is shown below and you may use the same values to test your application


Create a base class called "Animal" which has two (2) class fields. The first field holds an integer "IDtag" for a number that a zoo uses to catalogue their animals and the second field holds a string called "species."

From the Animal class, derive two (2) classes. One is called "Bird" and the other "Reptile". E.g. Species could be (for the Bird class) ostrich, dove, chicken etc. and (for the Reptile class) lizard, snake, bearded dragon etc.

The Bird class has an additional class field called "colour" which holds the colour of the birds. feathers * (int - 1 = gre) , 2-white, 3=black) . The reptile class has an additional class field called "bloodTemp" which hold the reptile's temperature of their blood (double).

You need to instantiate two (2) objects. The bird object will be called "brd" and the reptile object

called "rept."

Input values for the bird's IDtag, species and feather colour (int) and for the reptile's IDtag number, species and bloodTemp.
LATEST TUTORIALS
APPROVED BY CLIENTS