Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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,
Karol Dunn, Durban,
Spike Fenton, Johannesburg,
Eugene Santana, Durban,
Cayson Warner, Cape Town,
Eisa Wilson, Johannesburg,
Gemma Paterson, Johannesburg,
Tyron Bonilla, Johannesburg,
Victor Orozco, Potchefstroom,
Aya Farrington, Cape Town,
Johan Hoffman, Springbok,
Kaelan Casey, Bloemfontein,
Kealan Chester, Port Elizabeth,
Kailan Snow, Bloemfontein,
Ana Ortega, Port Elizabeth,
Jaidan Spencer, Potchefstroom,
Kallum Sadler, Witbank,
Aaron Neville, Cape Town,
Trevor Rigby, Bloemfontein,
Eshan Gibson, Witbank,
Abul Ali, Durban,
Liya Simons, Springbok,
Umayr Rawlings, Durban,
Adelina Markham, Witbank,
Huma Owens, Witbank,
Miranda Metcalfe, Cape Town,
Caitlin Andrade, Witbank,
Blaine Merritt, Springbok,
Clement Bond, Port Elizabeth,
Lily Drew, Port Elizabeth,
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 consoleterminalbased.
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