Highlights
Instructions: In one file, write programs for the tasks below and upload the file (.py) to Blackboard. In the top comments section of the file, please include your name, the date, and the assignment number. While you do not have to add comments for every line of code, please include comments to tell a reader what you are doing. Commenting your code also suggests to me that you know what you are doing.
While there is no one way to do things, your code should only use commands and methods from class. I do not want you using other commands that you got from the internet.
Also use the #%% command to divide each answer into its own cell. Note also include #%% after the last line of code in the program.
Failure to follow instructions will result in loss of points.
Create a pie chart function and then call the function twice to recreate the revenues and expenditures pie for the Rutgers budget Use the explode feature to pull out the tuition and fees wedge for revenues and salary and wages for expenditures. Comment on what are the biggest source of revenues and expenditures, respectively and if these were why you expected or not (and why). (tip: create two sets of lists, one for revenues and other for expenses. Then make a pie chart. Then embed the pie chart into a function)
Perform the following steps:
Next generate an array of 100 random numbers from a uniform distribution between 0 and 10, call this array, x. (use random package from numpy)
Next create another array from Normal (0,2) distribution, call this array, e.
Then generate a new variable called y, where y = 2 + 3x + e
Call the scatter plot function plotting y vs x (and give xlablel, ylabel and plot title which are given in quotes).
Repeat steps (b) – (e) but this time create a new variable, e1, which is an array from Normal(0,10) distribution; create y1 = 2+3x+e1
Use correlation command in numpy to get correlations for each.
Comment on the differences between the two graphs and the correlations.
In Assignment 4 you calculated the fixed monthly payments for a mortgage. But each of those monthly payments combines some fraction that goes for interest on the loan and some fraction that goes toward paying of the principal (the mortgage loan amount).
The goal here is to create four arrays: (1) an array from 1 to 360, which is each monthly period. (2) the total principal left on the mortgage after each month. (3) The amount of the fixed monthly payment that goes toward interest. (4) The amount of the monthly payment that goes toward the principal.
The goal is to write a loop that calculates the fraction of each monthly payment that goes toward interest and goes toward principal. The key thing to remember is that overtime more and more will go toward principle (so you really don’t start to build up equity till later in the loan period). Assume a house value of 500000 with 20% down (loan value 400000), a 5% interest rate and 30-year mortgage.
Steps:
Begin with crate a variable equal to the loan amount, call this variable, principal.
Get total monthly payments from your function from Assignment #4. Call these monthly payments, payment
Calculate monthly interest on outstanding loan interest_portion = (rate/12)*principal
Get amount of monthly payment toward principal: principal_portion = payment – interest_portion
Update principal: principal = principal – principal_portion
Repeat (3) – (5) for 30 years (360 periods)
This IT Computer Science Assignment has been solved by our IT Computer Science Experts at onlineassignmentbank. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.