5 + 4 =
Operand_1 Operator Operand_2 =The characters in the formulas may or may not be seperated by whitespace. The operators you must support are: + - / * %
Once the user enters the phrase "done" (case insenstive), you are to present the user with a list of all formulas entered and their solutions. The list must be sorted by order of operation first, and then by value of the solution. (This means one sorted list - the formulas grouped by operation, and sorted by solution value within this grouping).
Note that the values of the operands may be negative (in which case the minus sign will be immediately in front of the operand, with no spaces), and may be decimals. Any decimal number betwen 0 and 1 will be specified with a 0 before the decimal point. Any whole number will either not have a decimal point at all, or will have a decimal followed by one or more 0's. (Whole numbers written with decimal-zero are not to be treated as integers by the division system).
| Parse +, -, *, and % and produce corect result: | 25% |
| Parse integer division and produce correct result: | 15% |
| Parse decimal division and produce correct result: | 10% |
| Print list of all formulas and solutions: | 15% |
| Sort list first by formula type: | 10% |
| Sort list secondly by solution value: | 5% |
| Compilation: | 5% |
| Code Style: | 5% |
| Output Style: | 5% |
| Error Checking: | 5% |
The homework is due due Tuesday, February 18th at 11:59:59pm EST. It will be accepted until Wednesday, 2/19 11:59:59 at a reduction of 20%.