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
shutvik [7]
4 years ago
9

Write an if/else statement that adds 1 to the variable minors if the variable age is less than 18, adds 1 to the variable adults

if age is 18 through 64 and adds 1 to the variable seniors if age is 65 or older.
if (age < 18) Then
minors += 1
ElseIf (age < 65) Then
adults += 1
Else
seniors += 1
End If
Computers and Technology
1 answer:
BARSIC [14]4 years ago
3 0

Answer:

if (age < 18)  // check condition of variable age is less than 18

minors=minors+`1;

else if (age >=18 && age <=64)  //check condition of variable age between 18 to 64

adults=adults+1;

else  // check condition of variable age more than 65

seniors=seniors+1;

Explanation:

Here we checks the condition if the  variable age is less than 18 then it increment the value of variable 'minors' by 1  i.e, minors=minors+`1; .

if variable age is 18 through 64 then it increment the value of variable adults by 1 i.e,'adults'=adults+1;  otherwise increment the value of variable 'seniors ' by 1  i.e seniors=seniors+1;

You might be interested in
Which act passed by the US government in 1998 criminalizes the production and distribution of technology that intends to evade a
ruslelena [56]
The Computer Fraud and Abuse Act I believe. Sorry if I’m wrong and I hope that it helps :)
8 0
3 years ago
Read 2 more answers
Mation about which osi layers of connected cisco devices can be verified with the show cdp neighbors comm
fgiga [73]
The show CDP neighbor command operates at the Data link layer (Layer 2)

Cisco Discovery Protocol (CDP) is a proprietary Data Link Layer protocol developed by Cisco Systems. It is used to share information about other directly connected Cisco equipment, such as the operating system version and IP address.

6 0
3 years ago
Given the declaration
STALIN [3.7K]

Answer:

False

Explanation:

There's only one component of the array list which is list[0] which has value 50

7 0
4 years ago
EASY What does the Backspace key do?
arsen [322]

Answer:

Removes characters behind (or to the left of) the insertion point.

Explanation:

5 0
3 years ago
How might you develop a game where players need strong twitch skills in a way that still makes the game fun for players of all s
eimsori [14]

Answer:

here ya go

Explanation:

I would suggest either having a default difficult being easy, and if people want to be challenged they can increase it, or try to balance how much of the game requires strong twitch skills.

7 0
4 years ago
Other questions:
  • How does a layered pattern make use of abstraction and encapsulation?
    10·1 answer
  • In which of the following situations should you expect to provide your Social Security number?
    13·1 answer
  • Name criteria used when selecting a printer
    10·1 answer
  • True/False
    13·1 answer
  • In a period of steep increases in interest rates, which issuer is most likely to be negatively affected? A Trucking company B Ut
    9·2 answers
  • Suppose you are purchasing something online on the Internet. At the website, you get a 10% discount if you are a member. Additio
    12·1 answer
  • 3. What is the value of a 4-band resistor which has the first band - Green, the
    11·1 answer
  • Help please I would really appreciate <br>​
    5·2 answers
  • Brainly is brainly am I correct ​
    11·2 answers
  • What is an input and output device? Give examples.​
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!