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

MATLAB QUESTION I NEED ONLY PART B,C,D AND E 1) Word problem: You are installing

ID: 2084615 • Letter: M

Question

MATLAB QUESTION

I NEED ONLY PART B,C,D AND E

1) Word problem: You are installing a wind farm on your friend's farm in Oregon. The average cost of installing a wind turbine is around S50,000, and the turbine can produce 10kW per hour when the wind blows strong enough. Your friend's farm uses (on average) about 1,500 kW per month. The average cost per kW hour in Oregon is 9.8 cents. Assuming that the wind blows half the time, answer these two questions: 1) How long will it take to pay off the turbine? 2) How many turbines would your friend need to meet all of their energy needs? a. Turn in a script which has the following in comments (no actual code) i. What will the script do? ii. What is the input to the problem? iii. What is the output? iv. What are the constants you need to solve the problem? v. What is the equation you need to solve the problem? vi. What is the process/algorithm you need to follow to create the output?

Explanation / Answer

Part (B) (C) (D)

close all; clear all; clc;

cost = 50000;
cost_kWh = 0.098;

% Question (1)
tt = (2*cost)/(10*cost_kWh); % time taken in hours

tt_day = tt/24;
tt_day2 = floor(tt_day);
tt_hr = (tt_day - tt_day2)*24;
tt_hr2 = floor(tt_hr);
tt_min = round((tt_hr - tt_hr2)*60);

fprintf('Time taken = %d days %d hours %d minutes ',tt_day2,tt_hr2,tt_min);

% Question (2)
time = 30*24*0.5; % time in hours for which wind blows in one month
total_energy = 1500*30*24;
energy_per_mill = 10*time;
num = total_energy/energy_per_mill;
fprintf('Number of mills = %d',num);

Part (E)

close all; clear all; clc;

cost = 50000;
cost_kWh = 0.098;

x = input('Enter amount of time for which wind blows as a fraction(0-1) : ');

% Question (1)
tt = cost/(10*cost_kWh*x); % time taken in hours

tt_day = tt/24;
tt_day2 = floor(tt_day);
tt_hr = (tt_day - tt_day2)*24;
tt_hr2 = floor(tt_hr);
tt_min = round((tt_hr - tt_hr2)*60);

fprintf('Time taken = %d days %d hours %d minutes ',tt_day2,tt_hr2,tt_min);

% Question (2)
time = 30*24*x; % time in hours for which wind blows in one month
total_energy = 1500*30*24;  
energy_per_mill = 10*time;
num = total_energy/energy_per_mill;
fprintf('Number of mills = %d ',num);