(07AL) Programming Assignment 6 (PRE-FINAL BUILD) Students, For this programming assignment, take your updated (MIDTERM#2) Programming Assignment 4 : Part 2 (Only One Submission Allowed) . And, evolve...

1 answer below »
(07AL) Programming Assignment 6 (PRE-FINAL BUILD)
Students,
For this programming assignment, take your updated (MIDTERM#2) Programming Assignment 4 :
Part 2 (Only One Submission Allowed) . And, evolve your program through Chapter 6 and Chapter 7
topics.
#1
New Package
Create a new package in the same java project as your previous programming
assignments such as “ (MIDTERM#2) Programming Assignment 4 : Part 2
(Only One Submission Allowed) “. The package should be called either,
“com.preBuild.module7.RETAIL”

“com.preBuild.module7.HEALTH”
“com.preBuild.module7.ONLINE”
“com.preBuild.module7.BANKING”
https://eagleonline.hccs.edu/courses/154437/assignments/2839380
https://eagleonline.hccs.edu/courses/154437/assignments/2839380
#2

[RETAIL] New Classes : Class names & field names
[RETAIL] XXXXXXXXXXvariablename : dataType
 Create the following classes in the new package (com.preBuild.module7.RETAIL) :
1. Person class -
 create fields
 personID:String
 firstName:String
 lastName:String
 locationInfo:Location
 create getters/setters, empty constructor, and constructor with fields.
2. Customer class –
 create fields
 personInfo:Person
 product:Inventory
 create getters/setters, empty constructor, and constructor with fields.
3. Location class –
 create fields
 streetAddress:String
 city:String
 tx:String
 zipCode:int
 create getters/setters, empty constructor, and constructor with fields.
4. Employee class –
 create fields
 personInfo:Person,
 sellDate:String
 position:String
 productID:Inventory
 create getters/setters, empty constructor, and constructor with fields.
5. Inventory class –
 create fields
 productID:String
 productName:String
 productQuantity:int
 productCost:double
 create getters/setters, empty constructor, and constructor with fields.

[HEALTH] New Classes : Class names & field names
[HEALTH] XXXXXXXXXXvariablename : dataType
 Create the following classes in the new package (com.preBuild.module7.HEALTH):
1. Person class-
 create fields
 personID:String
 firstName:String
 lastName:String
 locationInfo:Location
 create getters/setters, empty constructor, and constructor with fields.
2. Doctor class-
 create fields
 personInfo:Person
 diagnosis:String
 recordInfo:Record
 create getters/setters, empty constructor, and constructor with fields.
3. Patient class-
 create fields
 personInfo:Person
 isInsured:Boolean
 visitDate:String
 reasonInfo:Record
 create getters/setters, empty constructor, and constructor with fields.
4. Location class-
 create fields
 streetAddress:String
 city:String
 tx:String
 zipCode:int
 create getters/setters, empty constructor, and constructor with fields.
5. Records class –
 create fields
 reasonForVisit:String
 recordID:String
 personID:Person
 create getters/setters, empty constructor, and constructor with fields.

[ONLINE] New Classes : Class names
[ONLINE] XXXXXXXXXXfieldname : dataType
 Create the following classes in the new package (com.preBuild.module7.ONLINE):
1. Person class-
 create fields :
 personID:String
 firstName:String
 lastName:String
 locationInfo:Location
 create getters/setters, empty constructor, and constructor with fields.
2. Customer class-
 create fields :
 personInfo:Person
 isMember:Boolean
 balance:double
 transactionInfo:Transaction
 create getters/setters, empty constructor, and constructor with fields.
3. Admin class-
 create fields :
 customerInfo:Customer
 transactionInfo:Transaction
 sessionID:String
 create getters/setters, empty constructor, and constructor with fields.
4. Location class-
 create fields :
 streetAddress:String
 city:String
 tx:String
 zipCode:int
 create getters/setters, empty constructor, and constructor with fields.
5. Transaction class –
 create fields :
 serviceName:String
 transactionID:String
 transactionDate:String
 serviceCost:double
 create getters/setters, empty constructor, and constructor with fields.

[BANKING] New Classes : Class names
[BANKING] XXXXXXXXXXfieldname : dataType
 Create the following classes in the new package (com.preBuild.module7.BANKING):
6. Person class-
 create fields :
 personID:String
 firstName:String
 lastName:String
 locationInfo:Location
 getters/setters, empty constructor, and constructor with fields.
7. Customer class-
 create fields :
 personInfo:Person
 isMember:Boolean
 balance:double
 transactionInfo:Transaction
 getters/setters, empty constructor, and constructor with fields.
8. Admin class-
 create fields :
 customerInfo:Customer
 transactionInfo:Transaction
 sessionID:String
 getters/setters, empty constructor, and constructor with fields.
9. Location class-
 create fields :
 streetAddress:String
 city:String
 tx:String
 zipCode:int
 getters/setters, empty constructor, and constructor with fields.
10. Transaction class –
 create fields :
 serviceName:String
 transactionID:String
 transactionDate:String
 serviceCost:double
 getters/setters, empty constructor, and constructor with fields.

#3
New Methods
Create a class called “Mod7Main” in your old package, with the following functions
[RETAIL] [HEALTH] [ONLINE] [BANKING]

1. Create function that ask the user a question-answer.
• Enter 1 for the new methods or Enter 2 for the old program.
• Relocate main method from old program to Mod7Main and change the old main method to a void
method. Call the old – now void method if user enter 2. If Enter 1 the program should execute
Mod7Main.
2. Create a function in Mod7Main, a method, that stores all fields’ data in an Object array per user. And
the Object array’s elements or fields’ values are store in a text file in your program.
3. Create a function in Mod7Main, a method, that retrieves data, in an organized matter. All customer
data should provide person data, and employee data should provide person data, as well.
4. Create a function in Mod7Main, a method, that finds a customer, or patient by a user entering the
customers’ or patients’ personID from Person class. And the method will return Person data,
Customer data, and some Transactional data such as transaction information of an event, record
information of an event. Like a patient went to see a doctor, there should be information on why,
what, happened when the patient went to the doctor’s office.
New
Old Program
#4
Programming Assignment Specifications
Topics Required
Programming Assignment 4 : Improved and
Updated, with Instructors recommendations from
comments
Chapter 6 _Classes and Objects ( Classes, Objects,
Instance Fields, Methods, Constructors, Passing
Object as Arguments, Overloading Methods and
Constructors, Scope, package and import.

Chapter 7 _ Array (processing array contents,
passing arrays as arguments to methods, String
Arrays, Arrays of Objects)
#5
Programming Assignment Submission
Zip the entire Java Project in compress zip file, and submit to
assignment.
(07AL) Programming Assignment 6 (PRE-FINAL BUILD)
#1
#2
[RETAIL] New Classes : Class names & field names
[HEALTH] New Classes : Class names & field names
[ONLINE] New Classes : Class names
[BANKING] New Classes : Class names
#3
#4
#5
Answered 1 days AfterMay 04, 2021

Solution

Kshitij answered on May 06 2021
32 Votes
may05_21/one/Mod7Main.java
may05_21/one/Mod7Main.java
/*   Created by IntelliJ IDEA.
 *   Author: Kshitij Varshney (kshitijvarshne1)
 *   Date: 06-May-21
 *   Time: 4:07 PM
 * ...
SOLUTION.PDF

Answer To This Question Is Available To Download

Submit New Assignment

Copy and Paste Your Assignment Here