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 18:00
Freya realizes she does not have enough in her bank account to use the debit card. she decides to use a credit card instead. which questions should freya answer before using a credit card? check all that apply. can i pay at least the minimum payment each month? can i make payments on time and avoid late fees? will i have to take out a loan? how much in finance charges can i afford to pay? should i talk to a consumer credit counseling service?
Answers: 1
question
Computers and Technology, 24.06.2019 00:20
The guy wire bd exerts on the telephone pole ac a force p directed along bd. knowing the p must have a 720-n component perpendicular to the pole ac, determine the magnitude of force p and its component along line ac.
Answers: 2
question
Computers and Technology, 24.06.2019 08:00
Java the manager of a football stadium wants you to write a program that calculates the total ticket sales after each game
Answers: 1
question
Computers and Technology, 24.06.2019 12:10
What is it called during the editing process when the processor ensures that a character holding a coffee mug from one angle is holding the same mug in the same way when the shot switches to another camera at another angle? cinematography continuity technology prop use
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, 01.06.2021 20:10
question
Mathematics, 01.06.2021 20:10
question
Mathematics, 01.06.2021 20:10
question
Biology, 01.06.2021 20:10
question
Mathematics, 01.06.2021 20:10
question
Mathematics, 01.06.2021 20:10
Questions on the website: 13722361