(Solved) : 3 31 0 90 C O N Assume User Inputs Numbers Don T Need Error Checking Bad Input Remember C Q44035099 . . .





3:31 0 90 in C O N .. Assume that the user only inputs numbers, that is, you don’t need to do error checking for bad input. Remember to convert fill to cubic yards. Here is an outline of your program: 1. Prompt for input (use input) 2. Convert the input strings to numbers (use float) 3. Do some mathematical calculations using the input numbers to get results. 4. Print the results (use print) Getting Started 1. Solve the problem using paper, pencil and calculator so you understand the problem before trying to program it. 2. Using IDLE, create a new program. 3. Use your Cheyney wolf account OneDrive so that you’ll always have access to your files. 4. Save the project under the name: proj01.py 5. Using the example from example-numeric.py, as a guide write the code to prompt the user, input in the required values, and echo (print) the values that were input. 6. Run the program and track down any errors. 7. Use the D2L Dropbox to hand in the proaram (to make sure vou can hand 3:30 000 in C O N .. Assignment Notes: To clarify the problem specifications, we provide at the end of this document a snapshot of interaction with the already written program. The formula for the area A of a circle is A = $ra, where r denotes the radius. For this calculation, you should use the value of provided in the Python math module. After importing the math module, the name math.pi returns (a close approximation to) the value of . (See comments in example-numeric.py.) To estimate the number of plants for a flowerbed, divide the area of the flowerbed by the area needed per plant (the square of the recommended distance between plants) and then truncate this result. To truncate a float, convert it to an int using the int function which implicitly truncates the float (see comments in example-numeric.py) or use the math.trunci ) function. Be careful, the number of plants in a semicircle may not be exactly half of the plants in a full circle. Look at the program example-numeric.py in the projo1 directory as an example (with explanations in the comments) of the 3:30 OOO SINCE quantities needed for the garden: 1. Number of plants for each type of flowerbed (semicircle and circle) and total number of plants for the garden. 2. Cubic yards of soil for each type of flowerbed (semicircle and circle) and total cubic yards of soil for the garden, rounded to one decimal place. 3. Total cubic yards of fill material for the garden, rounded to one decimal place. Deliverables proj01.py – your source code solution (remember to include your section, the date, project number and comments in this file as well as your name). 1. Be sure to use “proj01.py” for the file name 2. Save a copy of your file in your GitHub repository. This is the only way I can check that you completed the project on time in case you have a problem with submitting to your D2L Dropbox. 3. Electronically submit a copy of the file via D2L Dropbox. Assignment Notes: To clarify the problem specifications, we provide at the end of this document a snapshot of interaction with the 3:30 000 in C O N .. Background Programs are good at performing routine mathematical calculations. By way of illustration, you will write a program to calculate the materials needed for an ornamental garden according to the design below. In this design, the blue areas represent flowerbeds and the yellow areas are filled with stone, mulch, or other fill material. The garden is a perfect square. The four outer flowerbeds are congruent semicircles and the central flowerbed is a perfect circle. gardern Project Description / Specification Your program should prompt the user for the following information: 1. The side length (in feet) of the finished garden. 2. The recommended spacing (in feet) between plants. 3. The depth (in feet) of the flowerbeds. 4. The depth (in feet) of the filled areas. Next estimate the number of plants and the amount of fill and flowerbed soil needed. Finally, it should report the following quantities needed for the garden: 1. Number of plants for each type of flowerbed (semicircle and circle) .. 3:30 09 in CO CIS101 Spring 2020 Programming Project 1 This assignment is worth 20 points (2.0% of the course grade) and must be completed and turned in before 11:59 on Wednesday, January 29, 2020. Assignment Overview This assignment will give you experience on the use of: 1. Integers and floats 2. Mathematical operations 3. The float(), int(), round(), print and input(functions 4. Importing a Python module The goal of this project is to gain experience with mathematical manipulation of numeric values. You will calculate areas and volumes to determine materials required for a gardening project. The basic design consists of prompting the user for information, receiving information, processing that information, and then displaying the result. Background Programs are good at performing routine mathematical calculations. By Show transcribed image text 3:31 0 90 in C O N .. Assume that the user only inputs numbers, that is, you don’t need to do error checking for bad input. Remember to convert fill to cubic yards. Here is an outline of your program: 1. Prompt for input (use input) 2. Convert the input strings to numbers (use float) 3. Do some mathematical calculations using the input numbers to get results. 4. Print the results (use print) Getting Started 1. Solve the problem using paper, pencil and calculator so you understand the problem before trying to program it. 2. Using IDLE, create a new program. 3. Use your Cheyney wolf account OneDrive so that you’ll always have access to your files. 4. Save the project under the name: proj01.py 5. Using the example from example-numeric.py, as a guide write the code to prompt the user, input in the required values, and echo (print) the values that were input. 6. Run the program and track down any errors. 7. Use the D2L Dropbox to hand in the proaram (to make sure vou can hand
3:30 000 in C O N .. Assignment Notes: To clarify the problem specifications, we provide at the end of this document a snapshot of interaction with the already written program. The formula for the area A of a circle is A = $ra, where r denotes the radius. For this calculation, you should use the value of provided in the Python math module. After importing the math module, the name math.pi returns (a close approximation to) the value of . (See comments in example-numeric.py.) To estimate the number of plants for a flowerbed, divide the area of the flowerbed by the area needed per plant (the square of the recommended distance between plants) and then truncate this result. To truncate a float, convert it to an int using the int function which implicitly truncates the float (see comments in example-numeric.py) or use the math.trunci ) function. Be careful, the number of plants in a semicircle may not be exactly half of the plants in a full circle. Look at the program example-numeric.py in the projo1 directory as an example (with explanations in the comments) of the
3:30 OOO SINCE quantities needed for the garden: 1. Number of plants for each type of flowerbed (semicircle and circle) and total number of plants for the garden. 2. Cubic yards of soil for each type of flowerbed (semicircle and circle) and total cubic yards of soil for the garden, rounded to one decimal place. 3. Total cubic yards of fill material for the garden, rounded to one decimal place. Deliverables proj01.py – your source code solution (remember to include your section, the date, project number and comments in this file as well as your name). 1. Be sure to use “proj01.py” for the file name 2. Save a copy of your file in your GitHub repository. This is the only way I can check that you completed the project on time in case you have a problem with submitting to your D2L Dropbox. 3. Electronically submit a copy of the file via D2L Dropbox. Assignment Notes: To clarify the problem specifications, we provide at the end of this document a snapshot of interaction with the
3:30 000 in C O N .. Background Programs are good at performing routine mathematical calculations. By way of illustration, you will write a program to calculate the materials needed for an ornamental garden according to the design below. In this design, the blue areas represent flowerbeds and the yellow areas are filled with stone, mulch, or other fill material. The garden is a perfect square. The four outer flowerbeds are congruent semicircles and the central flowerbed is a perfect circle. gardern Project Description / Specification Your program should prompt the user for the following information: 1. The side length (in feet) of the finished garden. 2. The recommended spacing (in feet) between plants. 3. The depth (in feet) of the flowerbeds. 4. The depth (in feet) of the filled areas. Next estimate the number of plants and the amount of fill and flowerbed soil needed. Finally, it should report the following quantities needed for the garden: 1. Number of plants for each type of flowerbed (semicircle and circle)
.. 3:30 09 in CO CIS101 Spring 2020 Programming Project 1 This assignment is worth 20 points (2.0% of the course grade) and must be completed and turned in before 11:59 on Wednesday, January 29, 2020. Assignment Overview This assignment will give you experience on the use of: 1. Integers and floats 2. Mathematical operations 3. The float(), int(), round(), print and input(functions 4. Importing a Python module The goal of this project is to gain experience with mathematical manipulation of numeric values. You will calculate areas and volumes to determine materials required for a gardening project. The basic design consists of prompting the user for information, receiving information, processing that information, and then displaying the result. Background Programs are good at performing routine mathematical calculations. By
Expert Answer
Answer to 3:31 0 90 in C O N .. Assume that the user only inputs numbers, that is, you don’t need to do error checking for bad inp…
Related