Create a program in writecustomerlist. java that allows a user to input customer records (id number, first name, last name, and balance owed) and save each record to a file named customerlist. txt. have the program accept input until zzz is input for the id number. write the records to customerlist. txt in csv format, for example:

101,john,smith,107. 5

41,jill,green,20. 0

when you execute the program, be sure to enter multiple records that have the same last name because you will search for repeated last names in part 4 of this exercise.


write an application named displaysavedcustomerlist. java that reads the file created by the writecustomerlist application and displays the records.


write an application named displayselectedcustomer. java that allows you to enter any id number, reads the customer data file created in step 1, and displays the data for the customer. display the message no records found if the id number cannot be found in the input file.


write an application named displayselectedcustomersbyname. java that allows you to enter any last name and displays all the data for customers with the given last name. display the message no records found if the name cannot be found in the input file.


write an application named displayselectedcustomersbybalance. java that allows you to enter any purchase amount and displays all the data for customers with balances greater than the entered value. display the message no records found if no customers meet the criteria

Respuesta :

Using the knowledge in computational language in JAVA, this code can be written as:

Writing code in JAVA:

public String toString() {

return this.firstName+" " + this.lastName ;

}

System.out.println("Enter First Name: ");

   String firstName = input.nextLine();

   System.out.println("Enter Last Name: ");

   String lastName = input.nextLine();

   System.out.println("Enter Home Address: ");

   String homeAddress = input.nextLine();

   Customer cus = new Customer(firstName, lastName, homeAddress);

   System.out.println("\nWelcome: ");

   System.out.print(cus.getFirstName() + cus.getLastName());

   System.out.println("\n Your Shipping Address: ");

   System.out.print(cus.getHomeShippingAddress());

   List<Customer> customer = new ArrayList<Customer>();

   customer.add(cus);

   printList(customer);

}

public static void printList(List<Customer> list) {

   System.out.println("Customers: ");

   for (Customer customer : list) {

       System.out.printf("%s", customer);

   }

   System.out.println();

}

This JAVA code describes a program in writecustomerlist. java that allows a user to input customer records.

See more about JAVA at brainly.com/question/12975450

#SPJ1

Ver imagen lhmarianateixeira