hi,
Im getting an error on the case lines in Red:
========================================
Cannot implicitly convert type 'bool' to 'int'
========================================
Any help please. Thanks
Code:switch (total) { case (total < 50): grade = "FAIL"; case (total >= 50 && total < 70): grade = "PASS"; case (total > 70 && total < 80): grade = "MERIT"; case (total >= 80 && total < 90): grade = "DISTINCTION";





Reply With Quote