Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

hey fellas, im in a big pinch with this assignement and could use some guidance on my Version 1. this code is to be written

hey fellas, im in a big pinch with this assignement and could use some guidance on my Version 1. this code is to be written with python and all the information of what im trying to get is listed below, thankyou do much in advance!
image text in transcribed
image text in transcribed
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 the saving is enough to cover the tuition fee for a 4-year study program when the child turns 18 and enters post-secondary education. You will help them analyze this for 3 different types University programs: Arts, 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%. Each year the new fee due to the annual increase is calculated as follows: New cost = Old cost + (Old cost * Annual increase rate) (2) Version 0: Getting Started Download and unzip the files in the voGetstarted zip 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/Tuition Calculation Dowriload 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 18on year is known. Then calculate the predicted totol tuition fee by the start of the 18th year, which should be the total fee over a 4 -year university program (Le. from year 19 to year 22). A for loop must be used for the above calculations. Oisplay 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 fee 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. Version 1 - Solution The savings amount is $85035.09 The cost of the arts program is $83287.22 The cost of the science program is $92291.25 The cost of the engg program is $98293.93 \# Copyright (c) 2022, University of Alberta \# Electrical and Computer Engineering \# A11 rights seserved. E Student name: * Student CCID: \# others: \# \# To avoid plagiarism, 119t che nsmes of pefsons, vefsion o author(a) * excluded, whose code, wordi, sdeas, of deta you wsed. To avoid F cheating. 11st the names of persons, excluding the ENCMP 100 Iab * instructor and IAs, who gave you compositional assistance. \# \# After each name, incluaing your own neme, entex in parencheges an 4 estimate of the person's contuzbucions tn pezcent. Whthout theise F numbera, adding to 100 t. follow-up queations may be acked. \# \# For anonymous sources, enter pseudonyms tn uppezciase, e. . .. SaURON, F followed by percentagea as above. Fmas a 1 ank to of a copy of the \# aource to the lab instructor before the assignment is due. import matplotlib.pyplot as plt import numpy as np print ('Version 1') F.A.A-.--Students eatt/write their code below here counter =[1] for in in range (0,216) : councer +=[1] print (f'counter (last value) ={ counter (1])n) plt.plot (range (0,216), counter) plt. show ()

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

Recommended Textbook for

Transactions On Large Scale Data And Knowledge Centered Systems Xxviii Special Issue On Database And Expert Systems Applications Lncs 9940

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Qimin Chen

1st Edition

3662534541, 978-3662534540

More Books

Students also viewed these Databases questions