Question
Lab 01 Get Classy Part 1: Person: Project: Person Files: Person.java PersonReader.java // Reads Person records from a file into an ArrayList PersonGenerator.java // Creates
Lab 01 Get Classy
Part 1: Person: Project: Person Files: Person.java PersonReader.java // Reads Person records from a file into an ArrayList PersonGenerator.java // Creates an ArrayList of Person objects and writes to a file SafeInput.java // Library of console input routines PersonTest.java // Junit test file for Person class Fields: (No change here from the Practicum) String firstName String lastName String ID // should never change sequence of digits String title // a prefix: Mr. Mrs. Ms, Prof. Dr. Hon. Etc. int YOB // Year of birth // Range should be 1940 - 2000 Additional methods (All should be tested in JUnit): public String fullName() // returns firstName, space, lastName public String formalName() // returns title, space, fullName public String getAge() // returns the age assuming the current year public String getAge(int year) // uses YOB to calculate age for a specified year // use the Calendar object to do these. Requires a bit of a web search.
Part 2: Product:
Copyright 2021-present, University of Cincinnati, Ohio. All rights reserved. Project: Product Files: Product.java ProductTest.java ProductReader.java ProductGenerater.java Fields: String name String description String ID // should never change double cost Do the same thing with Product as you did with Person. Create the JUnit tests, etc. Part 3: UML Class Diagrams Create UML Class Diagrams for each of your classes Product and Person and insert them here: PLEASE DO NOT TAKE SCREEN SHOTS IN DARKULA MODE. SWITCH TO LIGHT MODE Screen shots: [PART 1 and PART 2] record screen shots of your output for each of your classes here as directed: - Successful Junit tests runs for Person and for Product HERE From your application(s):
Creating/Saving Person and Product data HERE
Displaying Person/Product data after reading the file. HERE - Clear, legible shots of your java src code showing where you create an object with the field data and add it to the arrayList that is typed for it (Person, Product) HERE
WRITE FULL CODE
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started