Question: Write Python expressions corresponding to these statements: 3.28 Implement a program that requests four numbers (integer or floating-point) from the user. Your program should compute

Write Python expressions corresponding to these statements:

3.28 Implement a program that requests four numbers (integer or floating-point) from the user. Your program should compute the average of the first three numbers and compare the average to the fourth number. If they are equal, your program should print 'Equal' on the screen.

>>>

Enter first number: 4.5

Enter second number: 3

Enter third number: 3

Enter last number: 3.5

Equal

3.29 Implement a program that requests the user to enter the x and y coordinates (each between 10 and 10) of a dart and computes whether the dart has hit the dartboard, a circle with center (0,0) and radius 8. If so, string It is in! should be printed on the screen.

>>>

Enter x: 2.5

Enter y: 4

It is in!

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!