In my classes I use Homer and SAM a lot. I think both are good, but both have dr
ID: 3846308 • Letter: I
Question
In my classes I use Homer and SAM a lot. I think both are good, but both have drawbacks. Homer is not financially detailed, but has a lot of functionality and a powerful optimization scheme. SAM has superior financial capability. So, we want to create our own renewable energy analysis tool. You guys will model a renewable energy technology in C++. You can use SAM and Homer as guides. Each group will choose a technology from the list below: Battery Flywheel Solar Wind Micro-Turbine Diesel Generator Biomass Basically, the assignment is to create code that will accept location, price, and technical information to determine the amount of energy, the annual cost, the cost over the lifetime, and levelized cost of energy. Therefore you need to understand how the technology works, the cost of the technology, the inputs, and coding. This information comes from the NREL documents.
Explanation / Answer
Hey heres the code done so far, if you provide some details about this NREL documents I'll edit and put the whole code. Post comments about it.
SourceCode:
#include<iostream>
#include<string>
using namespace std;
int main()
{
string loc;
int price;
string info;
//get location
cout<<"Enter location: ";
cin.ignore();
getline(cin,loc);
//get price
cout<<endl<<"Enter price: ";
cin>>price;
//get techinal information.
cout<<endl<<"Enter technical information: "<<endl;
cin.ignore();
getline(cin,info);
return 0;
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.