e Tools View Document1 - Word Fun math practice 1. 8 squared is 64 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...

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

Extracted text: e Tools View Document1 - Word Fun math practice 1. 8 squared is 64 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 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 you have learned to use in python. *Make sure to import the math library before def main and use for square root and the value of pi. 6. The integer value of 7.75 is 7 *Also remember that the things underlined means the user is typing in some value there, and the math will Hope you had fun seeing some random math that we can do with Python! 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. 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.. reens 1-2 of 2 P Type here to search 圖
11:47<br>A l 86%i<br>2-2-2021 program.py- C:\Users\mcucc\OneDrive\Desktop\COP100<br>File Edit Format Run Options Window Help<br>conE, 2, 2021<br>#program to calculate the number of miles trave<br>#based on user input of kilometers<br>OPT #define main function<br>def main () :<br>#Dclare constant to store conversion<br>conversion = 0.6214<br>#Declare and intialize string variabl<br>name=<br>#Declare and intialize real variable<br>kilometers = miles = 0.0<br>#Display introduction<br>print(

Extracted text: 11:47 A l 86%i 2-2-2021 program.py- C:\Users\mcucc\OneDrive\Desktop\COP100 File Edit Format Run Options Window Help conE, 2, 2021 #program to calculate the number of miles trave #based on user input of kilometers OPT #define main function def main () : #Dclare constant to store conversion conversion = 0.6214 #Declare and intialize string variabl name= #Declare and intialize real variable kilometers = miles = 0.0 #Display introduction print("welcome to my miles conversion print ("i will ask for a number of kil print ("display the number of miles yo r. r. #prompt user for name name = input ("what is your name?") #prompt user for kilometers traveled kilometers = float(input ("how many kilometer #set miles = kilometers * conversion miles = kilometers * conversion #Display name and miles to user #user commas in print print ("great job", name, #now use concatenation print ("great job" + name + your've traviled' your've travile #.format method is newer, but sill not the r print ("great job", name, " you've traveled C #f mormatting is the way to go print (f"great job (name), you've traveld (mi #Display outro print ("\nthanks you for using my program! ") main ()
Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here