Programming Project 2 asks you, among other things, to write a program that creates a binary file of objects of the class Species. Write a program that reads from a file created by that program and writes the objects to another file after modifying their population figures as they would be in 100 years. Use the method predict- Population of the class Species, and assume that you are given each species’ growth rate.
This project requires only one file to be written. This solution is organized as a sequence of just four method calls in main, one to open an input file for reading Species records, one to open an output file for writing new records, one to do the processing (read a record from the input file and write a record to the output file with the population changed to the projected population after 100 years), and one to close the input and output files.
See the code in SpeciesPopulationsIn100Years.java. Uses Species.java and files created by WriteSpeciesFile.java from project 2.
You might also like to view...
Create an array that holds the names of all the cities you have visited.
What will be an ideal response?
SaaS lets you pay for online software based on usage.
Answer the following statement true (T) or false (F)
If you want to see tasks listed with their markings of High, Normal, and Low, you can display the tasks in the ____ view.
A. Status B. Ranked C. Prioritized D. Detailed
Including capital letters, numbers, and special characters help to make the password more secure.
Answer the following statement true (T) or false (F)