Answered step by step
Verified Expert Solution
Question
1 Approved Answer
#include Support.h #include #include #include using namespace std; / / There are two errors in the DisplayUserInfo method. The variables used in / /
#include "Support.h
#include
#include
#include
using namespace std;
There are two errors in the DisplayUserInfo method. The variables used in
the method do not match the parameters andor local variables. Either
update the variables being used or update the definitions so the identifier
names being used match the identifiers names defined. You do not need to
add any additional programming statements
static void DisplayUserInfostring who, int age
cout "Please provide a warm welcome to my next guest, ;
cout who on the occasion of turning age years old!" endl;
there are errors in the SayABCs method. One is an incorrect variable
name and the other is a 'punctuation' error. You do not need to add any
additional programming statements
static void SayABCs
for int ndx ; ndx ; ndx
if ndx
cout
endl;
if ndx
cout
staticcastndx endl; this line should have a breakpoint
else
cout staticcastndx endl;
cout
endl;
there is one error in the Main method it is a simple typo that needs to
be corrected. You do not need to add any additional programming statements
int main
const vector names "ybraD", "ecnerwaL", "haraS", "refinneJ", "yevaD", "atteirneH", "selrahC", "sicnarF", "yrograM",
"wemelohtraB", "moT", "leahciM", "ymereJ", "ennA", "elleinaD", "mailliW", "suiriS", "enoimreH",
"naitsabeS", "nosaJ", "adnamA", "ettedO", "pirT", "noiraM", "enerI", "auhsoJ", "ellehciM" ;
Get a random age and name from the Support class
int age Support::GetAgeSupport::RandomIntSupport::MIN, Support::MAX;
string name Support::GetNamenamesSupport::RandomInt names.size; This line should have a breakpoint
DisplayUserInfoname age; This line should have a breakpoint
SayABCs;
cin.get;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started