This is my first post. I was looking at the news (with coronovirus spreading and mass panic ensuing) and decided to make a little simulator of the spread of coronavirus based on infectivity rates and mortality rates. This isn't complete, I'm still adding stuff to this to make it more accurate, but it's pretty good for now. Hope you guys enjoy it!
Good job! One thing I would recommend is to remove
using namespace std;, as that is a bad practice
@SilentShadowBla Hey, I can't see the loop. The main funcion ends with
and at the end of this function we found:
cout << "Any feedback? (Must be 1000 words or less)" << endl; char feedback; cin >> feedback; file << feedback << "\n"; file.close();
So where exactly is the loop?
UPDATE: COVID-19 Simulator is now updated to 0.0.15 (Fuschia)
- age is now a factor in the pandemic. There are a bunch of old people with twice as high of a mortality rate.
- the objective is to get under a 3% mortality rate and try to get rid of the pandemic as quick as you can.
- a few more features to make this more game-like
FUTURE: more features to be added, including the socio-economic effects of the COVID-19 pandemic and means of decreasing the mortality rate
- fixed bug where simulation wouldn't stop when no one is infected
- increased "mass panic" threshold
The infectivity rate is based on real stats, as well as the mortality rate. I am working on increasing the mortality rate.
This is meant to be a simulation of a real COVID-19 pandemic, which is why I am adding more features, and why the infectivity rate/mortality rate isn't as high.
It's a little bit too easy to win. Also, it doesn't automatically stop when the number of infected people hits zero. Maybe make the infection rate twice as high, or something like that? This is a very good idea, and well thought out if I may. Good work so far!