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, 23.06.2019 00:30
Write the html code to make a link out of the text “all about puppies”. it should link to a pdf called “puppies.pdf” inside the “documents” folder. the pdf should open in a new window.
Answers: 2
question
Computers and Technology, 23.06.2019 03:30
Hashtags serve to identify the topic of a given tweet true false
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Font size, font style, and are all aspects of character formatting.
Answers: 2
question
Computers and Technology, 23.06.2019 17:00
1. which of the following is not an example of an objective question? a. multiple choice. b. essay. c. true/false. d. matching 2. why is it important to recognize the key word in the essay question? a. it will provide the answer to the essay. b. it will show you a friend's answer. c. it will provide you time to look for the answer. d. it will guide you on which kind of answer is required.
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, 26.09.2019 10:50