subject

Write a function stepsizeprint. this function takes three integer parameters: a starting point, an ending point, and a step size. this function should print out all the numbers between the starting point and the ending point with intervals of the step size. your function should be named stepsizeprint your function should take three integers: starting point, ending point, and step size. they must be in this order. your function should not return anything. your function should print/output one number each line as described above. note: you do not need to write the the include, or namespace commands, you only need to write the function definition. when step size is positive, the ending point needs to be larger than the starting point; if the step size is negative, the ending point should be smaller than the starting point. any inputs that do not meet this requirement should print: wrong settings! the step size needs to be non-zero. when step size is zero, print: step size cannot be zero. when printing out the numbers, you should always include the starting point but exclude the ending point. see examples below.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:00
Petrică, tânăr licean în clasa a ix-a, a primit în dar de la părinţii săi un cont bancar pentru micile sale cheltuieli curente. el este pasionat de internet banking şi îşi verifică cu grijă toate tranzacţiile efectuate. pentru creşterea securităţii tranzacţiilor online, banca îi furnizează lui petrică un număr pe care el va trebui să îl modifice, obţinând un număr tan – număr de autentificare a tranzacţiei (transaction authentication number). regula de obţinere a numărului tan este următoarea: se formează cel mai mic număr par din toate cifrele numărului furnizat de bancă. cerinţă cunoscând numărul n furnizat de bancă, să se determine numărul tan obţinut de petrică. date de intrare fişierul tan.in conţine pe prima linie numărul natural n cu semnificaţia din enunţ. date de ieşire fişierul de ieşire tan.out va conţine o singură linie pe care va fi scris numărul tan cerut. restricţii • 0 < n < 18*1018 • n are cel puţin o cifră pară • numărul tan obţinut nu poate conţine zerouri nesemnificative
Answers: 2
question
Computers and Technology, 23.06.2019 17:30
Write pseudocode to represent the logic of a program that allows the user to enter a value. the program multiplies the value by 10 and outputs the result.
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
If you want to delete an entire word at a time, which key should you press along with the backspace or delete key?
Answers: 1
question
Computers and Technology, 25.06.2019 01:30
What was the advantage of using transistors instead of vacuum tubes in the second-generation computers? a. computers were drastically reduced in size. b. computers no longer produced errors. c. computers became affordable. d. computers could run on electricity.
Answers: 1
You know the right answer?
Write a function stepsizeprint. this function takes three integer parameters: a starting point, an...
Questions
question
Mathematics, 03.04.2020 05:28