CSC 161 Fall 2021 - HW11 (10 pts. total)
Assigned Tue Nov 30, due Tue Dec 7


Directions
a) Write each of the following programs in separate Python Editor files, with the filename hw11-LastName-ProgramName.py (where LastName is replaced by your last name & ProgramName is an appropriate name for that program.
b) You must include the filename & your first and last name must appear as comments at the top of each file.
c) You must show Steps 1-4 of the Software Development Process in each file.
d) Make sure to Run the program on different cases of inputs and make sure you get the expected output in the Shell window in all cases.
e) GRADING: The best 3 programs are 3 points each & the remaining program is worth 1 point.

The Assignment
1) Adelphi University classifies students according to credits earned. A student with less than 30 credits is a Freshman. At least 30 credits are required to be a Sophomore, at least 60 to be a Junior, and at least 90 to be classified as a Senior. Write a program that calculates class standing from the (whole) number of credits earned. Have your program return an appropriate message if a negative number is inputted.
2) Write a program that takes in an int. The program should print out if the int is even or odd, and if the int is positive or nonpositive.
3) Write a program that uses a while loop to determine how long it takes for an investment to double at a given interest rate. The input will be an annualized interest rate, and the output is the number of years it takes an investment to double. Note: The amount of the initial investment does not matter; you can use $1. (Have the program return a whole number of years, so whether the doubling time is 15.2 years or 15.7 years, your program should return 16 years either way.)
4) Write a program that continuously prompts the user for a line of text and prints it, until the user types "The end". (Hint: Use a while loop.)



Last Modified: 11/19/21