Using User defined Input create a java code of this output.
Output:
Enter your name: Kevin Alonzo
Enter grade in Math: 90
Enter grade in English: 88
Enter grade in Filipino: 98
Enter grade in Science: 87
Enter grade in: P.E: 98
Kevin Alonzo This is your GPA.
This is your GPA 92.2
Consider a rectangular shape as an object that has two sides length and width as key attributes, another property is to check if the shape is a square or not. Apart from the ordinary instance methods such as getters, setters and constructors, your class should have the following functionality listed below:
A) isSquare() : returns true if the values of length and width are equal
B) calculateArea() : Calculates the area of the shape provide with the respective formula, returning the Area with the formula used
C) calculatePerimeter(): Calculates the perimeter of the shape returning the result and formula used
D) Provide a toString() : to represent all the shape attributes and the value returned by the isSquare, including results for the Area and Perimeter as provided above
1.1. Provide a simple Class and object diagram for the above scenario [30 Marks]
please find the question attached here,
https://drive.google.com/file/d/1K2zxTlrDBnlJ76BaZxSMe90-a5Wu4X11/view?usp=sharing
consider the time displayed on a digital clock( 07.30.00) with 3 main components hours, minutes and seconds as attributes. Apart from the ordinary instance methods such as getters, setters and constructors, your class should have the following functionality listed below
A) PM) returns true if the hour value is between 12 noon till midnight
B) to 12hourt): converts the provided time to 12 hour format considering the isPM function
C) Add Time() takes in another time and sum them up appropriately considering that there only 24 hours in a day
D) Provide a toString(): to represent the time with AM/PM if it's in 12 hour format 1.1.Provide a simple Class and object diagram for the above scenario
1.2. Implement class modeled above and test its functionality as specified below
Sample Run
Enter time (hh mm):19 24 30
Enter time (hh mm ): 06 15 10
Output:
19.24.30 isPM
06:15:10 isAM
19:24:30 to 12 hour format is 07:24:30 PM
19:24 30 PLUS 06:15:10=01:39:40
The addition result represented with to String: 01:39:40 AM
please find attached questions,
https://drive.google.com/file/d/1Xz5GwV0PswLHvdgqTWG6HgnQ0PEp1cD4/view?usp=sharing
please find attached questions,
https://drive.google.com/file/d/1DhafB2Fq_tpfPob4k8VQUCTMwIKHZfgj/view?usp=sharing
please find the attached questions,
https://drive.google.com/file/d/1zFjZAMaMZSDxIJalG37TDhLl1XfsukEv/view?usp=sharing
please find the attached question,
https://drive.google.com/file/d/16FXm713RhW_XZ-uWTuqVthMppHb4iAcE/view?usp=sharing
please find the attached question, https://drive.google.com/file/d/1Xbg3lXrmaz0Y5CMaehYsf-hEeL3bPskx/view?usp=sharing
please find the attached question, https://drive.google.com/file/d/1D_kSUCgtpxyr5Qw68aW21xFndMrhn_Vv/view?usp=sharing