subject
Engineering, 26.02.2020 23:47 LukeneedhelpInMath

Ira, Jayla, and Kendra are all saying it would be better to move lines 22 and 24 to a single line executing print ('Code complete.') just before line 21. These three students have different reasons for their opinions. Their reasons are below. Do you think each of them is right, wrong, or somewhere in between? Explain your answer for each student. Ira: "It would be better to have a single print statement because that code is going to happen no matter what. The program will run slower by having it there twice." Jayla: "It would be better to have a single print statement because that code is going to happen no matter what. Later, if you want to change your program, you’re going to have to remember to change it in two places the way the code is now." Kendra: "It would be better to have a single print statement because it is going to happen no matter what. That program would take up less memory if you just wrote it once."

ansver
Answers: 3

Another question on Engineering

question
Engineering, 03.07.2019 14:10
Amass of 1.5 kg of air at 120 kpa and 24°c is contained in a gas-tight, frictionless piston-cylinder device. the air is now compressed to a final pressure of 720 kpa. during the process, heat is transferred from the air such that the temperature inside the cylinder remains constant. calculate the boundary work input during this process.
Answers: 2
question
Engineering, 04.07.2019 18:10
Asingle-geared blanking press has a stroke of 200 mm and a rated capacity of 320 kn. a cam driven ram is assumed to be capable of delivering the full press load at constant force during the last 15 percent of a constant-velocity stroke. the camshaft has an average speed of 90 rev/min and is geared to the flywheel shaft at a 6: 1 ratio. the total work done is to include an allowance of 16 percent for friction a) estimate the maximum energy fluctuation b) find the rim weight for an effective diameter of 1.2 m and a coefficient of speed fluctuation of 0.10
Answers: 1
question
Engineering, 06.07.2019 02:30
Precipitation hardening can be achieved in many light alloys by a three-step heat treatment. what is carried out and what is the purpose at each step? why is such a treatment necessary based on the nucleation and growth theory of phase transformation. compare this treatment with tempering martensite for carbon steels (similarities and differences).
Answers: 1
question
Engineering, 06.07.2019 04:20
Amachine of mass 140 kg is mounted on springs of stiffness 1.4x10° n/m and in parallel witha viscous damper of unknown damping coefficient. the machine is subject to a harmonic excitation of 200sin150t n. the phase angle is measured as 2.58 rad. what is the damping coefficient of the viscous damper?
Answers: 2
You know the right answer?
Ira, Jayla, and Kendra are all saying it would be better to move lines 22 and 24 to a single line ex...
Questions
question
Mathematics, 27.10.2020 03:10
question
Mathematics, 27.10.2020 03:10
question
English, 27.10.2020 03:10
question
History, 27.10.2020 03:10