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
For example, given inspiration
1.0 and perspiration
0.5, you would set
We've provided some starter code, but it's incorrect!