Loop- Code Matlab -Solar Array Sizing
A customer would like to install a solar panel array for his small business. The daily peak power is estimated to be 50 kW and his budget is $10,000.
Task 1: If the price for a single solar panel is $50, given the volume discount table below, how many solar panels can he afford? (Hint: see bottom of problem)
Number of panels purchased |
Discount per panel |
1 – 5 |
0% |
6-29 |
10% |
30 – 99 |
15% |
100+ |
20% |
Task 2: Now, assuming each solar panel can supply 40 Watts, how much does it cost for his business to become 100% off-the-grid? Don’t forget to include the volume discount! (Hint: see bottom of problem)
Off-the-grid means to be completely powered from renewable energy. In this case is solar energy. Hint: Use a loop to solve this problem. Use the loop index to represent the number of solar panels, and change the discount percentage as necessary for each loop iteration.
MATLAB code:
Output:
FOR ANY HELP JUST DROP A COMMENT
Get Answers For Free
Most questions answered within 1 hours.