72.7k views
3 votes
Which part of the input-process-output model is line 2 in the program below? strWeight = input("Enter your weight in pounds: ") # Line 1 weight = float(strWeight) # Line 2 print (weight) # Line 3 process output input planning

User Mulhoon
by
6.3k points

1 Answer

2 votes

Answer:

process

Step-by-step explanation:

Given

The program in python

Required

What does line 2 represents

The line 2 of the program is: weight = float(strWeight)

And what it does is that it converts the input weight from string to float after the user supplies value for strWeight

This conversion not input, output, neither is it planning. It is process because according to the program it prepares variable weight to be printed as float on line 3

User Manuel Darveau
by
5.4k points