Question
Read in a series of data on the worlds tallest buildings. The format of the input string must be: name of building, City, Country, height
Read in a series of data on the worlds tallest buildings.
The format of the input string must be:
name of building, City, Country, height in metres, year completed
Write a program to print out the name of each building and its height in feet.
feet = metres * 3.28
Continue processing data until the user enters the word exit as the building name. Final line of input would look like: exit, exit, exit, 0, 0
Sample run (user input is shown in bold underline):
Enter building information:Burj Khalifa, Dubai, United Arab Emirates, 828, 2010
Building: Burj Khalifa
Height(ft) 2715.84
Enter building information:Shanghai Tower,Shanghai, China,632, 2015
Building: Shanghai Tower
Height(ft) 2072.96
Enter building information:exit, exit, exit, 0, 0
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