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:

New Louisville Slugger CB8 31 28 Air Attack BESR Adult Baseball Bat 2 5 8
New Louisville Slugger CB8 31 28 Air Attack BESR Adult Baseball Bat 2 5 8
$63.61
Louisville Slugger Prime Maple C271 Patriot WTLWPM271D18 Adult Baseball Bat 31
Louisville Slugger Prime Maple C271 Patriot WTLWPM271D18 Adult Baseball Bat 31
$139.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 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
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
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
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 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
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
RIP It Prototype II 2 PROB2 34 31 BBCOR Adult Bat NEW
RIP It Prototype II 2 PROB2 34 31 BBCOR Adult Bat NEW
$99.99
RIP It B1303 31 28 BBCOR Prototype Adult Bat NEW
RIP It B1303 31 28 BBCOR Prototype Adult Bat NEW
$109.99
Rawlings 2018 Velo BBCOR Adult Baseball Bat  3 BB8V3
Rawlings 2018 Velo BBCOR Adult Baseball Bat 3 BB8V3
$249.99
Rawlings 2018 5150 BBCOR Adult Baseball Bat  3 BB853
Rawlings 2018 5150 BBCOR Adult Baseball Bat 3 BB853
$169.99
Rip It B1403 31 28 Prototype BBCOR Baseball Bat Adult
Rip It B1403 31 28 Prototype BBCOR Baseball Bat Adult
$50.00
DeMarini 2018 Voodoo Balanced BBCOR Adult Baseball Bat  3 WTDXVBC 18
DeMarini 2018 Voodoo Balanced BBCOR Adult Baseball Bat 3 WTDXVBC 18
$299.95
Louisville Slugger 2018 Solo 618 BBCOR Adult Baseball Bat  3 WTLBBS618B3
Louisville Slugger 2018 Solo 618 BBCOR Adult Baseball Bat 3 WTLBBS618B3
$299.95
Easton 2018 Beast X Hybrid BBCOR Adult Baseball Bat  3 BB18BXH
Easton 2018 Beast X Hybrid BBCOR Adult Baseball Bat 3 BB18BXH
$249.95
Easton 2018 S650 BBCOR Adult Baseball Bat  3 BB18S650
Easton 2018 S650 BBCOR Adult Baseball Bat 3 BB18S650
$109.95
Easton 2018 S450 BBCOR Adult Baseball Bat  3 BB18S450
Easton 2018 S450 BBCOR Adult Baseball Bat 3 BB18S450
$89.99
Easton 2018 S250 BBCOR Adult Baseball Bat  3 BB18S250
Easton 2018 S250 BBCOR Adult Baseball Bat 3 BB18S250
$54.99
Louisville Slugger Bat ACE VAPOR TPX 31 28oz BB29 HIGH SCHOOL METAL 31 ADULT
Louisville Slugger Bat ACE VAPOR TPX 31 28oz BB29 HIGH SCHOOL METAL 31 ADULT
$174.99
USED RAWLINGS TRIO SCI FLY Baseball Bat  3 34 31 BBCOR ADULT RARE
USED RAWLINGS TRIO SCI FLY Baseball Bat 3 34 31 BBCOR ADULT RARE
$20.00
Marucci AP5 Hybrid BBCOR Maple Composite  3 MHCBAP5 Adult Baseball Bat 34 31
Marucci AP5 Hybrid BBCOR Maple Composite 3 MHCBAP5 Adult Baseball Bat 34 31
$229.99
NEW Baseball Bat BB16S500 34 31oz Easton S500 Adult BBCOR Certified 50
NEW Baseball Bat BB16S500 34 31oz Easton S500 Adult BBCOR Certified 50
$80.88
Combat B5 Da Bomb AB Adult 2 5 8 Barrel Baseball Bat B5AB1 BBCOR Certified 3
Combat B5 Da Bomb AB Adult 2 5 8 Barrel Baseball Bat B5AB1 BBCOR Certified 3
$249.95
EastonBB18S450 Adult BBCOR Baseball Bat  3 New
EastonBB18S450 Adult BBCOR Baseball Bat 3 New
$79.95
2018 DeMarini CF Zen  3 31 28 oz Adult BBCOR Baseball Bat WTDXCBC 18
2018 DeMarini CF Zen 3 31 28 oz Adult BBCOR Baseball Bat WTDXCBC 18
$449.95
LOUISVILLE SLUGGER TPX TPXBBXL ADULT BASEBALL BAT 33 29 Oz CU31 ALUMINUM ALLOY
LOUISVILLE SLUGGER TPX TPXBBXL ADULT BASEBALL BAT 33 29 Oz CU31 ALUMINUM ALLOY
$8.50


Recently Purchased Adult 31:


rawlings big stick adult ash wood 3 baseball bat r318av, brett bros gobon wood gobon271 baseball bat 31 inch, brett bros maplebamboo wood mb110 baseball bat 31 inch, 2018 marucci cat 7 connect bbcor adult baseball bat 3 mcbcc7 31 in 28 oz, louisville slugger 918x 10 baseball bat 2 34 adult senior league 3121oz, new other easton bk7 3431 hammer besr adult baseball bat, 2016 mizuno nighthawk hybrid adult baseball bat 3431 340351 bbcor, easton black magic bx11 32 in 28 oz baseball bat 2 34 barrel cu31 adult, easton ea70 b9t 3431 pro baseball bat 2 34 z2k big barrel adult 3431 , used demarini cf8 cfc16 3128 bbcor baseball bat 2 58 2016 3 adult, 2017 marucci cat 7 3 3128 oz adult bbcor baseball bat mcbc7, 2017 marucci cat 7 3 3431 oz adult bbcor baseball bat mcbc7, 2018 marucci cat 8 3 3431 oz adult bbcor baseball bat mcbc8, 2018 marucci cat 8 3 3128 oz adult bbcor baseball bat mcbc8, 2018 rawlings 5150 bbcor adult baseball bat 2 58 3 bb853 31in28oz, marucci cat8 adult bbcor 3 baseball bat new, marucci cat8 connect adult bbcor 3 baseball bat new, new easton bk7 3431 hammer prebesr adult baseball bat red aluminum, new easton cxn connexion sc900 bt200 3128 adult baseball bat 3 mens league, new easton zcore hmx 3128 bb16za bbcor baseball bat greenblack adult 3, 2018 marucci f5 bbcor adult baseball bat mcbf5 2 58 3 31in28oz, 2018 marucci f5 bbcor adult baseball bat mcbf5 2 58 3 34in31oz, rawlings velo bbcor 3 bb9v3 adult baseball bat 3431, rawlings velo bbcor 3 bb9v3 adult baseball bat 3128, 2018 marucci cat8 connect bbcor 3431oz 3 adult baseball bat mcbcc8, 2018 marucci cat8 connect bbcor 3128oz 3 adult baseball bat mcbcc8, 2018 marucci cat 7 connect bbcor adult baseball bat 3 mcbcc7 34 in31 oz, 2018 marucci cat8 bbcor 3431oz 3 adult baseball bat mcbc8, 2018 marucci cat8 bbcor 3128oz 3 adult baseball bat mcbc8, marucci cat5 3431 bbcor certified adult baseball bat mcb2 2 58 dia barrel , 2018 rawlings velo 3 3128 oz adult bbcor baseball bat bb8v3, new louisville cb9 3431 tpx alloy besr adult baseball bat, 2018 marucci cat 8 connect 3 3431 oz adult bbcor baseball bat mcbcc8, 2018 marucci cat 8 connect 3 3128 oz adult bbcor baseball bat mcbcc8, new louisville slugger bb21 3431 besr adult baseball bat 2 58 barrel



Comments are closed.