The social media calculator.
The social media calculator.

 

For my app I have decided to make a calculator that show people how much time they spend on various social media over the span of a week, a month, a year, and their lifetime.

The app will ask users how much time they spend on Facebook, Twitter, Instagram, and Snapchat. It will also ask them to fill in how many posts they make per day.

My algorithm is as follows (and I’m terrible at “math with words” as Chris Herman put it):

Step One:

Collect social media information from fields.

Step Two:

Make JSON to store mathematical equations for each time frame (week, month, year, lifetime).

Step Three: 

Run user’s input through the JSON and then somehow have it know when to convert minutes into hours, days, etc. so it wouldn’t sum up to 1,287 minutes spent on Facebook.

Step Four:

After finishing the equation and converting to the largest amount (hours, days, weeks) it will concat the amount of time, name of media, and the time frame into a sentence stating the amount of time they spend on social media and the amount of posts they make withing a certain time frame. (i.e. You will spend 2 hours 14 minutes on Facebook in a week.)

I probably have made this sound much simpler than it actually will be, and I might have underestimated how hard this will be….

 

 

So, here’s the link to my Javascript quiz, I had to change it from the original plan because I realized I have less of an idea of what I was doing than I thought I did.

Enjoy my quiz!

Cody’s Social Media Quiz

 

Social Media Calculator