Question: Code a Java program that will meet part of Quick Food s specifications. You will build upon this program in later Capstone projects. For this

Code a Java program that will meet part of Quick Foods specifications.
You will build upon this program in later Capstone projects. For this
program, you should:
o Create a class that will be used to create a Customer object.
o Create a class that will be used to create a Restaurant object.
o Write a program that will allow a user to:
Capture the details that are used to create a new Customer
object.
Capture the details that are used to create a new Restaurant
object.
Read the drivers.txt which is
Julie Carty, Cape Town, 6
Karol Dunn, Durban, 4
Spike Fenton, Johannesburg, 11
Eugene Santana, Durban, 2
Cayson Warner, Cape Town, 3
Eisa Wilson, Johannesburg, 10
Gemma Paterson, Johannesburg, 12
Tyron Bonilla, Johannesburg, 14
Victor Orozco, Potchefstroom, 8
Aya Farrington, Cape Town, 9
Johan Hoffman, Springbok, 1
Kaelan Casey, Bloemfontein, 16
Kealan Chester, Port Elizabeth, 2
Kailan Snow, Bloemfontein, 6
Ana Ortega, Port Elizabeth, 1
Jaidan Spencer, Potchefstroom, 3
Kallum Sadler, Witbank, 15
Aaron Neville, Cape Town, 4
Trevor Rigby, Bloemfontein, 27
Eshan Gibson, Witbank, 4
Abul Ali, Durban, 12
Liya Simons, Springbok, 5
Umayr Rawlings, Durban, 6
Adelina Markham, Witbank, 7
Huma Owens, Witbank, 12
Miranda Metcalfe, Cape Town, 1
Caitlin Andrade, Witbank, 8
Blaine Merritt, Springbok, 11
Clement Bond, Port Elizabeth, 9
Lily Drew, Port Elizabeth, 4
and find the driver in the correct
area with the smallest load. Note, you just need to check if
the driver and the restaurant are in the same area.
If the customer lives in a location that does not match a
drivers location, the invoice only needs to say: Sorry! Our
drivers are too far away from you to be able to
deliver to your location.
Write up the invoice to a new text file for the customer called
invoice.txt.
Reminder: this compulsory task should be console/terminal-based.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!