Black Dot Printing is attempting to organize carpools to save energy. Each input record contains an employeeâ€™s name and town of residence. Ten percent of the companyâ€™s employees live in Wonder Lake; 30 percent live in Woodstock. Because these towns are both north of the company, Black Dot wants to encourage employees who live in either town, to drive to work together.
Write a Java program used to accept an employeeâ€™s data and displays it with a message indicating whether the employee is a candidate for the carpool. Save the class as Carpool.java