Question: code using python 1. Page 1 Design processing block as a series of small steps rather than one/several big arithmetic expressions. . Convert algorithm to

code using python
code using python 1. Page 1 Design processing block as a series
of small steps rather than one/several big arithmetic expressions. . Convert algorithm
to working Python code using incremental development. Use IDLE as the IDE
to create/run/test the application as a stored program (a "script"). Design the
program for maintainability. For testing, use specific input data values to hand-
calculate the predicted program output, before completing the program. . For debugging,
use print statements to determine the correctness of various intermediate steps. Learn
the skills needed to access develop and submit your code on Codio.
K2 K ##Python language elements: 1. Page 1 ##Python language elements: Declare
variables and named constants, and initialize them. Input data values from user,

1. Page 1 Design processing block as a series of small steps rather than one/several big arithmetic expressions. . Convert algorithm to working Python code using incremental development. Use IDLE as the IDE to create/run/test the application as a stored program (a "script"). Design the program for maintainability. For testing, use specific input data values to hand- calculate the predicted program output, before completing the program. . For debugging, use print statements to determine the correctness of various intermediate steps. Learn the skills needed to access develop and submit your code on Codio. K2 K ##Python language elements: 1. Page 1 ##Python language elements: Declare variables and named constants, and initialize them. Input data values from user, converting their data types, as needed. Print output report to console using proper formatting (so it's exactly as shown in the sample output in the specs here). Use arithmetic operators, assignment operator, data types & conversions (if needed) - Be aware of operator precedence. Project Overview Western Michigan University (WMU) is a public 1. Page 1 Project Overview Western Michigan University (WMU) is a public research university in Kalamazoo, Michigan. It was established in 1903 by Dwight B. Waldo. Western is divided into five campuses in and near Kalamazoo: West Campus East Campus Oakland Drive Campus Parkview Campus College of Aviation (Battle Creek, MI) West Campus is the primary and largest WMU campus in Kalamazoo, and is usually referred to as "Main Campus." Most of the university academic and administrative buildings are on West Campus. Walking 1. Page 1 is the most convenient way to go from building to other in this campus. WMU-main campus map labels distances between buildings in rods, an old English measure of distance equal to 5.0292 meters. Your program will prompt the user for a floating-point value representing a distance in rods. You will reprint that value along with that value converted to the following values. The most important value is the time to walk. Meters . Feet Miles Furlongs The time in minutes to walk that distance (time= distance/rate OR speed). 1. Page 1 Constants Data The conversions of the distance units: . 1 rod = 5.0292 meters 1 furlong = 40 rods 1 mile = 1609.34 meters 1 foot = 0.3048 meters Average walking speed is 3.1 miles per hour GI Deliverables The deliverable for this assignment is the following file: proj01_LastName.py Be sure to use the specified file name and to submit it for grading via eLearning before the project deadline. 2 1. Page 1 Project Notes 1. To clarify the project specifications, sample output is appended to the end of this document. 2. The input function is used to accept a response from the user. The function accepts a string (a sequence of characters between quotes) as a prompt to display to the user. It then waits until the user types a response (terminated by the user touching the Enter key). Finally, the function returns the user's response as a string. If the user's response is supposed to be processed as a numeric value, the returned string must be converted into a number. When working with floating point values, a string is converted into a floating-point number using 52 Constants Data The conversions of the distance units: 1 rod = 5.0292 meters 1 furlong = 40 rods 1 mile = 1609.34 meters 1 foot = 0.3048 meters Average walking speed is 3.1 miles per hour Deliverables The deliverable for this assignment is the following file: projo1_LastName.py Be sure to use the specified file name and to submit it for grading via eLearning before the project deadline. Project Notes 1. To clarify the project specifications, sample output is appended to the end of this document. 2. The input function is used to accept a response from the user. The function accepts a string (a sequence of characters between quotes) as a prompt to display to the user. It then waits until the user types a response (terminated by the user touching the Enter key). Finally, the function returns the user's response as a string. If the user's response is supposed to be processed as a numeric value, the returned string must be converted into a number. When working with 1. Page 1 wwwww.up.......Fromense the returned string must be converted into a number. When working with floating point values, a string is converted into a floating-point number using the float function. The function accepts a string as its argument and returns the floating-point number, which the string represents. A typical interaction would be something like: num_str = input( "Please enter a number:") num float = float( num_str) 3. The print function is used to display any combination of variables, values and strings in the output window. Each item to be displayed must be separated from another item by a comma. All the items will be displayed together, followed by a new line. For example: printi num_int, "times two is", num_int*2) Three items will be displayed when the print function is called the value of the variable num_int, the string "times two is", and the result of the calculation Assuming that the value of the variable num_int is 21, then the output will be: 21 times two is 42 Getting Started Solve the problem using pencil and paper first. You cannot write a program until you have figured out how to solve the problem Ilse IN thains Cadinita creste ADINA RR 1. Page 1 Cluny La CU Solve the problem using pencil and paper first. You cannot write a program until you have figured out how to solve the problem. Use IDLE as the IDE /Codio to create a new program. Write a simple version of the program, e.g. input the rods and print rods. Run the program and track down any errors. Cycle through the steps to incrementally develop your program: o Edit your program to add new capabilities. o Run the program and fix any errors. Use eLearning to submit your final version. FINAL REPORT - print to the "console" See a sample report below. Use the EXACT format/wording/spacing/labeling... shown in sample. First Sample Interaction (use EXACT format - and NO HARDCODING of the data itself) Input rods: 1 DATA YOU PROVIDED Distance in Rods = 1.0 CONSTANT DATA: Average walking speed is 3.1 miles per hour Distance Conversions & Time: Distance in Meters = 5.0292 Distance in Feet = 16.5 Distance in Miles =0.0031250077671592085 AR Average walking speed is 3.1 miles per hour Distance Conversions & Time: Distance in Meters = 5.0292 Distance in Feet = 16.5 Distance in Miles = 0.0031250077671592085 Distance in Furlongs = 0.025 Time in minutes to walk 1.0 rods = 0.060484021299855646 ************The End****** Second Sample Interaction (use EXACT format - and NO HARDCODING of the data itself) Input rods: 10 DATA YOU PROVIDED Distance in Rods = 10.0 CONSTANT DATA: Average walking speed is 3.1 miles per hour Guides PI: Distance Conversions & Time: Distance in Meters = 50.292 Distance in Feet = 165.0 Distance in Miles = 0.03125007767159208 Distance in Furlongs = 0.25 Time in minutes to walk 10.0 rods = 0.6048402129985565 AR UK

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!