beyondgrader.com Logo
DemoBrowseAboutTeamLogin

Inspiration v. Perspiration

Geoffrey Challen // 2022.6.0

Computers can do basic math, quickly and with near-perfect accuracy. This is one of the many things that makes them so useful.

Learning to program takes time and energy, but as long as you keep trying, you'll get there. As famous inventor Thomas Edison once said, genius is 1% inspiration and 99% perspiration. Using that formula, compute the genius level as a number between 0 and 100 given two double variables: inspiration and perspiration, each between 0 and 1, and save it a double variable named genius. For example, given inspiration 1.0 and perspiration 0.5, you would set genius to 50.5.

We've provided some starter code, but it's incorrect!