Define a function PrintCollegeCity that takes two string parameters and outputs as follows, ending with a newline. The function should not return any value. Ex If the input is Williamstown Williams, then the output is: Williamstown is the location of Williams College. 1 #include 2 using namespace std; 3 4 int main() { 5 6 7 8 cin>> collegeLocation; cin>> college Title; 9 string collegeLocation; string collegeTitle; 10 11 12 13 14} PrintCollegeCity(collegelocation, college Title); return 0; U-D*D-D- 2 C

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter11: Introduction To Classes
Section11.4: A Case Study: Constructing A Date Class
Problem 7E
icon
Related questions
Question

what is the code? c++

Answer the given question with a proper explanation and step-by-step solution.

CHALLENGE
ACTIVITY
6.2.3 Print functions:
Jump to level 1
Define a function PrintCollegeCity that takes two string parameters and outputs as follows, ending with a newline. The function
should not return any value.
Ex: If the input is Williamstown Williams, then the output is:
Williamstown is the location of Williams College.
1 #include <iostream>
2 using namespace std;
3
4 int main() {
5 string collegeLocation;
6 string collegeTitle;
7
8 cin>> college Location;
9
cin>> collegeTitle;
10
11 PrintCollegeCity(collegelocation, collegeTitle);
12
13. return 0;
14}
2
3
D-D-D-D-
Transcribed Image Text:CHALLENGE ACTIVITY 6.2.3 Print functions: Jump to level 1 Define a function PrintCollegeCity that takes two string parameters and outputs as follows, ending with a newline. The function should not return any value. Ex: If the input is Williamstown Williams, then the output is: Williamstown is the location of Williams College. 1 #include <iostream> 2 using namespace std; 3 4 int main() { 5 string collegeLocation; 6 string collegeTitle; 7 8 cin>> college Location; 9 cin>> collegeTitle; 10 11 PrintCollegeCity(collegelocation, collegeTitle); 12 13. return 0; 14} 2 3 D-D-D-D-
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr