Answered step by step
Verified Expert Solution
Question
1 Approved Answer
These classes need to be writen in JAVA language 1. Create a Passenger class Data Passenger ID Passenger Name Passenger Credit Card Number Number Passenger
These classes need to be writen in JAVA language
1. Create a Passenger class Data Passenger ID Passenger Name Passenger Credit Card Number Number Passenger TIN Datatype Number Strin Limit 3 digits 10 digits 4 digits Number Passenger class functionalit 1, 2. 3. Create the default and overloaded constructors for the class Getters/setters for each attribute Create a text file with passenger data to be used to populate the passenger objects 2. Create a Train class Data Train number Departure station Arrival station Borough Code Departure Time Arrival Time Datatype Character Strin Strin Number Datetime Datetime Limit Single character Single digit Time format Time format Train class functionalit Each borough has a train which goes from North to South & vice versa, and from East to West & vice versa. Broadway West or Broadway East) 1. You will name these stops (ex: Main Street North, Main Street South, 2. Logically, the trains should depart at a fixed period, to easily calculate the travel time 3. You have the option of using a frequency variable (15 means every 15 minutes) You will need to create a physical map to show connections between trainsStep 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