subject

Homework 1 Fundamentals 1. Debugging
Look at the following code – there are 3 errors.
weightOne float(input ("Enter the weight of box 1: ))
weightTwo float(input("Enter the weight of box 2: "))
if weightOne > weightTwo:
print(β€œBox 1 is lighten")
elif weightOne < weight Two:
Print("Box 2 is lighter")
else:
print("The two boxes weigh the same)
Identify each error, state whether it is a logic or syntax error and explain how to fix it. [6]
Error 1:
Type of error
(UK

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:00
Ulia is planning to attend the same private four-year college her parents attended. she wants to save at least $18,000 in four years to contribute to her college education. which monthly deposit amounts can julia use to achieve her goal? check all that apply.
Answers: 2
question
Computers and Technology, 23.06.2019 02:00
Consider the following function main: int main() { int alpha[20]; int beta[20]; int matrix[10][4]; . . } a. write the definition of the function inputarray that prompts the user to input 20 numbers and stores the numbers into alpha. b. write the definition of the function doublearray that initializes the elements of beta to two times the corresponding elements in alpha. make sure that you prevent the function from modifying the elements of alpha. c. write the definition of the function copyalphabeta that stores alpha into the first five rows of matrix and beta into the last five rows of matrix. make sure that you prevent the function from modifying the elements of alpha and beta. d. write the definition of the function printarray that prints any onedimensional array of type int. print 15 elements per line. e. write a c11 program that tests the function main and the functions discussed in parts a through d. (add additional functions, such as printing a two-dimensional array, as needed.)
Answers: 3
question
Computers and Technology, 23.06.2019 04:31
Jennifer has to set up a network in a factory with an environment that has a lot of electrical interference. which cable would she prefer to use? jennifer would prefer to use because its metal sheath reduces interference.
Answers: 1
question
Computers and Technology, 23.06.2019 06:20
Which text function capitalizes the first letter in a string of text? question 10 options: upper capital first proper
Answers: 1
You know the right answer?
Homework 1 Fundamentals 1. Debugging
Look at the following code – there are 3 errors.
w...
Questions
question
Spanish, 30.11.2020 19:10
question
Mathematics, 30.11.2020 19:10