Using following programs: IDLE (Python), Git Bash, Visual Studio Code, Github

You will write individual programs for the following 7 problems. All programs must run by either entering a user prompt or run themselves. That means I do not need to type a callback function in Shell to run the program.

10 Points for each program that runs correctly & produces the correct answer. If your program does not run for any reason. Reasons like:

Indentation issues, a function not defined, invalid syntax, return an empty prompt, the wrong calculation, incorrect format, etc; you will receive partial credit. If your program does run, however, your answer is incorrect, you will receive partial credit.

1. Use the range function and a for statement to calculate the total of the integers from 0 to 100,000.

2. Write a program that reads from words.txt (the file is included in this project) and prints only the words with at least 19 characters (not counting whitespace). Output in the Shell should have 24 words. The words.txt file must be included in your zip folder you turn in.

3. At the end of 2021, the national debt in the US was 29.62 trillion dollars. In theory, the debt will rise by 9.5% every year. Write a program showing what the debt will be each year to 2036. You can use a string stating your figures are in the trillions and must use 2 decimal points. The output in the shell should be every year from 2022 - 2036 with a result. Don't give me results that are only for 2022 and 2036.

4. Write a program that reads the number of inches entered by the user. Then converts to feet and inches. I must be able to enter a number in this program to produce the correct answer. Example: Enter inches: 75 75 inches is 6 feet and 3 inches

5. For the following dictionary, roman_numerals = {'I': 1, 'II': 2, 'III': 3, 'V': 5, 'X': 10, 'L': 50} Write a program that does the following: Create a list of its keys. Create a list of its values. Create a list of its items. The lists you created in the program must display in the Shell once the program ran.

6. A leap year is when a year has 366 days: An extra day, February 29th. Write a program when entering a year & it should say if that year is a leap year or not. You must have the following requirements: a. Must use if, elif, and else statements in your program. b. The year must be divisible by 4. c. If the year is a century year (1700, 1800, etc.), the year must be evenly divisible by 400.

7. Write a program that takes a 10-digit phone number and adds a hyphen in the correct location. Using an input field for the user to enter the information. Also, use a string for instructions on how to enter the phone in the input field. Ex: 3125551212 Output 312-555-1212 You may not use a regular expression in this program. If you do, you will receive a zero for this problem. DON’T WAIT UNTIL THE LAST MINUTE TO TURN IN YOUR FINAL. Find and Correct Errors. There are 3 errors in each program with 5 points for each correct error found. Don't add or erase from the code that was given, only correct the errors. If you do either two, there will be a deduction in points. Identify the errors by using comments in your code. Failure to do so, points will be deducted. Correctly fixed all the errors, so the code runs correctly in the Shell.

8. Once all the errors are fixed, your problem should run correctly. def celsius_to_kelvin(value_celsius): value_kelvin = 0.0 value_kelvin = value_cel + 273.15 return value_kelvin def kelvin_to_celsius(value_kelvin): value_celsius = 0.0 value_celsius = value_kelvin - 273.15 return value_celsius value_c = 0.0 value_k = 0.0 value_c = 10.0 print(value_c, 'C is', celsius_2_kelvin(value_c), 'K') value_k = 283.15 print(value_k, 'is', kelvin_to_celsius(value_k), 'C')

9. Once all the errors are fixed, the shell should show the following statement: Type is dog Color is brown Type is fish Color is green class pet() def __init__(self, type, color): self.type = type self.color = color def show(self): print("type is", self.model ) print("color is", self.color ) austin = pet("dog", "blue") whitney = pet("fish", "green") austin.show() whitney.show