//declaring header mains
#include <iostream>
#include <string>
using namespace std;
//Method: The main method
//Purpose: To get the users name, age, and money; and return the information
//Parameters: Name as string, age as integer, and money as a float value
//Returns: Users inputted name, age, and money
int main( )
{
//Declaring variables
string fullName;
int age;
float money;
//Promt the user to enter their age
cout << "\n Please enter your age: " ;
cin >> age;
//Prompt the user to enter their amount of money
cout << "\n Please tell me how much money you have: " ;
cin >> money;
//Prompt the user to enter their full name
cout << "\n Please enter your full name: " ;
getline( cin , fullName) ;
//Display the name back to the user; and adds another line
cout << "\n Thank you " << fullName << endl;
//Display the age back to the user
cout << "\n You are " << age;
cout << " years old; " ;
//Display the amount of money back to the user
cout << "\n and you have $" << money;
cout << " in your pocket." ;
//Giving the user an ending message
cout << "\n Goodbye .....\n " ;
// and finally, return zero
return 0 ;
}
Ly9kZWNsYXJpbmcgaGVhZGVyIG1haW5zCiNpbmNsdWRlIDxpb3N0cmVhbT4KI2luY2x1ZGUgPHN0cmluZz4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCi8vTWV0aG9kOiBUaGUgbWFpbiBtZXRob2QKLy9QdXJwb3NlOiBUbyBnZXQgdGhlIHVzZXJzIG5hbWUsIGFnZSwgYW5kIG1vbmV5OyBhbmQgcmV0dXJuIHRoZSBpbmZvcm1hdGlvbgovL1BhcmFtZXRlcnM6IE5hbWUgYXMgc3RyaW5nLCBhZ2UgYXMgaW50ZWdlciwgYW5kIG1vbmV5IGFzIGEgZmxvYXQgdmFsdWUKLy9SZXR1cm5zOiBVc2VycyBpbnB1dHRlZCBuYW1lLCBhZ2UsIGFuZCBtb25leQppbnQgbWFpbigpCnsKCS8vRGVjbGFyaW5nIHZhcmlhYmxlcwoJc3RyaW5nIGZ1bGxOYW1lOwoJaW50IGFnZTsKCWZsb2F0IG1vbmV5OwoKCS8vUHJvbXQgdGhlIHVzZXIgdG8gZW50ZXIgdGhlaXIgYWdlCgljb3V0IDw8ICJcblBsZWFzZSBlbnRlciB5b3VyIGFnZTogIjsKCWNpbi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