Exercise 7: More variables and some math

Contains in comments within the program some code
as asked in Extra Credit section.