Watch the Stack Traffic Disappear
EasyComplete weightedScore so it computes the score in three steps using the local variables base, total, and adjusted. The program prints three results. Once the output is correct, read the assembly panel and switch between -O0 and -O2: at -O0 you will see each local stored to and reloaded from the stack, while at -O2 the whole function collapses into a handful of register-only instructions with no stack frame.
Success Criteria
Your code must pass 1 test case(s) to complete this exercise. 3 hint(s) are available if you need help.
Sign in to track your progress
You can work on exercises as a guest, but sign in to track your progress and save your submissions.