Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program that asks a user for her name, and three integers in the range o

ID: 3737554 • Letter: W

Question

Write a program that asks a user for her name, and three integers in the range of 1 to 12 corresponding to her birth month, month she graduated from college and month she started in her current job. The program should then pass this information to a function to produce a short resume narrative similar to the one shown below:

Myra was born in the month of January.

She graduated college in the month of May.

She began working in her current position in June.

note: Code in C++, and use prototypes and definition calling

Explanation / Answer

#include <iostream>
using namespace std;
void displayResume(string, int, int , int);
int main()
{
string name;
int birthMonth, graduatedMonth, jobMonth;
cout<<"Enter her name: "<<endl;
cin >> name;
cout<<"Enter the birth month: "<<endl;
cin >>birthMonth ;

cout<<"Enter the month she graduated from college: "<<endl;
cin >>graduatedMonth ;
cout<<"Enter the month she started in her current job: "<<endl;
cin >>jobMonth ;
displayResume(name,birthMonth, graduatedMonth, jobMonth);
return 0;
}
void displayResume(string name, int b, int g, int j) {
string month[] = {"January", "Fabruary", "March", "April", "May", "June", "July", "August", "September","October","November","December"};
cout<<name<<" was born in the month of "<<month[b-1]<<"."<<endl;
cout<<"She graduated college in the month of "<<month[g-1]<<"."<<endl;
cout<<"She began working in her current position in "<<month[j-1]<<"."<<endl;
  
}

Output:

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote