Question
Answered step-by-step

Java Programming

Please assist. Will be using Eclipse IDE to implement the code.

Image transcription text

Due Thursday by 11:59pm Points 100 Submitting a file upload Please read the spec carefully and make sure that you are fulfilling all project requirements! The code you submit must be your own original work. I encourage you to do some research and learn how other programmers have implemented these sorts of solutions, and I also encourage you to collaborate with your colleagues, but you must write and submit your own code. If you lean heavily on someone else's solution or work, please cite your source(s). The writing pieces also need to be your own original work. If you use someone else's thoughts to heavily inform your own, please (a) extend their work using your own original thoughts, and (b) cite your sources. I don't need MLA citations; just let me know whose work has influenced your own. We're looking for college-level writing - complete sentences, good spelling and grammar, professional presentation, etc. Part 1 (60%) Create a class called Forecast. Your Forecast class contains concepts associated with a weather forecast. Forecast does not contain a main method. Forecast should contain the following: an attribute for the temperature . a floating point number from - 100.0 through 150.0 degrees Fahrenheit . if no value or an invalid value is supplied, the default is 72.0 an attribute for the sky condition . a string . if no value is supplied, the default is "clear" an attribute for the chance of rain o an integer from 0 - 100 that represents a percentage if no value or an invalid value is supplied, the default is 0% at least two constructors accessors and mutators for all variables methods that convert the temperature: . from Fahrenheit to Celsius o from Celsius to Fahrenheit from Fahrenheit to Kelvin from Kelvin to Fahrenheit . these methods return the converted temperature o these methods do not have print/output statements a method that determines whether or not it rains o this method returns a boolean o this method does not have a print/output statement a print() method that prints useful information about the forecast Write a separate class (with a main method) that tests each of the methods in your Forecast class. Part 2 (20%) Add a method to your Forecast class that prints the forecast result to a file. You will need to add a try/catch block around your file I/O code; your try/catch block will include exception handling. At a minimum, catch errors dealing with (1) FileNotFoundException, (2) IOException, and (3) all other exceptions. It's fine if you are handling these errors simply by printing some information about the error that is caught. Include in your main method a method call to your new file output method. Part 3 (20%) Explain the difference between inheritance and composition. Describe when you would implement one versus the other. Your answer should not be shorter than two paragraphs of 3+ sentences each. Please submit: your source code for parts 1 and 2 (.java files) screenshots of your program running and testing all functionality in parts 1 and 2 your answer for part 3 (Word document or text file is fine)

... Show more

Answer & Explanation
Verified Solved by verified expert
Rated Helpful
<p>ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odi</p> Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet

Unlock full access to Course Hero

Explore over 16 million step-by-step answers from our library

Subscribe to view answer

us a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lac

gue

ongue vel laoreet a

ongue ve

Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ul

gue

gue

, dictu

ec aliquet. Lorem ipsum dolor sit amet, consecte

situr laoreepulvin
xet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapi, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, cons
lsum dolor sit amet, consectetur aa molestie consequat, ultrices ac magna. Fusce dui lect
tentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fctum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesqu
tec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvrem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pe
x, ultrices ac magna. Fusce duimolestie consequat, ultrices ac magna. Fus
Step-by-step explanation

trices ac magna. F

,, consectetur adipiscing elit. Nam lacinia pulvinadictum v, dictum vitae odio. Donec aliDonec aliquet. Lorem ipsum dolor sit a

,facilisis. Pellentesque dapibus efficitum ipsum dolor sit amete vel laoreet ac, dictum vititur laoreet. Nam risus ante, dapibus a molestie consequat, ultrice

,rem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pelle

gue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit am

m risus ante, dapibus a molestie consequat, ultricongue venec facilisis. Pellentesque dapibus efmolestie cotrices ac magna. Fusce dui lectus, congue vel laoreee vesus ante, dapibus a molestie consequat, ultrices ac mag

trices ac magna. Fuconsectetur aicitur laoreet. Nam risum risuipsum dolor sit amet, consecsuipiscing elit. Nam lacinia pulvinar tortor nec facilisis. P

gue

gue vel laoreetlestie consequat,rem ipsum dolor sit amet, cons

trices ac magna. Fusce dui lectus, congue vel laorepulvinar tortor nec facilusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipis

gue

nec facilisis. Pellentesque dapibus efficitur lamolestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, di

,lestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae

gue

congue vel lpulv, dictum vitae odio. Donec aliquet. Lordictum vonec aliquet. Lorem ipsum dolor sit ammolestiipiscing

gue

ongue ve

,Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam laFusce dui lectus, congue vel laoreet acs ante, dapibus a molesa. Fusceipsum dolor si

ipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dap

sum dolor sit amet, consectetur adipiscing elit. Na

rem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibu

ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dic

ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam l

gue

ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque, dictum vimolestie consequat, ultrices ac magna. Fusce dui lec

rem ipsum dolor sit amet,ia pulvinar, ultrices ac magna. Fusce duisum dolor sit amet, consectetur adipiscingdictum vur laoreet. Nam risus antepulvctum vitae odio. Donec aliquet. Lorem ipsu

gue

18058318
e vel laoreet a

gue

gue

et, consectetur adDonec aec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui le

,inia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapi

ipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultri

1 Attachment
ForecastExecution.PNG
PNG
Student review
100% (1 rating)
Thorough explanation
Easy to follow
Clear formatting

"I appreciate you!"