Programming in Perl

Homework 2

Frequently Asked Questions

  1. Does the order of the operators matter in the sorted list?
    No, the groupings can come in any order, so long as all additions are together, all multiplications are together, etc
  2. Should the integer divisions be grouped seperately from the floating point divisions?
    No. All divisions, regardless of type, should be grouped together and sorted by value of their solutions
  3. Should the result of an integer division be truncated, or rounded to the nearest integer?
    It should follow the C/C++ style of integer division, which means truncation. Anything in the range [2,3) should result in the value 2.
  4. If an equation is entered exactly the same way more than one time, should it be displayed in the sorted list just once, or as many times as it was entered?
    You need not concern yourself with this possibility. Either method is acceptable.
  5. If the result of a floating point division is a whole number, should it be printed out as an integer, or should we ensure that a ".0" is appended?
    Either method is acceptable.