Answered step by step
Verified Expert Solution
Link Copied!

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, 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Employ effective vocal cues Employ effective visual cues

Answered: 1 week ago