Follow instructions to create a visual C project add the C c

Follow instructions to create a visual C++ project, add the C++ code below, compile, run and fix errors. Write your Name, course, and date as comment on first line. Write Programs Name, cpp (Give it your last name with the assignment number as a name ...Program01LAST NAME) Explain what the program is to do along with any directions or instructions needed for program users (i.e the purpose of each library included next to #include directive, names and uses of identifiers...etc). Name your identifiers appropriately. Configure the output terminal (the black window) so that the colors are font is black and background is white. You need to submit the assignment by Sept 21 as follows: Submit softcopy of the assignment on blackboard. Submit hard copy of the output and code in class Word Game: Write a program that plays a word game with the user. The program should ask the user to enter the following: His/her name His/her age The name of user\'s college The name of user\'s city A profession A type of animal A pet\'s name After the user has entered these items, the program should display the following story, inserting the user\'s input into the appropriate locations. There once was a person named NAME who lived in CITY. At the age of AGE, NAME went to college at COLLEGE. NAME graduated and went to work as a PROFESSION. Then, NAME adopted a (an) ANIMAL named PETNAME. They both lived happily ever after. Expected output:

Solution

#include<iostream>

#include<conio.h>

#include <string>

#include<conio.h>

using namespace std;

int main(){

string name,college,City,profession,animal,petName;

int age;

cout<<\"Name: \";

cin>>name;

cout<<\"City: \";

cin>>City;

cout<<\"Age: \";

cin>>age;

cout<<\"College: \";

cin>>college;

cout<<\"Profession: \";

cin>>profession;

cout<<\"Animal: \";

cin>>animal;

cout<<\"Pet Name: \";

cin>>petName;

cout<<\" There once was a preson named \"<<name<<\" who lived in \"<<City<<\".At the age of \"<<age<<\" \"<<name<<\" went to collegge at \"<<college<<name<<\"graduated and went to work as a \"<<profession<<\". Then,\"<<name<<\" adopted a(an) \"<<animal<<\" named \"<<petName<<\". They both lived happily for ever.\";

getch();

return 0;

}

#include<iostream>
#include<conio.h>
#include <string>
#include<conio.h>
using namespace std;
int main(){
   string name,college,City,profession,animal,petName;
   int age;
   cout<<\"Name: \";
   cin>>name;
   cout<<\"City: \";
   cin>>City;
   cout<<\"Age: \";
   cin>>age;
   cout<<\"College: \";
   cin>>college;
   cout<<\"Profession: \";
   cin>>profession;
   cout<<\"Animal: \";
   cin>>animal;
   cout<<\"Pet Name: \";
   cin>>petName;
   cout<<\"There once was a preson named\"<<name<<\"who lived in\"<<City<<\".At the age of\"<<age<<name<<\"went to collegge at\"<<college<<name<<\"graduated and went to work as a \"<<profession<<\". Then,\"<<name<<\"adopted a(an)\"<<animal<<\"named\"<<petName<<\". They both lived happily for ever.\";
  
   getch();
   return 0;
  

}

 Follow instructions to create a visual C++ project, add the C++ code below, compile, run and fix errors. Write your Name, course, and date as comment on first
 Follow instructions to create a visual C++ project, add the C++ code below, compile, run and fix errors. Write your Name, course, and date as comment on first

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site