This question deals with expanding the abbreviated names of Universities. The names of the Universities under consideration take two forms. Examples are: University of Florida whose abbreviated form is U Florida Memorial University whose abbreviated form is Memorial U Your job is to input the abbreviated name of a University and output the expanded name. The abbreviated name could take form U Or U If the abbreviated name is of the form U , then the output should be University of . If the abbreviated name is of the form U, then the output should be University. Run your program twice using the following inputs: U Toronto Oxford U

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter10: Classes And Data Abstraction
Section: Chapter Questions
Problem 19PE
icon
Related questions
Question
This question deals with expanding the abbreviated names of Universities. The names of the
Universities under consideration take two forms. Examples are:
University of Florida whose abbreviated form is U Florida
Memorial University whose abbreviated form is Memorial U
Your job is to input the abbreviated name of a University and output the expanded name. The
abbreviated name could take form
U <name of place>
Or
<name of place> U
If the abbreviated name is of the form U <name of place>, then the output should be University
of <name of place>. If the abbreviated name is of the form <name of place> U, then the
output should be <name of place> University.
Run your program twice using the following inputs:
U Toronto
Oxford U
Transcribed Image Text:This question deals with expanding the abbreviated names of Universities. The names of the Universities under consideration take two forms. Examples are: University of Florida whose abbreviated form is U Florida Memorial University whose abbreviated form is Memorial U Your job is to input the abbreviated name of a University and output the expanded name. The abbreviated name could take form U <name of place> Or <name of place> U If the abbreviated name is of the form U <name of place>, then the output should be University of <name of place>. If the abbreviated name is of the form <name of place> U, then the output should be <name of place> University. Run your program twice using the following inputs: U Toronto Oxford U
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Random Class and its operations
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++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning