(Solved):Using the PetRecord class stored on BlackBoard, write a driver program with the main method to read in data for five Pets from a data file. The data file will contain the name, age, and weight of e… View Answer…

 

Question

Using the PetRecord class stored on BlackBoard, write a driver program with the main method to read in data for five Pets from a data file. The data file will contain the name, age, and weight of each pet, fields separated by commas, one pet per line in the file.

Create a PetRecord as each line is read.

Display the following information:

The name, age, and weight of each pet.

The name, age, and

Scroll to top