Sleep Deprivation Calculation
(Image: https://dribbble.com/shots/3872165-Sleeping-Dog)
GitHub Repository: HERE
Made with: Visual Studio, NodeJS
Programming Language: JavaScript
Did you know that a puppy averages 5-6 hours of sleep at night! This may be a norm for them however some people will be sleep deprived. Sleep deprivation is very important as it can increases the chances of a heart attack, decrease memory loss, and at long periods it can cause hallucinations. That being said this program will determine the actual and ideal hours of sleep for each night of the week. It will also calculate in hours how far you are from your weekly sleep goal. The hard-coded values can be adjusted to be tailored to your sleep schedule needs. On the back-end, we calculate the number of hours of sleep one has every day. On the 7th day, the program performs a summation of all the days and compares this value to the targeted amount of sleep, and determines whether or not the ideal amount of sleep has been met.