Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

New balance = Old balance + (Old balance * Monthly interest rate) + Monthly contribution (1) Since the university tuition fee increases over the years,

image text in transcribed
image text in transcribed
New balance = Old balance + (Old balance * Monthly interest rate) + Monthly contribution (1) Since the university tuition fee increases over the years, you are asked to further analyze whether th saving is enough to cover the tuition fee for a 4-year study program when the child turns 18 and enter post-secondary education. You will help them analyze this for 3 different types University programs: Art: Science, and Engineering, for which the average tuition fees in the current year are as follows: $5550 $6150, and $6550 respectively. The predicted average percentage of tuition increase each year is 7%. Fach year the new fee due to the annual increase is calculated as follows: Newcost=Oldcost+(Oidcost*Annualincreaserate) Version 0: Getting Started Download and unzip the flies in the voGetstarted.aip file into your Current folder. Open the lab3v0.py file in the Editor Window and inspect it before running it. The program simply generates a counter variable that increments by 1 and stores it as a vector using a for loop. A simple linear plot is also produced. The command output and plot should match the image provided in the zip file. Version 1: Savings/Tultion Calculation Download and unzip the files in the V1Saving zip file into your Current Folder. In Version 1, you are asked to calculate the balance of the saving account in each month over 18 years, so the total saving by the end of the 18ti year is known. Then calculate the predicted totol tuition fee by the start of the 18m year, which should be the total fee over a 4-year university program (i.e. from year 19 to year 22). A for loop must be used for the above calculations. Display the final savings amount and tuition cost for the 3 programs numerically in the command console and graphically through a plot. Please use the provide lab3v1.py file to write your program. Remove or modify the exiting code to satisfy the above requirements. You can perform the following steps below ENCMP 100 Computer Programming for Engineers 1. Calculate the monthly balance of the savings plan for the next 18 years, based on the formula in equation (1). You must save the amount in a listdarray format. 2. Calculate the predicted tuition fee per year for the next 22 years, and then add up the fees over the last 4 college years (from the year 19 to year 22 ) to get the predicted total education cost for a 4 -year program. 3. Display the final savings amount and tuition cost to 2 decimal spots by using the print statement. To visualize the results, you are also asked to plot the annual savings with respect to the number of years; plot a horizontal line (threshold) indicating the total tuition fae for each program on the same plot. There should be 3 horizontal lines (different colors for each) with each representing a different program. Finally, add a suitable title, label all axis and provide a legend. The output in the command window should match the image in the CommandOutputv1.jpg file that was unzipped. Your plot should also match (as close as possible) to the one in the image. Include a section comment header called Saving Calculation, Tuition Calculation, and Plot and summarize what the sections does

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions