1.

Write a program which declares functions given below to calculate the area of different geometrical figuresas per the prototype given below:1. public void area_rect(int, int)// calculates and prints the area of a rectangle.2. public int area_square(int)// calculates and returns the area of a square to a calling module.3. public static void area_circ(int, double)// calculates and prints the area of a circle.4. main(): calls all the above functions and displays result with appropriate messages

Answer»

EXPLANATION:

Find the value of m so that the quadratic EQUATION px^2 + (p – 1) x +(p – 1) = 0 has EQUAL ROOTS.



Discussion

No Comment Found