Question: Your assignment is to create a file called Customer.java containing a class Customer (there is no main method in this class). A Customer has a



Your assignment is to create a file called Customer.java containing a class Customer (there is no main method in this class). A Customer has a first name (a String), last name (String), ID number (integer), number of larger drinks (integer), number of small drinks (integer), and total cost (double). Each large drink costs $8.50 and each small drink costs $4.50. You need to compute the total cost based on the number of large drinks and small drinks.
The class Customer must include the following constructors and methods. (If your class does not contain any of the following methods, points will be deducted.)
Save the Customer class in a file called Customer. ava and use the following program stored in Assignment5java, which has the main method to create new Customer objects and to test your class. A sample output is shown below. Important Notes: Your class should have exactly the method headers that are described or otherwise your class will not work with the test driver program (Assignmen that is provided. You should never change the t5java) test driver program if the test driver is provided but instead make changes to Customer class to make it work. Helpful hints for doing this assignment: work on it in steps. Write one method, test it with a test driver and make sure it works before going on to the next method always make sure your code compiles before you add another method your methods should be able to be called in any order After compiling Customerjava file and Assignment5.java file, you need to execute Assignment5 class. Sample output (the nputs entered by a user are shown in boldD C: MyJava applications java Assignment5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
