subject

1.11 Additional practice: Output art1.12 zyLab training: BasicsWhile the zyLab platform can be used without training, a bit of training may help some students avoid common issues. The assignment is to get an integer from input, and output that integer squared, ending with newline. (Note: This assignment is configured to have students programming directly in the zyBook. Instructors may instead require students to upload a file). Below is a program that's been nearly completed for you. 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 pre-enter needed input. Type 2 in the input box, then click "Run program", and note the output is 4.Type 3 in the input box instead, run, and note the output is 6.When students are done developing their program, they can submit the program for automated grading. Click the "Submit mode" tabClick "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: print(userNumSquared). Type 2 in the input box and run. Click on "Submit mode", click "Submit for grading", and observe that now the first test case passes and 1 point was earned. The last two test cases failed, due to a bug, yielding only 1 of 3 possible points. Fix that bug. Click on "Develop mode", change the program to use * rather than +, and try running with input 2 (output is 4) and 3 (output is now 9, not 6 as before).Click on "Submit mode" again, and click "Submit for grading". Observe that all test cases are passed, and you've earned 3 of 3 points. userNum = int(input())userNumSquared = userNum + userNum # Bug here; fix it when instructedprint(userNumSquared, end=' ') # Output formatting issue here; fix it when instructed

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
Which of the following is not contained on the slide show toolbar? a. next button b. slide button c. close button d. pen tool
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Type the correct answer in the box. spell all words correctly. the managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
Sports and entertainment class, your goal is to increase attendance and make a profit for a game by getting your team on a winning track with total salaries less than $3,000,000
Answers: 3
question
Computers and Technology, 24.06.2019 06:50
What are the things you are considering before uploading photos on social media?
Answers: 1
You know the right answer?
1.11 Additional practice: Output art1.12 zyLab training: BasicsWhile the zyLab platform can be used...
Questions
question
Mathematics, 06.05.2020 19:00
question
Mathematics, 06.05.2020 19:00
Questions on the website: 13722360