Design and implement a class named RightangleTriangle that extends a GeometricObject class. The class contains:
The superclass à GeometricObject class should have following data fields: private String color = "white"; private java.util.Date dateCreated;
Write a program to create a class Circles with the following information:
radius in integer.
Add two constructors, (a) default constructor, and (b) constructor to pass on radius of a Circle.
Add a method printData( ) to print the radius of the Circle in console.
Add methods printArea( ) and printPerimeter( ) to compute and print the area and perimeter of Circle in console.
Create two objects of this class, c1 and c2. Show the output of both the constructors and all methods of these two objects
Write a program to create an array in order to store 30 numbers then display the highest number and second highest number present in it using bubble sorting.
Maze Game
General Rules:
1. Use the collision detection method for the wall(obstacle).
2. Once collided with any part of the obstacles, the object will go back to its starting position and lose 1 life(3 lives
in total). It must indicate how many lives are left during the game.
3. Once life falls below zero(0), the last collision will automatically stop the game and display “Game Over” in any
part of the program.
4. After the object reaches the finish line, the text “Congratulations” must appear in any part of the program
The movement of the object depends on the keyboard event triggered by the user. It must be W, A, S, D or
Arrow UP, DOWN, LEFT, RIGHT. (Just like pacman game movement)
you have been an integer array A of size N.you need to pfint the number with the value closest to zero.if there are multiple elements print the number with greater value.
Write a program to display sum of the following series:
1-3+5-7+9.....n terms
Using following method prototype:
int series(int n)
If Input is given the above series i.e. 1-3+5-7+9
then output will be 5...
Write a program to create two single dimension arrays to store names and marks of 25 students. Then display the name of the students who secured more than 90 as per their marks in descending order and also display how many such students found.
Hint: Use Linear search and Bubble sorting.
Program the following in Java language.
Implement the following equation
3x4sin(180x) + 4x3 cos(90x) + x2sin(tan(45)) + 7x + 9cos(90x2 )
where x may be user defined value.
The statements in the following program are in incorrect order. Rearrange the statements so that it prompts the user to input the shape type (rectangle, circle, or cylinder), and the appropriate dimension of the shape. The program then outputs the following information about the shape: For a rectangle, it outputs the area and perimeter; for a circle, it outputs the area and circumference; and for a cylinder, it outputs the volume and surface area. After rearranging the statements, your program should be properly indented.
Use Spring MVC + Hibernate to do the following
Main page to display two Links
Save student exam data
Display all the students data
Student Exam Data Form would contain the following
Basic Student Details and Address with Validations
Details of Marks for Five Subjects (All marks subjects should be >= 0)
Save all the marks to an arraylist
The display Page would list all the students in decreasing order of percentage
Web Application
Main
- Link to upload student marks
- Display all the student marks
Form
Roll Number (*) -> EDYXXXX (Roll Number should start with EDY and XXXX means digits)
First Name (*)
Last Name
Semester (*)
Marks (5 Subject)
All the marks have to be greater than or equal 0
- If validation fails please display error.
Submit the form.
Store it in any Collection (DB).