Question: Use Python for the problems below Please be sure to include documentation in the form of comments throughout. Be sure to include the appropriate import

Use Python for the problems below

Please be sure to include documentation in the form of comments throughout. Be sure to include the appropriate import statement at the top of your program for any modules like math or random.

  1. Create a program called "Divisible"
    • In this program, prompt the user to enter their name.
    • Using their name in the next prompt, ask the user for an integer.
    • Using their name, ask for another integer.
    • Find out if the number that the user entered is divisible by the other.
    • Output the results back to the user.
  2. Create a program called "Geometry"
    • Prompt the user for a small decimal number.
    • Prompt the user for a large decimal number.
    • Using those numbers as lower and upper bounds, randomly generate a decimal value between the two .
    • Using the randomly generated number, calculate the VOLUME of a sphere if it were to have that size radius.
    • Output the radius as well as the volume back to the user.
  1. Create a program called "Quiz"
    • Ask the user a true or false question.
    • Based on the user's response, tell them if they got it correct or not.
      • Accept true, True, T and t for responses that are true
      • Accept false, False, F and f for responses that are false
    • If the user enters anything other than the 8 options above, tell them that they entered an invalid answer.

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!