Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Use a while loop to create a table that converts angle values from degrees to ra

ID: 2319895 • Letter: U

Question

Use a while loop to create a table that converts angle values from degrees to radians, from 0 to 360 degrees, in increments of 10 degrees. (1 radian = 57.29 degrees) The final commands that will print the table in the command window will be like this: disp ('Degrees to Radians') disp ('Degrees Radians') fprintf (' %8. Of %8.2f ', table) Imagine that you are a proud new parent. You decide to start a college savings plan now for your child, hoping to have enough in 18 years to pay the sharply rising cost of education. Suppose that your folks Give you $1000 to get started and at the beginning of each month you contribute $100. Suppose also that the interest rate is 6% per year compounded monthly, which is equivalent to 0.5% each month. Use a for loop to find the amount in the savings account at the beginning and end of each month for the next 18 years. (Create a vector of values.) Give the yearly account balances in a table (End of Year 1 to year 18). a. Plot the balance in the account as a function of time (in months). (Plot time on the horizontal axis and dollars on the vertical axis.)

Explanation / Answer

(1)

clear all
close all
clc
startvalue=0;
endvalue = 0;
while 360
r=endvalue+57.29
endvalue=endvalue+10;
end
disp('Degrees to Radians')
disp('Degrees Radians')
fprintf('%8.of %8.2f ',table)