Question: / * * * * @author Alexandra Vaschillo * / public class TwoMethodsA 0 2 { / * * * Method checks if a triangle

/**
*
* @author Alexandra Vaschillo
*/
public class TwoMethodsA02
{
/**
* Method checks if a triangle with given lengths of sides is a right triangle
* @param a triangle side
* @param b triangle side
* @param c triangle side
* @return true if the triangle is right, false if it is not
*/
public static boolean isRightTri(int a, int b, int c)
{
return false;
}
/**
* The method takes hour, minute, and "am","pm" components of the time stamp of the moment when car crosses the bridge and calculates the toll rate.
* If any of the time stamp components are invalid, -1 is being returned as an error code.
* @param hour hour component of the time stamp
* @param min minute component of the time stamp
* @param amPm either string "am" or "pm", component of the time stamp
* @return the toll rate for the passed time
*/
public static double toll520Bridge(int hour, int min, String amPm)
{
return -1;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!