Question: Please write in java; thanks. You have been hired by Millennial Mart to write a Java console application that processes customers through their store checkout

 Please write in java; thanks. You have been hired by Millennial

Mart to write a Java console application that processes customers through their

store checkout line. The application has the following two classes: Customer.java Each

Please write in java; thanks.

You have been hired by Millennial Mart to write a Java console application that processes customers through their store checkout line. The application has the following two classes: Customer.java Each object created from t following fields and methods: his class represents one customer and includes the Fields (static) totalCustomers-count of all distinct customers; initialize to 0 in declaration. (static) totalltems- total items purchased by all customers; initialize to 0 in declaration. 9 (static) totalCost-total cost of all items purchased by all customers; initialize to 0 in declaration. . ID- unique number assigned to each customer. e items-number of items in customer shopping cart. cost-cost of all items in customer shopping cart o next- pointer to next customer Methods . A constructor with no parameters that sets the fields, respectively, to these values: totalCustomers ID =-1 items =-1 cost-1 next null totalCustomers+1 . A constructor with two parameters that sets the fields, respectively, to these values total Customers- totalCustomers + 1 totalltems totaliltems + items totalCost totalCost + cost ID - set to totalCustomers items set from parameter cost set from parameter next null . Getter methods for each field (declare the getters for totalCustomers, totalltems, and totalCost static). Setter methods for each field (declare the setters for totalCustomers, totalltems, and totalCost static). equals method that compares ID for equality. . to String method for returning ID, items, and cost values only

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!