A customer service phone support system will consist of a classcalled Case , whi
ID: 3609824 • Letter: A
Question
A customer service phone support system will consist of a classcalled Case, which will represent a newly openedcase. Every time a customer calls with a new problem a freshCase object is instantiated, with a new casenumber. Each time a phone support engineer is done talking toa customer he/she will add a new Entry into thecase. If this is the new call, the Entrywill be the first and only Entry. If thecall is a follow up from a previous call on the same case, theEntry will be added to theCase. You will need two classes,Entry and Case.
Create a class called Entry that has thefollowing private members:
Supply the following:
Create another class called Case that has thefollowing members:
You should supply all of the following (at a minimum):
The main client should instantiate at least two Cases and add acouple Entries for each. It should display the histories ofeach case. For example, it might start like this:
A sample run might look something like this:
Explanation / Answer
class Entry { private String engineer; private String Description; Entry( String engineer, String description ) { this.engineer = engineer; this.Description= description; } Entry( ) { this.engineer = "Name not given"; this.Description= "No Problemmm"; } public boolean SetEngineer(String engineer) { this.engineer = engineer; return true; } public void SetDescription(String description) { this.Description = description; } public String getEngineer() { return this.engineer; } public String getDescription() { return this.Description; } public void Display() { System.out.println("Engineer Name :" +engineer); System.out.println("Description :" +Description); } }///end of Entry class public class Case { public long id; //id of the case public static int next_entry=0; public final int MAX_ENTRIES = 100; public Entry[] entry_array = new Entry[MAX_ENTRIES]; public Case(int id){ //constructor this.id = id; } public void DisplayHistory() { System.out.println("History for case ID "+ id + " -----------------------"); for(int i =0; iRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.