Question: In Java For this assignment, you will write a calculator program that that takes command-line arguments, performs simple arithmetic, and produces the result in the
In Java 
For this assignment, you will write a calculator program that that takes command-line arguments, performs simple arithmetic, and produces the result in the base desired. Arguments The first, optional argument is one of h,o, or d, signifying an output base of hexadecimal, octal, or decimal. The default is decimal. After that is a mandatory operator, one of: - +: addition -: subtraction : multiplication (remember to quote it) - /: integer division a: distance from 45 (see below) After that is a mandatory sequence of at least one integer, of the form: - Oxdigits: a hexadecimal integer, containing digits 0123456789 abcdef. - Obdigits: a binary integer, containing digits 01. - Odigits: an octal integer, containing digits 01234567. - digits: (not matching any of the above patterns) a decimal integer, containing digits 0123456789. No more arguments should follow
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
