Solutions

BODMAS

Like we were taught in primary school, computers evaluate calculation according to the order dictated by 'Brackets (Of) Division Multiplication Addition Subtraction':

  1. 6.0
  2. 4.5
  3. 4.3333..
  4. 2.3333..

Use brackets where necessary but try to avoid using too many as this will make your code more readable.