diff options
Diffstat (limited to '797/CH1/EX1.2s/1_02_solution.sce')
-rw-r--r-- | 797/CH1/EX1.2s/1_02_solution.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/797/CH1/EX1.2s/1_02_solution.sce b/797/CH1/EX1.2s/1_02_solution.sce new file mode 100644 index 000000000..3f4efd0f2 --- /dev/null +++ b/797/CH1/EX1.2s/1_02_solution.sce @@ -0,0 +1,9 @@ +//Solution 1-01 +WD=get_absolute_file_path('1_02_solution.sce'); +datafile=WD+filesep()+'1_02_example.sci'; +clc; +exec(datafile) +totE = turbine_power * t; //total energy generated by turbine in one yeear [kWh] +money_saved = totE * unit_cost; //money saved per year [$] +printf("The amount of electric power generated by wind turbine is %1.2f kW", totE) +printf("\nMoney saved by turbine per year: \$%1.2f", money_saved); |