subject
Computers and Technology, 24.07.2019 15:10 zoe2252

Compose a c++ function named getspeed that uses a reference parameter variable named speed to accept an integer argument. the function should prompt the user to enter a number in the range of 20 through 70. the value entered by the user should be validated and stored in the parameter variable. set the parameter variable to zero if the user enters a number outside the range of 20 through 70. void getspeed (int & speed) { cout < < “enter a number in the range between 20 and 70” < < endl; cin> > speed; if ( speed < =20 || speed > = 70) speed = 0; }

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
In outlook how can cherie look at the details of an event that appears on the month view of her calendar? check all that apply. by switching to the detail view by switching to the week view by switching to the day view by right-clicking on the event by double-clicking on the event by highlighting the event
Answers: 2
question
Computers and Technology, 22.06.2019 10:20
Print "usernum1 is negative." if usernum1 is less than 0. end with newline. convert usernum2 to 0 if usernum2 is greater than 10. otherwise, print "usernum2 is less than or equal to 10.". end with newline
Answers: 3
question
Computers and Technology, 22.06.2019 22:00
What is the name of the option in most presentation applications with which you can modify slide elements? 1. the option enables you to modify a slide element in most presentation applications.
Answers: 3
question
Computers and Technology, 23.06.2019 23:30
Worth 50 points answer them bc i am not sure if i am wrong
Answers: 1
You know the right answer?
Compose a c++ function named getspeed that uses a reference parameter variable named speed to accept...
Questions
question
Mathematics, 16.12.2020 20:20
question
Biology, 16.12.2020 20:20
question
Mathematics, 16.12.2020 20:20
question
Chemistry, 16.12.2020 20:20
question
Mathematics, 16.12.2020 20:20
question
English, 16.12.2020 20:20
question
Mathematics, 16.12.2020 20:20
Questions on the website: 13722363