[Solved] CSE102 HOMEWORK 1

$25

File Name: CSE102_HOMEWORK_1.zip
File Size: 160.14 KB

SKU: [Solved] CSE102 HOMEWORK 1 Category: Tag:
5/5 - (1 vote)

CSE102 HOMEWORK #01PART IWrite a complete program that calculates the area of the largest circle that fits inside a rectangle, (figure 2) the area of the largest square that fits inside the rectangle, (figure 3) the area of the smallest circle that surrounds the same rectangle, (figure 3) the area of the smallest square that surrounds the same rectangle(figure 3).The program gets edges of the rectangle (figure 1) and print outs the area of each circle and square.The program must use all these functions listed below. If you really need you can add more functionsbut newer change the given functions return type, function name, parameters and parameter types.Never write subsitution functions.double circle_area(double radius);double calc_hypotenuse(int side);double calc_hypotenuse(int side1, int side2);double calc_radius_of_smallest_circle(int side1,int side2);double calc_radius_of_largest_circle(int side1,int side2);double calc_area_of_smallest_circle(int side1,int side2);double calc_area_of_largest_circle(int side1,int side2);double calc_area_of_smallest_square(int side1,int side2);double calc_area_of_largest_square(int side1,int side2);double calc_area_of_square (int side);void display_results(void);void display_results(double largest_circle,double largest_square,double smallest_circle,double smallest_square);The program must use sqrt() and pow() functions when necessary. PI = 3.14Outputs:

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CSE102 HOMEWORK 1
$25