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:

31in Hybrid Bamboo Maple Adult Baseball Bat
31in Hybrid Bamboo Maple Adult Baseball Bat
$124.95
Easton BB16ZHL Zcore XL BBCOR 3 adult baseball bat 34in 31oz
Easton BB16ZHL Zcore XL BBCOR 3 adult baseball bat 34in 31oz
$179.99
DEMARINI VOODOO BLACK HALF + HALF ADULT BASEBALL BAT VDB11 31x28OZ  3
DEMARINI VOODOO BLACK HALF + HALF ADULT BASEBALL BAT VDB11 31x28OZ 3
$22.99
Rawlings 2018 BBCOR Baseball Bat Adult  3 2 5 8 Barrel Composite Yellow BB8Q3
Rawlings 2018 BBCOR Baseball Bat Adult 3 2 5 8 Barrel Composite Yellow BB8Q3
$399.95
Rawlings 2018 BBCOR Baseball Bat Adult  3 2 5 8 Composite Yellow 34 31oz
Rawlings 2018 BBCOR Baseball Bat Adult 3 2 5 8 Composite Yellow 34 31oz
$399.95
2018 Rawlings Velo 3 34 31 oz Adult BBCOR Baseball Bat BB8V3
2018 Rawlings Velo 3 34 31 oz Adult BBCOR Baseball Bat BB8V3
$299.95
Rawlings Velo Maple Bamboo Composite R110CH Adult Wood Baseball Bat 34 31
Rawlings Velo Maple Bamboo Composite R110CH Adult Wood Baseball Bat 34 31
$75.00
DeMarini CF Zen Balanced  3 WTDXCBC 18 Adult Baseball Bat 34 31
DeMarini CF Zen Balanced 3 WTDXCBC 18 Adult Baseball Bat 34 31
$449.95
Easton Triple 7 Adult Baseball Bat 3 BESR Certified model BZ77 31 28 oz
Easton Triple 7 Adult Baseball Bat 3 BESR Certified model BZ77 31 28 oz
$44.90
2017 Marucci CAT 7 BBCOR Adult Baseball Bat MCBC7 Size 31 28oz NEW
2017 Marucci CAT 7 BBCOR Adult Baseball Bat MCBC7 Size 31 28oz NEW
$249.99
Axe Hyperwhip 3 Adult BBCOR Baseball Bat by Baden NEW
Axe Hyperwhip 3 Adult BBCOR Baseball Bat by Baden NEW
$299.99
014014 31 inch 28 oz Anderson Flex BBCOR Adult Baseball Bat 3 31 inch 28 oz
014014 31 inch 28 oz Anderson Flex BBCOR Adult Baseball Bat 3 31 inch 28 oz
$129.00
Axe Element 3 Adult BBCOR Baseball Bat by Baden NEW
Axe Element 3 Adult BBCOR Baseball Bat by Baden NEW
$199.99
Axe Origin 3 Adult BBCOR Baseball Bat by Baden NEW
Axe Origin 3 Adult BBCOR Baseball Bat by Baden NEW
$149.99
Axe Hyperwhip 3 Maple Composite Adult Baseball Bat by Baden NEW
Axe Hyperwhip 3 Maple Composite Adult Baseball Bat by Baden NEW
$149.99
2018 Marucci CAT 7 Connect BBCOR Adult Baseball Bat  3 MCBCC7 31 in 28 oz
2018 Marucci CAT 7 Connect BBCOR Adult Baseball Bat 3 MCBCC7 31 in 28 oz
$349.95
Easton 2017 BB17ZH Z CORE HYBRID Balanced BBCOR Adult Baseball Bat 3 34 31
Easton 2017 BB17ZH Z CORE HYBRID Balanced BBCOR Adult Baseball Bat 3 34 31
$299.99
Marucci Chase Utley Maple Wood Adult Baseball Bat MVEICU26 BK 31in
Marucci Chase Utley Maple Wood Adult Baseball Bat MVEICU26 BK 31in
$149.95
Marucci Buster Posey Maple Wood Adult BBCOR Baseball Bat MVEIPOSEY28 31in  3
Marucci Buster Posey Maple Wood Adult BBCOR Baseball Bat MVEIPOSEY28 31in 3
$149.99
Marucci Albert Pujols Maple Wood Adult Baseball Bat MVEIAP5 BK N 31in
Marucci Albert Pujols Maple Wood Adult Baseball Bat MVEIAP5 BK N 31in
$149.95
2018 Marucci F5 BBCOR Adult Baseball Bat MCBF5 2 5 8  3 31in 28oz
2018 Marucci F5 BBCOR Adult Baseball Bat MCBF5 2 5 8 3 31in 28oz
$149.95
2018 Marucci F5 BBCOR Adult Baseball Bat MCBF5 2 5 8  3 34in 31oz
2018 Marucci F5 BBCOR Adult Baseball Bat MCBF5 2 5 8 3 34in 31oz
$149.95
Marucci Albert Pujols 31 Adult Maple Wood Baseball Bat MVEIAP5 N BK
Marucci Albert Pujols 31 Adult Maple Wood Baseball Bat MVEIAP5 N BK
$149.95
Marucci Jose Bautista Maple Wood Adult Baseball Bat 31in MVEIJB19 N BK
Marucci Jose Bautista Maple Wood Adult Baseball Bat 31in MVEIJB19 N BK
$149.95
Easton 2017 BB17ZS Z CORE SPEED BBCOR Adult Baseball Bat 34 31 3
Easton 2017 BB17ZS Z CORE SPEED BBCOR Adult Baseball Bat 34 31 3
$199.99
2017 Easton Z CORE SPEED BB17ZS Adult BBCOR Baseball Bat  3 31 28 oz
2017 Easton Z CORE SPEED BB17ZS Adult BBCOR Baseball Bat 3 31 28 oz
$199.99
Easton 2017 BB17ZX Z CORE XL BBCOR End Loaded Adult Baseball Bat 34 31 3
Easton 2017 BB17ZX Z CORE XL BBCOR End Loaded Adult Baseball Bat 34 31 3
$199.99
2017 Louisville Slugger Solo 617  3 BBCOR Adult Baseball Bat 31 28 WTLBBSO6173
2017 Louisville Slugger Solo 617 3 BBCOR Adult Baseball Bat 31 28 WTLBBSO6173
$239.87


Recently Purchased Adult 31:


louisville slugger tpx cb404 omaha scandium xs 31 28 oz adult 2 58 baseball bat, brett bros maplebamboo wood mb110 baseball bat 31 inch, brett bros maple master wood mm110 baseball bat 31 inch, marucci cat7 bbcor 3128 3 mcbc7 adult baseball bat used very good condition, 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, sale 2017 rawlings 5150 3 bbcor adult bat 2 58 bb75 32293431, 2018 marucci f5 bbcor adult baseball bat mcbf5 2 58 3 34in31oz, 2018 rawlings velo bbcor adult baseball bat 2 58 3 bb8v3 31in28oz, 2018 rawlings 5150 bbcor adult baseball bat 2 58 3 bb853 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, 2018 easton beast x speed 3 3128 oz adult bbcor baseball bat bb18bxs, victus adult bat 31 28oz v110, new baseball bat bb16s500 3431oz easton s500 adult bbcor certified 50 , 2018 marucci cat 7 bbcor adult baseball bat 3 mcbc7 34 in31 oz, bwp bats adult dc9 premium maple baseball bat, easton b62 rival bbcor adult baseball bat 3 3431, demarini 2018 voodoo balanced 3 adult baseball bat bbcor, demarini 2018 cf zen balanced 3 adult baseball bat bbcor, demarini 2018 cf insane 3 adult baseball bat bbcor, rawlings 2018 velo hybrid 3 adult baseball bat bbcor, rawlings 2018 5150 alloy 3 adult baseball bat bbcor, easton 2018 s450 3 adult baseball bat bbcor, easton 2018 s250 3 adult baseball bat bbcor, easton 2018 s650 3 adult baseball bat bbcor, easton 2018 ghost x 3 adult baseball bat bbcor, easton 2018 beast x speed 3 adult baseball bat bbcor, easton 2018 beast x hybrid 3 adult baseball bat bbcor, demarini 2018 voodoo one 3 adult baseball bat bbcor, easton 2018 zcore lock amp; load 3 adult baseball bat bbcor, marucci 2017 cat7 connect 3 adult baseball bat bbcor, marucci 2017 cat7 3 adult baseball bat bbcor, marucci carlos beltran maple wood adult baseball bat mveicb15chbk 31in



Comments are closed.