Can you help me find any errors by pointing them out and writing the right way i
ID: 3594266 • Letter: C
Question
Can you help me find any errors by pointing them out and writing the right way in this debug
Explanation / Answer
The mistakes are within compareProfit method
Solution:
if totalThisYear = totalLastYear then
status = "same"
else
if totalThisYear < totalLastYear then
status = "Lower"
else
status ="Higher".
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.