Program construction task in the middle of the course
a) Construct a program, which asks the percentage value of men
from the total population as well as individually the populations
of Finland and Sweden, and gives the amount of men in these countries
as output.
You can presume, that all inputs from user are acceptable.
Example:
Enter the percentage value of men: 52
Enter the population of Finland (as millions of people): 5.2
Amount of men this far: 2.7 million.
Enter the population of Sweden: 8.9
Men in these countries: 7.3 million.
b) Modify the program in such way that in addition of Finland
and Sweden the program asks populations of all the other
Scandinavian countries (Norway, Denmark, Iceland).
You can still presume, that all inputs from user are acceptable.
Example:
Enter the percentage value of men: 52
Enter the population of Finland (as millions of people): 5.2
Amount of men this far: 2.7 million.
Enter the population of Sweden: 8.9
Men in these countries: 7.3 million.
Enter the population of Norway: 4.4
Men in these countries: 9.6 million.
Enter the population of Denmark: 5.3
Men in these countries: 12.4 million.
Enter the population of Iceland: 0.3
Men in these countries: 12.6 million.