retry
This commit is contained in:
parent
195a455032
commit
fc26ebd5f8
5 changed files with 25 additions and 19 deletions
10
homework06/git-practice/README.txt
Normal file
10
homework06/git-practice/README.txt
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
This is the "Rectangular Project". As you will see this may have
|
||||
been a bad choice of naming.
|
||||
|
||||
Step 8 renames a mis-spelled program rectanglar-solid.py to
|
||||
rectangular-solid.py using the git mv command. Note the name
|
||||
of the file in the directory and the git repo changes and is
|
||||
associated.
|
||||
|
||||
|
||||
Ed
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
import math
|
||||
PI = math.pi
|
||||
|
||||
radius = float(input("Enter the radius of a circle "))
|
||||
|
||||
area = PI * radius**2
|
||||
|
||||
print(f"The area is {area}")
|
||||
|
||||
8
homework06/git-practice/rectanglar-solid01.py
Normal file
8
homework06/git-practice/rectanglar-solid01.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
length = float(input("Enter a value for the length "))
|
||||
width = float(input("Enter a value for the width "))
|
||||
height = float(input("Enter a value for the height "))
|
||||
|
||||
volumeOfRectangle = length * width * height
|
||||
|
||||
print(f"Volume = {volumeOfRectangle:.1f}")
|
||||
7
homework06/git-practice/rectangle01.py
Normal file
7
homework06/git-practice/rectangle01.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
length = float(input("Enter a value for the length "))
|
||||
width = float(input("Enter a value for the width "))
|
||||
|
||||
areaOfRectangle = length * width
|
||||
|
||||
print(f"Area = {areaOfRectangle:.1f}")
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
|
||||
import math
|
||||
PI = math.pi
|
||||
|
||||
radius = float(input("Enter the radius of a sphere "))
|
||||
|
||||
|
||||
volume = 4 / 3 * PI * radius**3
|
||||
|
||||
print(f"The volume of the sphere is {volume}")
|
||||
Loading…
Add table
Add a link
Reference in a new issue