Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python f formatting Fun math practice You Python programming teacher wants to see you make a program that accepts input for a name and a

image text in transcribed

python

f formatting

Fun math practice You Python programming teacher wants to see you make a program that accepts input for a name and a few numbers from the user, and then display some fun output using some of the math and built in functions you have learned to use in python. 1.8 squared is 64 2. The square root of 144 is 12 3. 7.75 times pi is 24.347343065320896 4. 8 can be displayed as a real number like this: 8.0 5.7.75 can be displayed rounded to only 1 decimal like this: 7.8 6. The integer value of 7.75 is 7 Hope you had fun seeing some random math that we can do with Python! *Make sure to import the math library before def main and use for square root and the value of pi. *Also remember that the things underlined means the user is typing in some value there, and the math will have to be using their value not the sample values. Please write an algorithm first (no python syntax at all) that will describe the steps needed to ultimately have the output below. Remember to never mention importing a library in an algorithm. Then write the correct Python code under each algorithm step to make the program below. Add any addi- tional code needed (like importing the math library) and comments a programmer might add. Example output - Make it look like this with the user's name and numbers: Welcome to my fun math program! First, what is your name? Bob Hello Bob. Next I am going to ask you for 3 numbers and show you some fun math using them. I Enter first number and make sure it is a whole number: 8 Enter second number and make sure it is a whole number with 3 digits: 144 Enter third number and make sure it is a real number with 2 decimal places: 7.75 Okay Bob, are you ready to see some random math

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions