Quiz #4

For quiz number 4, here is the problem Ken told us to do.

QUIZ4

For more information check out this page

Anyways this quiz was not as difficult as I thought it would be, but anyways here is my code in case you might need it.

For this code you should use (long double) instead of (int) in order to get a greater aproximation, due to the number of integers the computer will show.

Here is how the program should be seen on Cygwin when used:

Screenshot14.1

In case you don’t know what #include <iomanip> here is an explanation, basically it’s called Input Output Manipulation

During my first try I had problems with Quiz4, that’s the reason why I had to do it over again, did it twice before I got the working one.

Screenshot14.2

 

CC BY-SA 4.0 Quiz #4 by canadamike17 is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.