Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions

Question

8. Do the organizations fringe benefits reflect diversity?

Answered: 1 week ago