I need the pseudocode and python for the four attached problems:
1. (Chapter 5 - For Loop) Logic Technical College has a current tuition of $10,000 per year. Tuition is scheduled to increase by 5% each year. Using a FOR loop, design a program that calculates and displays the tuition each year for the next ten years, like so: The tuition for year 1 will be: 10500.00 The tuition for year 2 will be: 11025.00 ……….. (You, of course will calculate those values, and the rest. These two examples show if your calculation is working.)
2. (Chapter 6 - Functions) You are trying to help folks figure out their budget. Design a program that accepts an annual salary (12 months) as input from the user. Pass the salary to a function houseCalc that calculates and displays the maximum monthly housing payment the user can afford, assuming the year’s total payment is no more than 25% of the annual salary. The output should look like: Enter your yearly salary: 60000.00 Your monthly housing payment shouldn’t be more than: 1250.00
3. (Chapter 7 - Input Validation) Coastal Carolina Regional Airport is developing an app that allows a passenger to check on the availability of flights in 2020. As a first test, a user may check on flights to either Charlotte or Atlanta. To access the app, the user must enter an account number, which must be between 1000 and 9999. The user should then be asked to enter 1 for Charlotte and 2 for Atlanta. Then asked to enter a month number, which has to be between 1 and 12, a day number, which has to be 1 to 31 for January, 1 to 29 for February, etc. Finally asked to enter the number of passengers, which must be between 1 and 8. The interaction and output should look like: Enter your account number (1000 – 9999): 2345 Enter your destination (1 for Charlotte, 2 for Atlanta): 1 Enter the month of travel: 3 Enter the day of travel: 15 Enter the number of passengers: 2 You have requested flight information for flights to Charlotte on 3/15/2019 for 2 passengers. This information will be emailed to the address in account number 2345. Thank you for your request. NOTE: Of course, if any of the inputs don’t meet the criteria, the user will be asked to correct them, using the loop logic of Chapter 7. For example: Enter your account number (1000 – 9999): 345 Account number must be between 1000 and 9999. Enter your account number(1000 – 9999): 2345
4. (Chapter 8) The New Bern Creamery Coffee Shop charges $1.75 for a cup of coffee and offers add-ins as follows: Add-In Price ($) Cream 0.85 Cinnamon 0.30 Chocolate 0.60 Amaretto 1.60 Whiskey 1.75 Put the add-in names and prices in parallel arrays. Allow a user to order add-ins continuously, including the same item more than once, until they enter : Stop. After each item entered, display the add-in name and price or the message: Sorry, we do not offer that selection. After all items have been entered, display the total price
def tution(current):
final = (5/100 * current)
final2 = final + current
return final2
def houseCalc(g):
g1 = (25/100 * g)
g2=g1/12
return g2
#MAIN PROGRAM STARTS HERE:
current = 10000;
for x in range(1,10):
new = tution(current)
current=new
print(new)
g = int(input("Enter your Annual Salary : "))
salary = houseCalc(g)
print(salary)
print('Flight App for Charlotte or Atlanta')
shift = 0
while 1000 > shift or 9999 < shift:
try:
shift = int(input("Please enter your shift (1000 - 9999) : "))
except ValueError:
print("That wasn't an integer :(")
continue
shift2 = 0
while 1 > shift2 or 2 < shift2:
try:
shift2 = int(input("Enter 1 for Charlotte or 2 for Atlanta"))
if shift==1:
put = "charlotte"
else:
put = "Atlanta"
except ValueError:
print("That wasn't an integer :(")
continue
shift3 = 0
while 1 > shift3 or 12 < shift3:
try:
shift3 = int(input("Enter Month number between 1 and 12"))
except ValueError:
print("That wasn't an integer :(")
continue
day1=0
if(shift3==1 or shift3==3 or shift3==5 or shift3==8 or shift3==12 or shift3==10):
while 1 > day1 or 31 < day1:
try:
day1 = int(input("Enter Day number :"))
except ValueError:
print("That wasn't an integer :(")
continue
elif(shift3==2):
while 1 > day1 or 29 < day1:
try:
day2 = int(input("Enter Day number :"))
except ValueError:
print("That wasn't an integer :(")
continue
elif(shift3==4 or shift3==6 or shift3==7 or shift3==9 or shift3==11):
while 1 > day1 or 30 < day1:
try:
day3 = int(input("Enter Day number :"))
except ValueError:
print("That wasn't an integer :(")
continue
shift4 = 0
while 1 > shift4 or 8 < shift4:
try:
shift4 = int(input("Enter number of passengers between 1 and 8"))
except ValueError:
print("That wasn't an integer :(")
continue
print("You have requested flight information for flights to", put , "on", day1,"/",shift3,"/2019 for", shift4, "passengers. This information will be emailed to the address in account number", shift, "Thank you for your request")
Code Snippets




I need the pseudocode and python for the four attached problems: 1. (Chapter 5 - For...
USING PYTHON. please print screen it working (input and output)! Create a program for the following: Orlando International Airport is creating an app that allows a passenger to check on the availability of flights in 2020. As a first test, a user may check on flights to either Albany or Austin. To get into the app, the user must enter an account number, which must be between 1500 and 9999. The user should then be asked to enter 1 for...
Write a program in Python that computes the interest accrued on an account. You can modify the “futval.py” program given in Chapter 2 to accomplish it. Your program should use a counted loop rather than a formula. It should prompt the user to enter the principal amount, the yearly interest rate as a decimal number, the number of compounding periods in a year, and the duration. It should display the principal value at the end of the duration. To compute...
CPT 180 Chapter 2 Assignment 3 Directions Using the following guidelines, create a python program. 1. Create a program named printRandomNumbers that gets input from the user and then produces a list of random numbers. 2. Import the random module 3. Add three comment lines at the top of the program that contain: a. Program Name b. Program Description c. Programmer's Name (You) 4. Prompt the user for the following: a. Number of random numbers required b. Lower limit of...
I've got 1-5 done, but I have read this chapter up and down and
can't find the rest of the answers. Any help would be awesome,
thank you.
EVIEWING THE BASICS REV four major functions of an OS 1. List four Which app do you use on the Windows 8 Start screen to install new apps? What might happen to the Windows system if too many services are running as indicated by multiple icons in the norification area of the...
Chapter 08 Python Assignment: Question 1-5 Please I need help in my python course. Question 1 The finally clause of a try statement a. can be used to recover from an exception b. is required c. can be used to display more information about an exception d. is executed whether or not an exception has been thrown 10 points Question 2 Which of the following is the correct way to code a try statement that catches any type of exception...
Choose 3 of 5 Problems to Solve
Need Soon as possible
Choose 3 of5 Problems to Solve (20 Point/Each) Problem l: Triangle Printing Program: Write an application that prints a right triangle with 1 to 8 rows. Prompt the user to enter an odd number in the range of 1 to 8 to specify the number of rows in the diamond. Add a validation loop to ensure the user does not enter an even number or a number outside the...
I NEED THE PSEUDOCODE New Balance = Principal * (1 + rate/T)T Principal is the opening balance in the account. Rate is the interest rate, and T is the number of times the interest is compounded during a year (T is 4 if the interest is compounded quarterly). Write a program that prompts the user for the principal, the interest rate, and the number of times the interest is compounded. The output must be formatted in the following format: Interest...
A - Write pseudocode B - Write A PYTHON PROGRAM Driver’s License Exam The local driver’s license office has asked you to design a program that grades the written portion of the driver’s license exam. The exam has 20 multiple choice questions. Here are the correct answers: B D A A C A B A C D B C D A D C C B D A Your program should store these correct answers in an array. (Store each question’s...
In this assignment you are asked to write a Python program to determine all the prime numbers in between a range and store them in a list that will be printed when the range is searched. The user is prompted for two positive integer values as input, one is the start of the range and the other is the end of the range. If the user gives a negative value or enters a second number that is lower than the...
Need help with these problems
Chapter 5 1. What is the Present value of the following cash flows? Period Cash Flow 500 750 500 -250 4 Given a discount rate of 7.5% what is the PV of these cash flows? 2. You are ready to buy a house and you have $25,000 for a down payment and closing costs. Closing costs are estimated to be 4% of the loan value. You have an annual salary of $40,000. The bank is...