Inspiration

COVID-19 is one of the biggest challenges in society right now. People are allowed to go out but they have to keep a distance of 6 feet from others. Keeping a distance of 6 feet is sometimes unavoidable, and if the other person is contacted with Coronavirus, then the chances are high for the person to get Coronavirus too. Therefore, programs that alert people about sick people (who have Coronavirus) in case of getting close to them will be quite helpful.

What it does

The program will calculate the spread out cycle of Coronavirus in three different stimulations: when people move randomly, wisely, or semi wisely with considering the possible error rate.

How I built it

We used the C++ language to implement our program. We used Object-Oriented programming to create different classes in order to have a more organized program. The class Position has the coordinate and location of the person, it can move the person up, down, left, or right. Also, it can calculate the distance of the person with another person. The class Person has access to the position of the person, if the person is sick or not, and error rate. This class has functions that will move the person randomly or wisely, and it can update the health condition of the person.

Challenges I ran into

We ran into many errors and challenges. First of all, since the sizes of the cities were very huge, our program took a very long time to compile and we couldn't see the results. After trying to run the program with smaller sizes, the number of cycles came out to be negative, and we realized that we have an infinite loop. Since the program took longer than 2 minutes to compile and I wanted to be able to fit it in the demo, I changed the coefficient for converting square miles to square ft from 27878000 to a smaller number like 100.

Accomplishments that I'm proud of

This program will work for different cities and also, instead of just one type of movement we created three types of movements. It calculates distance, updates the health of a person, and considers the error rate too.

What I learned

We learned more deeply about C++ programming, and how the Coronavirus spreads out and how we can actually control it by maintaining social distancing.

What's next forCOVID19-LocationAlert

The next step is to develop this program in a way that works for all the cities in the San Francisco Bay Area. We can have a list of cities with their area sizes. Then, we can read and parse the file and save the cities in a vector or an array. We can repeat the simulations a few times and calculate the average of simulations in order to get more precise results.

Built With

Share this project:

Updates