Commit 794d45b
projects/2/prog1.py
@@ -3,7 +3,7 @@
print("""
Program author: mo khan
ID: 3431709
-Program 1 - Math Functions
+PROGRAM 1-MATH FUNCTIONS
""")
# Add two numbers and print the result
projects/2/prog2.py
@@ -3,7 +3,7 @@
print("""
Program author: mo khan
ID: 3431709
-Program 2 - Using Input
+PROGRAM 2-USING INPUT
""")
# Read from stdin and assign value to a variable
projects/2/prog3.py
@@ -1,5 +1,7 @@
#!/usr/bin/env python
+# This program requests a password, and then asks the user for their name.
+
print("""
Program author: mo khan
ID: 3431709
projects/2/prog4.py
@@ -1,9 +1,12 @@
#!/usr/bin/env python
+# This program can calculate the area and perimeter of a square, rectangle and
+# square. A text user interface (TUI) is provided as well.
+
print("""
Program author: mo khan
ID: 3431709
-Program 4 - Functions
+PROGRAM 4-FUNCTIONS
""")
def menu():
projects/2/README.md
@@ -75,7 +75,8 @@ Save your programs in the Python folder on your hard disk.
Go to A Beginner’s Python Tutorial, and work through the first seven lessons.
-Please note that the tutorial describes running programs for an earlier version of Python, and follows:
+Please note that the tutorial describes running programs for an earlier version
+of Python, and follows:
> "Edit" menu-> "Run Script"
@@ -83,7 +84,8 @@ In later versions of Python, programs are run as follows:
> "Run" menu-> "Run Module" (or simply hit F5)
-Note: If you need more help, the internet has several instructive sites, for example, www.learnpython.org/.
+Note: If you need more help, the internet has several instructive sites, for
+example, www.learnpython.org/.
## Programs
@@ -109,7 +111,8 @@ Program 1—Math Functions
### PROGRAM 1—MATH FUNCTIONS
-Write an algorithm for a program that shows the use of all six math functions. Write, test, and debug the program using Python.
+Write an algorithm for a program that shows the use of all six math functions.
+Write, test, and debug the program using Python.
SAMPLE OUTPUT (not including author/program information)