subject
Engineering, 07.04.2020 18:40 remomy05

Write a function sumsteps2 that calculates and returns the sum of 1 to n in steps of 2, where n is an argument passed to the function. For example, if 11 is passed, it will return 1 + 3+5+7+9+11. Do this using a for loop. Calling the function will look like this: >> sumsteps2(11) ans 36 For example: Test assert (sumsteps2 (11) = 36) assert (sumsteps2 (23) 144) assert ( sumsteps2(57) = 841) assert(sumsteps2(3)4) assert (sumsteps2(1001) 251001)

ansver
Answers: 3

Another question on Engineering

question
Engineering, 03.07.2019 23:20
Two technicians are discussing the intake air temperature (iat) sensor. technician a says that the computer uses the iat sensor as a backup to the engine coolant temperature (ect) sensor. technician b says that the powertrain control module (pcm) will subtract the calculated amount of fuel if the air measures hot. who is correct
Answers: 3
question
Engineering, 04.07.2019 18:10
Refrigerant 134a enters an insulated compressor operating at steady state as saturated vapor at -26Β°c with a volumetric flow rate of 0.18 m3/s. refrigerant exits at 9 bar, 70Β°c. changes in kinetic and potential energy from inlet to exit can be ignored. determine the volumetric flow rate at the exit, in m3/s, and the compressor power, in kw.
Answers: 1
question
Engineering, 04.07.2019 18:10
A-mn has a cubic structure with a0 0.8931 nm and a density of 7.47 g/cm3. b-mn has a different cubic structure, with a0 0.6326 nm and a density of 7.26 g/cm3. the atomic weight of manganese is 54.938 g/mol and the atomic radius is 0.112 nm. determine the percent volume change that would occur if a-mn transforms to b-mn.
Answers: 2
question
Engineering, 04.07.2019 18:20
How much power could a wind turbine produce if it had the following specifications? cp = 0.45 -d=1.2kg/m3 d=50m v 5m/s
Answers: 2
You know the right answer?
Write a function sumsteps2 that calculates and returns the sum of 1 to n in steps of 2, where n is a...
Questions
question
English, 13.11.2021 06:30
question
Mathematics, 13.11.2021 06:30
question
Mathematics, 13.11.2021 06:40
question
Mathematics, 13.11.2021 06:40
Questions on the website: 13722363