You will write functions for the length of an arc, the area of a sector and the angle of an arc. Then you will find the largest sector in a list.
The idea. An arc is of the circumference, and a sector is of the circle. To find the angle from a length, divide the arc by the circumference and multiply by .
Your tasks.
arc_length, return the length of the arc for a radius and an angle in degrees, rounded to decimals.sector_area, return the area of the sector, rounded to decimals.angle_of_arc, return the angle in degrees of an arc of length arc in a circle of radius radius, rounded to decimals.largest to the name of the sector in sectors that has the largest area.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…