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:

Easton BB16ZAL Zcore XL BBCOR 3 adult baseball bat 34in 31oz
Easton BB16ZAL Zcore XL BBCOR 3 adult baseball bat 34in 31oz
$79.19
2017 Rawlings 5150  3 31 28 oz BBCOR Adult Baseball Bat 2 5 8 BB75
2017 Rawlings 5150 3 31 28 oz BBCOR Adult Baseball Bat 2 5 8 BB75
$144.87
Rawlings 2017 Velo Hybrid 3 Adult Baseball Bat BBCOR
Rawlings 2017 Velo Hybrid 3 Adult Baseball Bat BBCOR
$199.87
2017 Rawlings 5150  3 31 28 oz BBCOR Adult Baseball Bat 2 5 8 BB75 NEW
2017 Rawlings 5150 3 31 28 oz BBCOR Adult Baseball Bat 2 5 8 BB75 NEW
$169.99
2017 Rawlings BB75 5150 BBCOR Adult Baseball Bat 31 28 oz NEW
2017 Rawlings BB75 5150 BBCOR Adult Baseball Bat 31 28 oz NEW
$199.99
Louisville Slugger Warrior Metal Adult Baseball Bat  31 in 28 oz
Louisville Slugger Warrior Metal Adult Baseball Bat 31 in 28 oz
$88.63
Easton Z Core Speed Whiteout BB17ZSW Adult BBCOR Baseball Bat 31in 28oz
Easton Z Core Speed Whiteout BB17ZSW Adult BBCOR Baseball Bat 31in 28oz
$169.88
RAWLINGS Adirondack Adult Wood Bat Hard Maple Half Dip Medium Barrel 31 R271MB
RAWLINGS Adirondack Adult Wood Bat Hard Maple Half Dip Medium Barrel 31 R271MB
$59.95
Easton S400 3 BBCOR Adult Baseball Bat  31 28oz 2 5 8 Diameter  BB16S400
Easton S400 3 BBCOR Adult Baseball Bat 31 28oz 2 5 8 Diameter BB16S400
$34.99
2017 DeMarini CF Zen Balanced 3 34 31 oz Adult BBCOR Baseball Bat WTDXCBC 17
2017 DeMarini CF Zen Balanced 3 34 31 oz Adult BBCOR Baseball Bat WTDXCBC 17
$349.87
2017 Easton Mako Beast 3 Adult BBCOR Baseball Bat BB17MK All Sizes
2017 Easton Mako Beast 3 Adult BBCOR Baseball Bat BB17MK All Sizes
$289.99
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
NEW Rawlings Big Stick Maple Bamboo Composite R243CH Adult Wood Baseball Bat 31
NEW Rawlings Big Stick Maple Bamboo Composite R243CH Adult Wood Baseball Bat 31
$89.91
RAWLINGS ADULT 2016 ADIRONDACK BLACK ASH BASEBALL BAT
RAWLINGS ADULT 2016 ADIRONDACK BLACK ASH BASEBALL BAT
$39.99
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
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 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  3 34in 31oz MCBP28
2018 Marucci Pro Metal POSEY28 BBCOR Adult Baseball Bat 3 34in 31oz 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
Brett Bros Maple Bamboo Wood MB110 Baseball Bat 31 inch
Brett Bros Maple Bamboo Wood MB110 Baseball Bat 31 inch
$79.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 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 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 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 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
Rawlings Quatro 34 31 BBCOR Adult Baseball Bat BB7Q4 Composite 2017
Rawlings Quatro 34 31 BBCOR Adult Baseball Bat BB7Q4 Composite 2017
$140.00


Recently Purchased Adult 31:


2018 demarini cf insane bbcor adult baseball bat wtdxcic18 3431oz, 2018 demarini voodoo insane bbcor adult baseball bat wtdxvic18 3431oz, 2018 demarini voodoo one bbcor adult baseball bat wtdxvoc18 3128oz, 2018 demarini cf insane bbcor adult baseball bat wtdxcic18 3128oz, 2018 demarini cf zen bbcor adult baseball bat wtdxcbc18 3128 oz, brett bros maplebamboo wood mb110 baseball bat 31 inch, new rip it b1403 3431 prototype bbcor baseball bat adult, louisville slugger select 718 3 wtlbbs718b3 adult baseball bat 3431, louisville slugger omaha 518 3 wtlbbo518b3 adult baseball bat 3128, nike mx5 gt 31 in 28 oz besr certified adult bat new in plastic wrap, demarini cf insane wtdxcic17 adult endloaded bbcor baseball bat 3128, new marucci vernon wells maple wood adult baseball bat vw10 31 inch, easton sl14mk9 mako cxn composite adult baseball bat 3122 9 usssa 2 58 , demarini vd515 voodoo overlord ft halfhalf adult baseball bat 3126 5 usssa, louisville slugger tpx cb86w warrior alloy adult baseball bat 3431 besr 3, 2017 louisville slugger solo 617 3 bbcor adult baseball bat 3128 wtlbbso6173, mizuno 2018 generation bbcor 3 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, demarini voodoo insane endloaded 3 wtdxvic18 adult baseball bat 3431, demarini voodoo balanced 3 wtdxvbc18 adult baseball bat 3128, sale 2017 rawlings 5150 3 bbcor adult bat 2 58 bb75 3027312832293431, easton bb16zat zcore torq bbcor 3 adult baseball bat 34 in 31 oz used, 2018 rawlings velo bbcor adult baseball bat 2 58 3 bb8v3 31in28oz, 2018 rawlings 5150 bbcor adult baseball bat 2 58 3 bb853 31in28oz, easton cxn connexion sc900 bt200 3128 adult baseball bat 3 mens league, vintage easton black magic cu31 bx11 3329 oz baseball bat 2 34 barrel adult, 34025134inch31oz mizuno 340251 maxcor adult bbcor baseball bat 34inch31o, 2015 bb15mk bbcor easton mako 3431 3 drop adult baseball bat, used easton bb13s1 3431 s1 bbcor adult baseball bat, new demarini voodoo overlord 3128 vdc15 bbcor baseball bat 2015 adult, rawlings quatro 3431 bbcor adult baseball bat bb7q4 composite 2017, new rawlings big stick maplebamboo composite r243ch adult wood baseball bat 31, easton c405 big barrel brx10 31 28oz octane besr adult baseball bat peen finish, demarini di13 pro maple 3 wtdxi13bg18 adult baseball bat 3431



Comments are closed.