Repository for submission for week 5 coding assignment.
Follow the Exercises below to complete this assignment.
- In Eclipse, or an IDE of your choice, write the code that accomplishes the objectives listed below. Ensure that the code compiles and runs as directed.
- Create a new repository on GitHub for this week's assignment and push your completed code to this dedicated repo.
- Create a video showcasing your work:
- In this video: record and present your project verbally while showing the results of the working project.
Easy way to Create a video: Start a meeting in Zoom, share your screen, open Eclipse with the code and your Console window, start recording & record yourself describing and running the program showing the results. When you click "End Meeting" it will save the video on your computer.
-
Create a video, up to five minutes max, showing and explaining how your project works with an emphasis on the portions you contributed.
-
This video should be done using screen share and voice over.
-
This should then be uploaded to a publicly accessible site, such as YouTube. Ensure the link you share is PUBLIC or UNLISTED!
a. log
b. error
a. AsteriskLogger
b. SpacedLogger
Note: The AsteriskLogger
will use the asterisk or *
.
a. The log
method on the AsteriskLogger
should print out the String it receives between 3 asterisks on either side of the String (e.g. if the String passed in is Hello
, then it should print ***Hello***
to the console).
b. The error method on the AsteriskLogger should print the String it receives inside a box of asterisks, with the String preceded by the word “ERROR:”. For example, if “Hello” is the argument, the following should be printed:
****************
***Error: Hello***
****************
Note: The SpacedLogger
should add a space or "
" between each character of the String argument passed into its methods.
a. If the log
method received Hello
as an argument, it should print H e l l o
b. The error
method should do the same, but with ERROR:
preceding the spaced out input (i.e. ERROR: H e l l o
)
a. In this class instantiate an instance of each of your logger classes that implement the Logger
interface.
b. Test both methods on both instances, passing in Strings of your choice.