3.7 Code Practice
Instructions
When we read code and predict its output, it is called tracing...
Engineering, 17.11.2020 17:40 klocke2001
3.7 Code Practice
Instructions
When we read code and predict its output, it is called tracing code.
For this lesson, you will come up with your own challenging algorithm for other students to trace. It must contain at least 5 ar statements
and use at least one and or or boolean condition.
Note: Enir or else statements will not count - your statements must be in statements. Each if statement should use a unique variable
name.
For this challenge, try reading 3 or 4 of your classmates' code as well. Trace their code and predict what it will output, then check the code
by running it to see if you got it right, and submit your work for a grade.
Answers: 3
Engineering, 03.07.2019 14:10
Amass of m 1.5 kg of steam is contained in a closed rigid container. initially the pressure and temperature of the steam are: p 1.5 mpa and t 240°c (superheated state), respectively. then the temperature drops to t2= 100°c as the result of heat transfer to the surroundings. determine: a) quality of the steam at the end of the process, b) heat transfer with the surroundings. for: p1.5 mpa and t 240°c: enthalpy of superheated vapour is 2900 kj/kg, specific volume of superheated vapour is 0. 1483 m/kg, while for t 100°c: enthalpy of saturated liquid water is 419kj/kg, specific volume of saturated liquid water is 0.001043m/kg, enthalpy of saturated vapour is 2676 kj/kg, specific volume of saturated vapour is 1.672 m/kg and pressure is 0.1 mpa.
Answers: 3
Engineering, 04.07.2019 03:10
What precautions should you take to prevent injuries when dealing with heavy loads?
Answers: 1
Engineering, 04.07.2019 18:20
Find the kinematic pressure of 160kpa. for air, r-287 j/ kg k. and hair al viscosity of air at a temperature of 50°c and an absolute (10 points) (b) find the dynamic viscosity of air at 110 °c. sutherland constant for air is 111k
Answers: 3
Engineering, 04.07.2019 19:10
The maximum shear stress and maximum flexural stress occur at the same location along a beam subjected to a non-uniform bending load. a)-trune b)- false
Answers: 2
Computers and Technology, 05.05.2020 13:58
Mathematics, 05.05.2020 13:58
Chemistry, 05.05.2020 13:58
Mathematics, 05.05.2020 13:58
Mathematics, 05.05.2020 13:58
Mathematics, 05.05.2020 13:58
Chemistry, 05.05.2020 13:58
Mathematics, 05.05.2020 13:58
Mathematics, 05.05.2020 13:58
Mathematics, 05.05.2020 13:58
Spanish, 05.05.2020 13:58
Physics, 05.05.2020 13:58
Mathematics, 05.05.2020 13:58
Mathematics, 05.05.2020 13:58