A) (Assume the user enters George Washington.) #include #include #include using namespace std; int main() { string userInput; cout cin >> userInput; cout return 0; } B) (Assume the user enters...



A) (Assume the user enters George Washington.)


#include


#include


#include


using namespace std;


int main()


{


string userInput;


cout <>


cin >> userInput;


cout <><>


return 0;


}


B) (Assume the user enters George Washington.)


#include


#include


#include


using namespace std;


int main()


{


string userInput;


cout <>


getline(cin, userInput);


cout <><>


return 0;


}


C) (Assume the user enters 36720152. Use a calculator.)


#include


#include


using namespace std;


int main()


{


long seconds;


double minutes, hours, days, months, years;


cout <>


cout <>


cout <>


cout <>


cin >> seconds;


minutes = seconds / 60;


hours = minutes / 60;


days = hours / 24;


years = days / 365;


months = years * 12;


cout <><><>


cout <><><>


cout <><><>


cout <><><>


cout <><><>


cout <><><>


return 0;


}



May 26, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here