#include<iostream>intmain(){usingnamespace std;double degrees;double minutes;double seconds;constint degreeToMinute =60;constint minuteToSecond =60; cout <<"Enter a latitude in degrees, minutes, and seconds: "<<endl;cout <<"First, enter the degrees: ";cin >> degrees;cout <<"Next, enter the minutes of arc: ";cin >> minutes;cout <<"Finally, enter the seconds of arc: ";cin >> seconds;cout << degrees <<" degrees, "<<minutes<<" minutes, "<<seconds;cout <<" seconds = "<< degrees+(minutes+seconds*(1./minuteToSecond))*(return0;}
#include<iostream>intmain(){usingnamespace std;longlong worldPopulation;longlong usPopulation;cout <<"Enter the world's population: ";cin >> worldPopulation;cout <<"Enter the population of the US: ";cin >> usPopulation;cout <<"The population of the US is "<<100.0*usPopulation/worldPopulcout <<"% of the world population.\n";return0;}