Join Patrick Royal for an in-depth discussion in this video Solution overview, part of Code Clinic: Java.
…My solution to this problem consists of four parts.…First, we need to get some user inputs.…As the problem states, this problem should be able…to look up any date for which data is available.…So we need to let the user specify the date they're looking for.…Second, we need the program to actually find the data.…This data is not going to be stored on a local computer.…Instead, we'll be accessing it via a URL.…As a result, the data might not be formatted exactly the way…we need, so we'll have to reformat it and extract the useful numbers.…Third is the actual data analysis.…
Once we have the data, we can take the mean and the median.…Finally, to make the program useful, it should provide some sort of…output, either through a graphical user interface or a simple text stream.…My solution is structured to meet these four objectives.…The main method handles the input and output, and it…calls subsidiary methods to perform the data gathering and calculations.…There are an infinite variety of ways to…get input and output, but since this challenge…
Patrick introduces challenges and provide an overview of his solutions in Java. Challenges include topics such as statistical analysis, searching directories for images, and accessing peripheral devices.
Visit other courses in the series to see how to solve the exact same challenges in languages like C#, C++, PHP, Python, and Ruby.
Skill Level Intermediate
Q: I am unable to access the Lake Pend Oreille data from outside the U.S.
A: A static copy of this data is provided <a href="https://github.com/lyndadotcom/LPO_weatherdata">here</a> for lynda.com members outside of the U.S
Problem One: Exploring Lake Pend Oreille
Problem Two: Image Analysis
Problem Three: Eight Queens
Problem Four: Accessing Peripherals
Problem Five: Recursion and Directories
Problem Six: Building the Web
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.