From 07fd1fa75f61033f2889b0f7c10afcc82e2dbc13 Mon Sep 17 00:00:00 2001 From: Andrew_Nave Date: Mon, 7 Feb 2022 11:49:00 -0800 Subject: [PATCH 1/3] fixed CS111 bugs --- main.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/main.cpp b/main.cpp index bb63cb8..fcd8af9 100644 --- a/main.cpp +++ b/main.cpp @@ -9,20 +9,21 @@ int main() cout<<"Hi. What is your first name? " cin<>last initial; cout<<"Thanks, "<>age>>endl; + cin>>age; + cout<= 18 ); + else if( age >= 18 ) { cout<<"Pleased to meet you!\n"; } From 987d2fe26c3e74e0f57a7a703b397c3d8384135a Mon Sep 17 00:00:00 2001 From: Andrew_Nave Date: Mon, 7 Feb 2022 13:32:43 -0800 Subject: [PATCH 2/3] CSCI111 bugfixes --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index fcd8af9..8471b7d 100644 --- a/main.cpp +++ b/main.cpp @@ -23,7 +23,7 @@ int main() else if( age < 18 ) cout<<"Cool!\n"; cout<<"How's highschool going?\n"; - else if( age >= 18 ) + else if( age == 18 ) { cout<<"Pleased to meet you!\n"; } From 04de423fd5248ca66ab97939d20c1aa74388a067 Mon Sep 17 00:00:00 2001 From: Andrew_Nave Date: Mon, 7 Feb 2022 13:37:09 -0800 Subject: [PATCH 3/3] CSCI111 Bugs --- main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 8471b7d..02cbccb 100644 --- a/main.cpp +++ b/main.cpp @@ -25,8 +25,12 @@ int main() cout<<"How's highschool going?\n"; else if( age == 18 ) { - cout<<"Pleased to meet you!\n"; + cout<<"Hey!"<