diff --git a/homework06/git-practice/README.txt b/homework06/git-practice/README.txt new file mode 100644 index 0000000..6652258 --- /dev/null +++ b/homework06/git-practice/README.txt @@ -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 diff --git a/homework06/git-practice/circle1.py b/homework06/git-practice/circle1.py deleted file mode 100644 index 0533a90..0000000 --- a/homework06/git-practice/circle1.py +++ /dev/null @@ -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}") - diff --git a/homework06/git-practice/rectanglar-solid01.py b/homework06/git-practice/rectanglar-solid01.py new file mode 100644 index 0000000..3a4779e --- /dev/null +++ b/homework06/git-practice/rectanglar-solid01.py @@ -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}") \ No newline at end of file diff --git a/homework06/git-practice/rectangle01.py b/homework06/git-practice/rectangle01.py new file mode 100644 index 0000000..2b1b70e --- /dev/null +++ b/homework06/git-practice/rectangle01.py @@ -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}") \ No newline at end of file diff --git a/homework06/git-practice/sphere1.py b/homework06/git-practice/sphere1.py deleted file mode 100644 index 4b110e9..0000000 --- a/homework06/git-practice/sphere1.py +++ /dev/null @@ -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}")