Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

University of Wollongong School of Computing and Information Technology CSCI 2 5 1 Advanced Programming APPENDIX A Processing Configuration File Info Upon startup, program should

University of Wollongong
School of Computing and Information Technology
CSCI251 Advanced Programming
APPENDIX A
Processing Configuration File Info
Upon startup, program should prompt user for the following
Please enter config filename : config.txt
When user presses 'Enter', the program should perform File I/O to read in the contents in the stated filename (e.g. in this case 'config.txt')
The config.txt contains data like size of grid-map area (indicated by index-ranges), as well as a series of filenames, which your program should further access, in order to read in the various relevant weather data provided by the Meteorological Station. Figure A-1 below provides a sample of the actual contents within this configuration file.
// The range of 'horizontal' indices, inclusive
??? E.g. if the range is 0-4, then the indices are 0,1,2,3,4
GridX_IdxRange =0-8
// The range of 'vertical' indices, inclusive
??? E.g. if the range is 0-3, then the indices are 0,1,2,3
GridY_IdxRange =0-8
//[x,y] grid-areas which are occupied by cities
citylocation.txt
// "next day" forecasted cloud coverage (%) for
??? each x,y grid-area
cloudcover.txt
// "next day" forecasted atmospheric pressure intensity (%) for
// each x,y grid-area
pressure.txt
Fig. A-1
Note : The ranges for both 'GridX_IdxRange' and 'GridY_IdxRange ' will determine the size of the display map. The ranges' values are editable!
Regarding the interpretation of each input files' data format, please refer to subsequent Appendices.
Page 5 of 25
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions