Consider an interfacepublic interface NumberFormatter{String format (int n);}Provide four additional classes that implement this interface.•A DefaultFormatter formats an integer in the usual way.•A...

Consider an interfacepublic interface NumberFormatter{String format (int n);}Provide four additional classes that implement this interface.•A DefaultFormatter formats an integer in the usual way.•A DecimalSeparatorFormatter formats an integer with decimal separators; for example,one million as 1,000,000.•An AccountingFormatter formats negative numbers with parenthesis; for example, -1 as(1).•A BaseFormatter formats the number as base n, where n is any number between 2 and36 that is provided in the constructor.I have provided the test class which should be included in the submission. It is calledNumberFormatterTester.java. Please do not change this class.Your project should have six files included in the submission.Follow all directions in the COP3337 Class Rules for Submitting Programs.Please remove any package statements in your program. The program must compile and runfrom the command line no matter what IDE you use.Note that a program that does not compile and run and do some part of the assignment willnot earn any points.The submission should be called FirstnameLastnameA4.zip
Feb 26, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here