Question: Read three integers from input and assign them to suitcase _ weight, luggage _ weight, and backpack _ weight, respectively. Then, output the sum of
Read three integers from input and assign them to suitcaseweight, luggageweight, and backpackweight, respectively. Then, output the sum of the three integers.
Click here for examples
Ex : If the input is:
then the output is:
Ex : If the input is:
Click "Run program". The output is wrong. Sometimes a program lacking input will produce wrong output as in this case or no output. Remember to always preenter needed input.
Type in the input box, then click "Run program", and note the output is
Type in the input box instead, run, and note the output is
When students are done developing their program, they can submit the program for automated grading.
Click the "Submit mode" tab
Click "Submit for grading".
The first test case failed as did all test cases, but focus on the first test case first The highlighted arrow symbol means an ending newline was expected but is missing from your program's output.
Matching output exactly, even whitespace, is often required. Change the program to output an ending newline.
Click on "Develop mode", and change the output statement to output a newline: printusernumsquared Type in the input box and run.
Click on "Submit mode", click "Submit for grading", and observe that now the first test case passes and point was earned.
The last two test cases failed, due to a bug, yielding only of possible points. Fix that bug.
Click on "Develop mode", change the program to use rather than and try running with input output is and output is now not as before
Click on "Submit mode" again, and click "Submit for grading". Observe that all test cases are passed, and you've earned of points.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
