Question: 1) Create the following simplified Customer class public class Customer String int char float name agei gender moneyi //A simple constructor public Customer (String n,

 1) Create the following simplified Customer class public class Customer String

int char float name agei gender moneyi //A simple constructor public Customer

(String n, int a, char g, float m) name = n; age

1) Create the following simplified Customer class public class Customer String int char float name agei gender moneyi //A simple constructor public Customer (String n, int a, char g, float m) name = n; age = a; gender- g; money mi 7Return a String representation of the object public String toString) [ String result; result"Customer"name + ":a"age"year old "; if (gender'F' return result "male with $" money; result += "fe": Create the following simple Store class public class Storet public static final int MAX CUSTOMERS = 500; String Customer customers; int name; customerCount; public Store (String n) f name = n; customers-new Customer [MAX CUSTOMERS] custom erCount 0; public void addCustomer (Customer c) l if (customerCount

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!