Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Figure 1: input file Figure 3; Output file Develop a program that uses an array of structures that store the following information: attractionName of the

image text in transcribedimage text in transcribed

Figure 1: input file Figure 3; Output file

Develop a program that uses an array of structures that store the following information: attractionName of the type string totalVisitors of the type long integer visitorsByQuarter an array to store the total number of visitors for each quarter. Your program must contain at least the following functions: a) Function getData: This function loads the data into the array. b) Function visitorByQuarter: This function finds the attractions total visitors for each quarter. c) Function totalVisitorByAttraction: This function finds each attractions yearly number of visitors. d) Function printReport: This function prints the annual report in the format specified in the Figure 3.

without using vector, class, sstream.

using 2d array too.

Tasik Kenyir, 937, 456, 900, 879 Pulau Tioman, 810, 80, 589, 456 Bukit Tinggi, 2500, 900, 6789, 459 Genting Highland, 1338, 809, 2340, 568 Cameron Highland, 720, 678, 890, 357 Pulau Langkawi, 720, 890, 579, 258 Pulau Sipadan, 1500, 1200, 356, 7089 National Zoo, 1515, 900, 768, 289 National Museum, 880, 906, 689, 589 At the end of each year, the Ministry of Tourism wants to see this report in the following format: Attraction Tasik Kenyir Pulau Tioman Bukit Tinggi Genting Highland Cameron Highland Pulau Langkawi Pulau Sipadan National Zoo National Museum Total -Annual Malaysian Tourism Report- QT1 ('09) QT2 ('09) QT3 ('09) XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX QT4 ('09) XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX Total XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX Max Number of Visitor by Attraction: Name = XXXX, Number of Visitor = XXXX Max Number of Visitor by Quarter: Quarter = XXXX, Number of Visitor = XXXX Figure 3

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_2

Step: 3

blur-text-image_3

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

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions

Question

=+c) Are time and day of the week disjoint events?

Answered: 1 week ago