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 21:50
Answer the following questions regarding your system by using the commands listed in this chapter. for each question, write the command you used to obtain the answer. a. what are the total number of inodes in the root filesystem? how many are currently utilized? how many are available for use? b. what filesystems are currently mounted on your system? c. what filesystems are available to be mounted on your system? d. what filesystems will be automatically mounted at boot time?
Answers: 1
question
Computers and Technology, 22.06.2019 22:40
In this lab, you complete a python program that calculates an employee's annual bonus. input is an employee's first name, last name, salary, and numeric performance rating. if the rating is 1, 2, or 3, the bonus rate used is .25, .15, or .1 respectively. if the rating is 4 or higher, the rate is 0. the employee bonus is calculated by multiplying the bonus rate by the annual salary.
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
Answers: 1
question
Computers and Technology, 23.06.2019 22:20
Read “suburban homes construction project” at the end of chapters 8 and 9 (in the textbook) and then develop a wbs (work breakdown structure) in microsoft excel or in microsoft word (using tables)
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, 15.01.2021 17:30
question
Mathematics, 15.01.2021 17:30
question
English, 15.01.2021 17:30
question
Mathematics, 15.01.2021 17:30
question
Biology, 15.01.2021 17:30
Questions on the website: 13722363