Adult 31

I am learning how to use C++ and one of the first programs is as follows...?

I am learning how to use C++ and one of the first programs is as follows...

write a small program that asks the user for their age and then outputs a message, such as:
1-12 - You are a child.
13 - 17 You are a teenager.
18 - 30 You are an young adult.
31 - 55 You are a mature adult.
over 55 You are senior citizen

How would I do this??

I have a start here, can someone fill me in on more details because I am just trying to get the hang of it. My brother in law is a full time programmer so he has been kind of teaching me a little bit. Can someone add a little more detail please??

unsigned int age = 0;
cin >> age;

if (age == 0) {
// user has not been born
}

if (age >=1 && age <= 12) {
// child
}
else if (age >= 13 && age <= 17) {
// teenager
}

#include
#include
using namespace std;

int main()
{
int age;
string type;
cout << "How old? ";
cin >> age;
if (age == 0)
{
type = "not born";
}
if (age >= 1 && age <= 12)
{
type = "a child";
}
if (age >= 13 && age <= 17)
{
type = "a teenager";
}
cout << "He/she is " << type << endl;
system("pause");
}

Find Adult 31 On eBay Below:

2018 Mizuno Covert BBCOR Adult Baseball Bat 340429  3 31in 28oz
2018 Mizuno Covert BBCOR Adult Baseball Bat 340429 3 31in 28oz
$299.95
New Demarini VEC12 Vengeance 31 28 BBCOR Baseball Bat Red  3 Adult Alloy
New Demarini VEC12 Vengeance 31 28 BBCOR Baseball Bat Red 3 Adult Alloy
$74.95
2017 Louisville Slugger Omaha 517 3 31 28 oz Adult BBCOR Baseball Bat BBO5173
2017 Louisville Slugger Omaha 517 3 31 28 oz Adult BBCOR Baseball Bat BBO5173
$154.87
Brett Bros Maple Bamboo Wood MB110 Baseball Bat 31 inch
Brett Bros Maple Bamboo Wood MB110 Baseball Bat 31 inch
$79.99
Easton CXN Connexion SC900 BT200 31 28 Adult Baseball Bat 3 Mens League
Easton CXN Connexion SC900 BT200 31 28 Adult Baseball Bat 3 Mens League
$99.99
2018 Marucci Pro Metal POSEY28 BBCOR Adult Baseball Bat  3 31in 28oz MCBP28
2018 Marucci Pro Metal POSEY28 BBCOR Adult Baseball Bat 3 31in 28oz MCBP28
$299.95
2018 Marucci Pro Metal POSEY28 BBCOR Adult Baseball Bat 34 31oz  3 MCBP28
2018 Marucci Pro Metal POSEY28 BBCOR Adult Baseball Bat 34 31oz 3 MCBP28
$299.95
2018 Marucci Pro Metal POSEY28 BBCOR Adult Baseball Bat  3 34in 31oz MCBP28
2018 Marucci Pro Metal POSEY28 BBCOR Adult Baseball Bat 3 34in 31oz MCBP28
$299.95
2018 Marucci Pro Metal POSEY28 BBCOR Adult Baseball Bat 31 28oz  3 MCBP28
2018 Marucci Pro Metal POSEY28 BBCOR Adult Baseball Bat 31 28oz 3 MCBP28
$299.95
Marucci Vernon Wells Maple Wood Adult Baseball Bat VW10 31 inch
Marucci Vernon Wells Maple Wood Adult Baseball Bat VW10 31 inch
$149.99
2017 Marucci CAT 7 Connect BBCOR Adult Baseball Bat 3 MCBCC7 31 28
2017 Marucci CAT 7 Connect BBCOR Adult Baseball Bat 3 MCBCC7 31 28
$349.95
2018 DeMarini CF Zen BBCOR Adult Baseball Bat 31in 28oz WTDXCBC 18
2018 DeMarini CF Zen BBCOR Adult Baseball Bat 31in 28oz WTDXCBC 18
$449.95
2018 DeMarini Voodoo One BBCOR Adult Baseball Bat  3 31in 28oz WTDXVOC 18
2018 DeMarini Voodoo One BBCOR Adult Baseball Bat 3 31in 28oz WTDXVOC 18
$249.95
2018 DeMarini CF Zen Insane BBCOR Adult Baseball Bat 31in 28oz WTDXCIC 18
2018 DeMarini CF Zen Insane BBCOR Adult Baseball Bat 31in 28oz WTDXCIC 18
$449.95
2018 DeMarini CF Insane BBCOR Adult Baseball Bat WTDXCIC 18 31 28oz
2018 DeMarini CF Insane BBCOR Adult Baseball Bat WTDXCIC 18 31 28oz
$449.95
2018 DeMarini Voodoo BBCOR Adult Baseball Bat  3 31in 28oz WTDXVBC 18
2018 DeMarini Voodoo BBCOR Adult Baseball Bat 3 31in 28oz WTDXVBC 18
$299.95
2018 DeMarini CF Zen BBCOR Adult Baseball Bat WTDXCBC 18 31 28 oz
2018 DeMarini CF Zen BBCOR Adult Baseball Bat WTDXCBC 18 31 28 oz
$449.95
2018 Rawlings Velo BBCOR Adult Baseball Bat 2 5 8 31in 28oz  3 BB8V3
2018 Rawlings Velo BBCOR Adult Baseball Bat 2 5 8 31in 28oz 3 BB8V3
$299.95
2018 DeMarini Voodoo One BBCOR Adult Baseball Bat WTDXVOC 18 31 28oz
2018 DeMarini Voodoo One BBCOR Adult Baseball Bat WTDXVOC 18 31 28oz
$249.95
2018 Rawlings 5150 BBCOR Adult Baseball Bat 2 5 8 31in 28oz  3 BB853
2018 Rawlings 5150 BBCOR Adult Baseball Bat 2 5 8 31in 28oz 3 BB853
$199.95
2018 DeMarini CF Insane BBCOR Adult Baseball Bat WTDXCIC 18 34 31oz
2018 DeMarini CF Insane BBCOR Adult Baseball Bat WTDXCIC 18 34 31oz
$449.95
Easton S1 Power Brigade BB15S1 Adult BBCOR Baseball Bat 34in 31oz
Easton S1 Power Brigade BB15S1 Adult BBCOR Baseball Bat 34in 31oz
$119.88
2018 DeMarini Voodoo Insane BBCOR Adult Baseball Bat WTDXVIC 18 34 31oz
2018 DeMarini Voodoo Insane BBCOR Adult Baseball Bat WTDXVIC 18 34 31oz
$299.95
Marucci CAT7 BBCOR  3 MCBC7 Adult Baseball Baseball Bat 31 28
Marucci CAT7 BBCOR 3 MCBC7 Adult Baseball Baseball Bat 31 28
$249.99
Marucci CAT6 BBCOR  3 MCBC614 Adult Baseball Bat 31 28
Marucci CAT6 BBCOR 3 MCBC614 Adult Baseball Bat 31 28
$199.99
Marucci RBI Maple Adult Baseball Bat 31
Marucci RBI Maple Adult Baseball Bat 31
$59.99
Louisville Slugger Select 718  3 WTLBBS718B3 Adult Baseball Bat 31 28
Louisville Slugger Select 718 3 WTLBBS718B3 Adult Baseball Bat 31 28
$349.95
Louisville Slugger Vapor  3 WTLBBVA18B3 Adult Baseball Bat 31 28
Louisville Slugger Vapor 3 WTLBBVA18B3 Adult Baseball Bat 31 28
$99.95


Recently Purchased Adult 31:


victus hd13 matte ox blood maple matte reserve adult baseball bat , 2017 demarini cf zen balanced 3 3431 oz adult bbcor baseball bat wtdxcbc17, brett bros bamboo dragon wood bbbd baseball bat 31 inch, easton bb15s1 s1 bbcor adult baseball bat 3 bb15s13431, new marucci cutch22 pro model handcrafted maple adult baseball bat 31 mvei, easton omen adult baseball bat 3431 bbcor, brett bros maplebamboo wood mb110 baseball bat 31 inch, easton c405 big barrel brx10 31 28oz octane besr adult baseball bat peen finish, easton bk8 black magic 3128 adult baseball bat 3 rare alloy vintage, 2017 louisville slugger solo 617 3 bbcor adult baseball bat 3128 wtlbbso6173, demarini cf insane endloaded 3 wtdxcic18 adult baseball bat 3128, 2017 louisville slugger solo 617 3 3128 oz adult bbcor baseball bat bbso6173, 2017 rawlings 5150 3 3128 oz bbcor adult baseball bat 2 58 bb75, 2018 marucci f5 bbcor adult baseball bat mcbf5 2 58 3 31in28oz, 2018 marucci f5 bbcor adult baseball bat mcbf5 2 58 3 34in31oz, 2018 rawlings 5150 bbcor adult baseball bat 2 58 3 bb853 31in28oz, 2018 rawlings velo bbcor adult baseball bat 2 58 3 bb8v3 31in28oz, 2018 marucci cat 7 bbcor adult baseball bat 3 mcbc7 31 in28 oz, 2018 marucci cat 7 connect bbcor adult baseball bat 3 mcbcc7 34 in31 oz, 2017 rawlings 5150 3 3128 oz bbcor adult baseball bat 2 58 bb75, 2018 demarini voodoo insane bbcor adult baseball bat wtdxvic18 3431oz, 2018 demarini cf insane bbcor adult baseball bat wtdxcic18 3431oz, 2018 demarini voodoo one bbcor adult baseball bat wtdxvoc18 3128oz, 2018 demarini cf zen bbcor adult baseball bat wtdxcbc18 3128 oz, 2018 demarini cf insane bbcor adult baseball bat wtdxcic18 3128oz, louisville slugger tpx omaha cb95 31 31 oz 3 besr adult baseball bat, new easton s1 comp bb13s1 3431 bbcor baseball bat 2013 adult 3, demarini 2013 cf5 3 adult baseball bat bbcor 3128, new 2012 demarini cf5 bbcor dxcfc adult baseball bat 3128 3, 2011 demarini voodoo black 3 adult baseball bat 31 inch28ounce, easton bk61 0r typhoon alloy 31 28oz 3 2 58 diaadult baseball bat besr, easton bst3 sc900 stealth cnt 31x28oz adult baseball bat3rare usa see pics, demarini cf5 cfc12 2831 bbcor baseball bat 2 58 2012 adult brand new , demarini vexxum 3128adult baseball bat halfhalf model vnb9 ka153r besr, 2018 rawlings 5150 bbcor adult baseball bat 2 58 31in28oz 3 bb853



Comments are closed.