Calculator Project · You can assume all input will be valid (we will make a validator later to validate input) · You cannot use loops, you must use recursion instead · If you would like a bit of...

1 answer below »
Check the file


Calculator Project · You can assume all input will be valid (we will make a validator later to validate input) · You cannot use loops, you must use recursion instead · If you would like a bit of practice with recursion, a good warmup exercise would be a function to calculate the factorial of an integer i.e. 4! = 4 x 3 x 2 x 1 · You cannot use any method in the java.lang.Math class · Your Calculator class must implement the ICalculator interface provided (do not make any changes to the method signature) · You must use Test Driven Development throughout the development process Mark Range Functionality 75-79 +, -, *, / all working (with correct order of operations) 80-84 Either brackets or integer exponents working (positive and negative whole numbers) 85-94 Both brackets and integer exponents working (positive and negative whole numbers) 95-100 Fractional exponents working e.g. 4*-5, 1--2 Advice for the Calculator Project Calculator Test Code · Name your tests with specific lowercase descriptive nouns, separated by underscores · Only test one feature at a time · Progressively define new functionality with each new test · Each new test should be added to the bottom of your existing test suite · Please don’t use print statements in your tests · Please don’t number your tests – the JUnit system will organize it for you · Aim for and continually work towards 100% coverage of your incrementally developed calculator code, with your incrementally developed test code Calculator Code · Please use ctrl-shift-f to auto format your code so that it meets standard coding conventions · Please remove any unnecessary comments from your code · Comment on the regular expressions (may be the only things worth commenting on – your method and attribute names will explain themselves · Please remove any print statements from your code · Please refactor and reuse your methods to avoid repetition of code · Make attributes and methods as private as possible · Remember that you can use these methods in the String class: · isEmpty() · matches() · replace() · replaceAll() · indexOf() · lastIndexOf() · substring() · charAt() · equals() · contains() Calculator Project · You can assume all input will be valid (we will make a validator later to validate input) · You cannot use loops, you must use recursion instead · If you would like a bit of practice with recursion, a good warmup exercise would be a function to calculate the factorial of an integer i.e. 4! = 4 x 3 x 2 x 1 · You cannot use any method in the java.lang.Math class · Your Calculator class must implement the ICalculator interface provided (do not make any changes to the method signature) · You must use Test Driven Development throughout the development process Mark Range Functionality 75-79 +, -, *, / all working (with correct order of operations) 80-84 Either brackets or integer exponents working (positive and negative whole numbers) 85-94 Both brackets and integer exponents working (positive and negative whole numbers) 95-100 Fractional exponents working e.g. 4*-5, 1--2 Advice for the Calculator Project Calculator Test Code · Name your tests with specific lowercase descriptive nouns, separated by underscores · Only test one feature at a time · Progressively define new functionality with each new test · Each new test should be added to the bottom of your existing test suite · Please don’t use print statements in your tests · Please don’t number your tests – the JUnit system will organize it for you · Aim for and continually work towards 100% coverage of your incrementally developed calculator code, with your incrementally developed test code Calculator Code · Please use ctrl-shift-f to auto format your code so that it meets standard coding conventions · Please remove any unnecessary comments from your code · Comment on the regular expressions (may be the only things worth commenting on – your method and attribute names will explain themselves · Please remove any print statements from your code · Please refactor and reuse your methods to avoid repetition of code · Make attributes and methods as private as possible · Remember that you can use these methods in the String class: · isEmpty() · matches() · replace() · replaceAll() · indexOf() · lastIndexOf() · substring() · charAt() · equals() · contains()
Answered Same DayJan 14, 2022

Answer To: Calculator Project · You can assume all input will be valid (we will make a validator later to...

Neha answered on Jan 14 2022
109 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here