subject
Engineering, 24.05.2021 07:20 ashhleyjohnson

Write a function "sumsteps2" that calculates and returns the sum of 1 to n in increments of 2, where n is an argument passed to the function. For example, if 11 is passed, it will return the sum of 1 + 3 + 5 + 7 + 9 + 11. Do this using a for loop. Calling the function will look like this: >> sumsteps2(11)ans =36
In python spider pls

ansver
Answers: 3

Another question on Engineering

question
Engineering, 06.07.2019 03:30
Give three differences between corrosion of metals and the corrosion of ceramics? what is static fatigue?
Answers: 1
question
Engineering, 06.07.2019 05:10
An ideal vapour-compression heat pump cycle provides a heating rate of 12btu/s. the working fluid, refrigerant 134a, enters the compressor as a saturated vapor at 40 psi and exits the condenser as a saturated liquid at 160 psi. determine (a) the mass flow rate of the working fluid in lb/min (b) the compressor power in btu/min. (c) the coefficient of performance.
Answers: 2
question
Engineering, 11.07.2019 01:10
One hundred kilojoules of heat are transferred from a heat reservoir at 600 k to the environment at 300 k. a)- find the change in entropy of each reservoir in kjk^-1 b)- is the sum in agreement with the second law? c)- determine the total entropy changes if the environment temperature was only 275 k.
Answers: 3
question
Engineering, 11.07.2019 01:10
The poppet of the pressure relief valve must move 0.2 in from the fully closed position in order to pass the full pump flow at the prv setting (full pump flow pressure). the poppet has a 0.85 in3 area on which system pressure acts. assuming that the relief valve cracking pressure should be 15% higher than the pressure required to overcome the hydraulic cylinder punching operation, find the required a) spring constant of the compression spring in the prv, b) initial compression of the spring from its free-length condition as set by the spring-adjustment mechanism of the prv (poppet held against its seat by spring).
Answers: 3
You know the right answer?
Write a function "sumsteps2" that calculates and returns the sum of 1 to n in increments of 2, where...
Questions
question
Social Studies, 23.11.2021 02:40
question
Mathematics, 23.11.2021 02:40
question
English, 23.11.2021 02:40
question
Mathematics, 23.11.2021 02:40
question
Mathematics, 23.11.2021 02:40
question
Mathematics, 23.11.2021 02:40
Questions on the website: 13722359