Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi, can someone please help me finish writing this code in Java. Please do not delete or alter the code structure. All you can do

Hi, can someone please help me finish writing this code in Java. Please do not delete or alter the code structure. All you can do is add to the code. Here are some possible outputs. The output of the code must match the sample out put ive provided. The code is located below the sample outputs. Thank you in advance and please use comments to explain what is happening.

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

public final class Messenger { // // Static Data Fields // private static final Config config = new Config(); // // Constructors // private Messenger() { } // // main // public static void main(String[] args) { Messenger.config.getStdOutStdErrTee().startLog(); Messenger.config.setPreferences();l (new ChatSession(Messenger.config.getClub(), Messenger.config.getUniversity())).runChatSession(); StdOutStdErrTee.stopLog(); // Please feel free to use GraderTest to test our programs. // Grader tests are not a part of our required output. // GraderTest.run(); } // // Static Methods // public static Config getConfig() { return Messenger.config; } // // Method Shortcuts (convenient but optional to use) // Please DO NOT CHANGE this file. Please DO NOT comment out code. // public static String getGreetingIdx(int i) { return Messenger.getConfig().getLang().getGreetingIdx(i); } public static String getFrontOfficeIdx(int i) { return Messenger.getConfig().getLang().getFrontOfficeIdx(i); } public static String getCardIdx(int i) { return Messenger.getConfig().getLang().getCardIdx(i); } public static String getChatSessionIdx(int i) { return Messenger.getConfig().getLang().getChatSessionIdx(i); } public static String getClubIdx(int i) { return Messenger.getConfig().getLang().getClubIdx(i); } public static String getColorIdx(int i) { return Messenger.getConfig().getLang().getColorIdx(i); } public static String getNowTime(String s) { return Messenger.getConfig().getTimer().getNowTime(s); } public static String getCommonIdx(int i) { return Messenger.getConfig().getLang().getCommonIdx(i); } public static String getDecorIdx(int i) { return Messenger.getConfig().getLang().getDecorIdx(i); } public static String getConfigIdx(int i) { return Messenger.getConfig().getLang().getConfigIdx(i); } public static String getGeneralManagerIdx(int i) { return Messenger.getConfig().getLang().getGeneralManagerIdx(i); } public static String getManagerIdx(int i) { return Messenger.getConfig().getLang().getManagerIdx(i); } public static String getMessengerIdx(int i) { return Messenger.getConfig().getLang().getMessengerIdx(i); } public static String getPersonIdx(int i) { return Messenger.getConfig().getLang().getPersonIdx(i); } public static String getPlayerIdx(int i) { return Messenger.getConfig().getLang().getPlayerIdx(i); } public static String getPresidentIdx(int i) { return Messenger.getConfig().getLang().getPresidentIdx(i); } public static String getQuestionAnswerIdx(int i) { return Messenger.getConfig().getLang().getQuestionAnswerIdx(i); } public static String getQuizIdx(int i) { return Messenger.getConfig().getLang().getQuizIdx(i); } public static String getReceiptIdx(int i) { return Messenger.getConfig().getLang().getReceiptIdx(i); } public static String getSFGiantsCardGeneratorIdx(int i) { return Messenger.getConfig().getLang().getSfGiantsCardGeneratorIdx(i); } public static String getStdOutStdErrTeeIdx(int i) { return Messenger.getConfig().getLang().getStdOutStdErrIdx(i); } public static String getStudentIdx(int i) { return Messenger.getConfig().getLang().getStudentIdx(i); } public static String getTimerIdx(int i) { return Messenger.getConfig().getLang().getTimerIdx(i); } public static String getUniversityIdx(int i) { return Messenger.getConfig().getLang().getUniversityIdx(i); } }
Programming Requirements: 1. We must use this starter code: 2. We can add code. Our task to complete implementing the incomplete classes among the provdied starter-code files. 3. We cannot change and cannot remove the provided code, especially the code in file 4. We must keep all of our data fields "private". We must not create any new classes. 5. We must use a programming style provided in the directory File Manager/Assignments. 3 styles were provided. 6. In our assignment report, we must demonstrate to our grader that: - Our program runs properly on the latest version of NetBeans and that - Our program meets the requirements successfully. - Please document each sample run clearly so that our grader can see how much work and passion we put into developing our program 1 Sample Output 01 This is a standard run. Language option: English Time Zone option: PST Please allocate enough time to read and to understand the flow of the program. The provided UML diagrams should help analyze the output. The color-coded arrows point at important details. Your program's output must be identical except the value of the time stamps, the student name, and the student email address. Please use your name and your email address. This black and white copy does not show colors. Please see Sample Output 05. Please bring your questions to class. SF GIANTS THANK YOU Language: English Time Zone: PST Language: English Time Zone: Pacific Standard Time Color: ANSI Standard Output Log: ./src/assignment02PartB/log/Standardout.log Standard Error Log: ./src/assignment02PartB/log/StandardErr.log Receipt Log: ./src/assignment02PartB/log/Receipt-*-*.log Default club: San Francisco Giants Default university: San Francisco State University 2020/02/02 12:11:46 [0196 ms] AM PST - Chat session started. SF Giants: Welcome to the SAN FRANCISCO GIANTS! club: Short Name: Established in: Colors: Ballpark: World Series Titles: NL Pennants : Division Titles: Wild Card Berths: Owners: President: General Manager: Manager: San Francisco Giants SF Giants 1883 Orange, Black, Gold, Cream Oracle Park 8 23 8 3 San Francisco Baseball Associates LLC Farhan Zaidi Scott Harris Gabe Kapler SF Giants: Your first name and last name, please: Duc Ta SF Giants: Your school email address, please: dta@sfsu.edu SF Giants: Thank you. We are connecting you with our player... SF Giants: Your first name and last name, please: Duc Ta SF Giants: Your school email address, please: dta@sfsu.edu SF Giants: Thank you. We are connecting you with our player... Player: Club: Position: Number: Bats: Throws: MLB Debut: Buster Posey San Francisco Giants Catcher 28 Right Right 2009 Buster Posey, 28: Hello Duc. C-O-N-G-R-A-T-U-L-A-T-I-O-N-S! Buster Posey, 28: SAN FRANCISCO STE TE UNIVERSITY. Way to go! Duc Ta: Thank you, Posey! Nice to e-meet you! Buster Posey, 28: Likewise, Duc. Very nice chatting w/ you. Buster Posey 28: How many SF Giants Thank You cards would you like to order? Duc Ta: 3 Buster Posey, 28: In 3 lines, please provide [1] Recipient name [2] Art symbol (a character) [3] Message to recipient Buster Posey, 28: Card #1: Duc Ta: [1] Mom Duc Ta: [2] @ Duc Ta: [3] Thank you very much, Mom

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago