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
lianna [129]
3 years ago
14

Write an if/else statement that compares the variable age with 65, adds 1 to the variable seniorCitizens if age is greater than

or equal to 65, and adds 1 to the variable nonSeniors otherwise show the age of seniorCitizens.
Computers and Technology
1 answer:
Ber [7]3 years ago
8 0

Answer:

Hi!

Explanation in Javascript:

int age;

int seniorCitizens = 0;

int nonSeniors = 0;

while(true) { //infinite loop, always true.

age = getAge(); // gets the age.

if (age >= 65) { // if age is greater or equal to 65 adds 1 to seniorCitizens and show the age.

o

seniorCitizens = seniorCitizens + 1;

print (age);

}

else { // otherwise adds 1 to nonSeniors.

nonSeniors = nonSeniors + 1; //

}

You might be interested in
The sum of the elements of an integer-valued array recursively calculated as follows: The sum of an array of size 0 is 0; Otherw
Ugo [173]
In what language? Most languages have iterator functions like map in JavaScript that will loop through the elements, making this almost a one liner

sum = 0
arr.map( elem => sum += elem )
8 0
3 years ago
36
Nostrana [21]

The way that the understanding branding help explain why those who go viral for public behavior get fired is option  C. Their behavior shapes consumer understanding of the employer’s brand.

<h3>How would you define branding?</h3>

A brand is a good, service, or idea that is publicly set apart from similar ones. This makes it simple to convey and generally promote. The process of developing and promoting a brand's name, attributes, and personality is known as branding.

Note that Branding is defined as the marketing strategy of developing a name, symbol, or design to identify and set apart a product from competing goods. You get a significant competitive advantage in marketplaces that are getting more and more cutthroat.  So, it goes a long way to tell what a company stand for.

Learn more about branding  from

brainly.com/question/24456504
#SPJ1

4 0
1 year ago
List three ways you can help someone who is being bullied in of just being a bystander​
nignag [31]

Answer:

1.) Let a teacher, administrator or other safe adult know about what's going on.

2.) If someone is being physically harmed, you can call the police or 911.

3.) If the bullying is mild, (Name calling, insults, etc.) you can attempt to step in.

Explanation:

N/A

8 0
3 years ago
Two or more computers connected together is referred to as a(n)
oksian1 [2.3K]
That would be a network my friend. When two or more computers are connected to one another, you have a network.
8 0
3 years ago
You are running Windows 8 on your laptop. You install a 64-bit application on it. Where will this application reside on your com
melamori03 [73]
In the Program Files folder.
6 0
3 years ago
Read 2 more answers
Other questions:
  • A common type of non-volatile memory is _____.
    12·1 answer
  • An employee’s total weekly pay equals the hourly wage multiplied by the total number of regular hours plus any overtime pay. Ove
    13·1 answer
  • Which type of device often controls IoT tasks?<br> Desktop<br> Laptop<br> Smartphone<br> Switch
    8·1 answer
  • Name three output devices
    6·1 answer
  • You are the network adminstrator for your company your network consists of two active directory domains research.westsim.local a
    12·1 answer
  • What does "scanf(\"%d\" mean?
    13·2 answers
  • In a multiple-column record of a data file, ______ represent different variables and _______ represent different cases
    15·1 answer
  • To print photographs in color.​
    7·1 answer
  • A type of user interface that features on- screen objects, such a menus and icons, manipulated by a mouse.
    7·1 answer
  • Q 1: How computer produces result?<br> Q 2: Write function of power supply in system unit?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!