Question: The Python files A 1 Q 1 . py , A 1 Q 2 . py , and A 1 Q 3 . py have

The Python files A1Q1.py, A1Q2.py, and A1Q3.py have been provided for questions in this section. Fill in your name and student ID in the proper section. Write your answer in the corresponding files, and then submit them to SOUL. Question C1[10 marks] Calculate the area of the dotted section inside a circle with a radius r. There is an equilateral triangle inside this circle. Put your code in A1Q1.py. This program needs to meet the following conditions: Ask the users to enter a positive number as the radius. Print out a message "Not positive number, try again! " if the input number is less than 0, then exit this program. The entered number can be either an integer or a float. The below formula can be used for the calculation: o (334)2, where r denotes the radius of the circle. The math module needs to be imported. The area of the dotted section should be limited to 2 decimal places. Print out a message "Wrong inputs! " and end the program if a wrong input (e.g.,"12abc") is detected.

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 Programming Questions!