Question: Testing the Design In your main class, create two Team Managers. One is Grace Hopper who leads the Compiler Team. The other is Jony Ive

Testing the Design
In your main class, create two Team Managers. One is "Grace Hopper" who leads the "Compiler Team".
The other is "Jony Ive" who leads "Industrial Team".
Assign the following 2 Software Developers and 1 Designer to the Compiler Team:
Developer Jane Doe. Languages: C#, Java, C, C++
Developer Jack Doe. Languages: Python, Perl, Java
Designer Hans Gruber. 5 Years of Experience.
Assign the following 1 Software Developer and 1 Designer to the Industrial Team:
Developer Ada Lovelace. Languages: Ada, Swift
Designer Alex Binder. 12 Years of Experience.
Once both teams are created, call getTeamProfile() on both teams and save the results to a file named
"report.txt". Please note, the filename must be exact and do not specify a file path. (See example output
in this document)
Please note: You do not need to get input from the user, you are purely testing your design with the
above values. To write to a file, you can use a BufferedWriter:
try {
BufferedWriter writer = new BufferedWriter(new FileWriter("report.txt"));
writer.write("Some String);
writer.write("Another String");
writer.flush();
writer.close();
}
catch (IOException e){
System.out.println("Unable to write to file: "+ e.toString());
}
Since you are using a buffer that is designed for performance, you must make sure that you flush the
buffer so all data gets saved into the file before you close the writer.

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!