1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
sammy [17]
4 years ago
12

Write a statement that increments (adds 1 to) one and only one of these five variables : reverseDrivers parkedDrivers slowDriver

s safeDrivers speeders.
The variable speed determines which of the five is incremented as follows:

The statement increments reverseDrivers if speed is less than 0, increments parkedDrivers if speed is less than 1, increments slowDrivers if speed is less than 40, increments safeDrivers if speed is less than or equal to 65, and otherwise increments speeders.
Computers and Technology
1 answer:
tensa zangetsu [6.8K]4 years ago
3 0

Answer:

int reverseDrivers ,parkedDrivers ,slowDrivers, safeDrivers ,speeders;

int speed; // variable declaration

if(speed<0) // checking condition

reverseDrivers++; // increment the value by 1

else if (speed<1) // checking condition

parkedDrivers++;// increment the value by 1

else if (speed<40) // checking condition

slowDrivers++;// increment the value by 1

else if(speed<=65) // checking condition

safeDrivers ++;// increment the value by 1

else

speeders++;// increment the value by 1

Explanation:

Following are the description of statement

  • Declared a variable reverseDrivers ,parkedDrivers, slowDrivers ,safeDrivers speeders and speed of integer types. These variables increments its value by 1 according to the condition of the speed variable.
  • Speed variable check the condition of speed.
  • if(speed<0) it increment the value by 1 in the "reverseDrivers" variable.
  • if (speed<1) it increment the value by 1 in the "parkedDrivers" variable.
  • if (speed<40)  it increment the value by 1 in the "slowDrivers" variable.
  • if(speed<=65)  it increment the value by 1 in the "safeDrivers " variable.
  • if all the if block condition fails then control moves to the else block and increment the value by 1 in the "speeders " variable.

You might be interested in
Rules that govern how to communicate online are known as etiquette. netiquette. Internet laws. computer rights.
azamat

Answer:

Explanation:

i think it might be netiquette

7 0
3 years ago
Read 2 more answers
. List down mental health problems that may arises with excessive use of digital social networking Do we ever need to be concern
Snowcat [4.5K]

Answer:

Excessive utilization of digital instant messaging could perhaps lead to numerous mental health conditions.

Explanation:

  • The massive pressure just to preserve a privileged lifestyle the same as peer group and other such influencers.
  • Cyberbullying would also be a key component of the social mainstream press. This might cause stress.

Yes, researchers undoubtedly need to worry about who becomes familiar with the internet. There's a whole number of news items living with the effects of over-using social networking sites. There seemed to be headlines that a teen must have been strongly affected by someone with a man as well as ransacked with real money by encouraging them to stay married to her.

8 0
3 years ago
You can access your programs, your documents, your printer, even help from
nirvana33 [79]
 I think it's B. The Start menu.                  
3 0
3 years ago
Read 2 more answers
Which system procedure is normally done with both hand valves opened on a gauge manifold connected to a refrigeration system?
mars1129 [50]

Answer:

The answer is "Evacuation".

Explanation:

The evacuation in coolants was its removal from the coolant of heat, air, and non-condensable toxic gases. Its seal HVAC system is drawn to a vacuum and use a pressure washer throughout this process.  

  • It loses the air and water vapor throughout the coolant point is called it.
  • The two primary goals are accomplished by evacuating, that are eliminates content and hydrates.
8 0
3 years ago
Turn-outs are features of roadways that are to be employed by
JulsSmile [24]
<span>They are made for vehicles that are slow moving or should travel at a low speed so as not to endanger the lives of other drivers on the road, they are signs that prevent bottlenecks with slow vehicles, which for one reason or another, they cannot travel at a higher speed than others cars in the road, this mostly is noticed in cargo trucks carrying heavy cargo during a long journey.</span>
3 0
3 years ago
Other questions:
  • Software that interprets commands from the keyboard and mouse is also known as the A.hard drive.B.operating system.C.desktop or
    7·2 answers
  • The source ip address is 164.109.28.3 subnet mask of 255.255.128.0 network address is
    7·1 answer
  • What is grid computing? It is distributed computing where autonomous computers perform independent tasks. It is interconnected c
    12·1 answer
  • What are some objects in your home that demonstrate electrical energy to radiant energy to thermal energy
    10·2 answers
  • Why do we allow electronic instruments to warm-up before use?
    11·1 answer
  • What are factors that limit a technological design
    11·2 answers
  • Hi hehehehehehehehehheeheh<br>​
    10·1 answer
  • What is blogging
    15·2 answers
  • Your company wants to use an IoT device but wants to make sure it does not interfere with other RF devices that use the 2.4 GHz
    12·1 answer
  • Network servers and web servers are examples of what type of server?
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!