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) {

minors = minors + 1;

} else if (age > 17 && age < 65) {

adults = adults + 1;

} else {

seniors = seniors + 1;

}

Answers

Answer 1

Answer:

See Explanation

Explanation:

The answer you attached to the question is correct and it does not need any additional input.

However, I'll explain each line for you

This line checks if age is less than 18

if (age < 18) {  

This line increases minors by 1

minors = minors + 1;

}

This line checks if age is between 18 and 64

else if (age > 17 && age < 65) {  

This line increases adult by 1

adults = adults + 1;

}

This line checks if age is greater than 18

else {

This line increases seniors by 1

seniors = seniors + 1;

}


Related Questions

What are some consequences of posting inappropriate material online? (Choose all that apply)
friends and loved ones might think less of you
you might land in legal trouble
your social media history will be erased from the internet
future employers may not want to hire you.

Answers

Answer:

I think all of them is a consequence of posting inappropriate material online

All except the third one unless it’s something really bad. But otherwise it’s without the third one

To reduce costs and the environmental impact of commuting, your company decides to close a number of offices and to provide support for staff to work from home. However, the senior management who introduce the policy are unaware that software is developed using Scrum. Explain how you could use technology to support Scrum in a distributed environment to make this possible. What problems are you likely to encounter using this approach

Answers

Answer:

The description including its query is provided throughout the section of the elaboration elsewhere here.

Explanation:

Coordination between teams is the main challenge that this new strategy can make. Agile creation is focused on the teamwork of cross-functional teams, where every other mission is identified and distinct teams are formed. All the departments collaborate and afterward work in stages until the completion of this research project.Unless the organization shuts several departments, contact with various teams and peers will be disrupted and contact differences with workers as well as the team would be established. The best approach will be to provide regular communication calls with multiple project managers such that each project stage is synchronized. In turn, this same project coordinator should always have numerous calls with his group members to even get construction progress.

What is the differences between Google Slides and MS Powerpoint?

Answers

[tex]\huge\underline\mathbb\pink{ANSWER↑}\\\\[/tex]

HOPE IT HELPS

PLEASE MARK ME BRAINLIEST ☺️

Which of the following are likely reasons people enjoy watching lifelike stories on the screen? Select all that apply.


People develop a connection that is emotional with the stories and/or characters.

The stories remind them of situations they are familiar with.

The situations they see are not familiar to them.

They are distracted by the video and sound combination.

Answers

Answer:

c

Explanation:

I dont know but omost every time I guess I get it right

Answer:

A: People develop a connection that is emotional with the stories and/or characters.

and

D:The stories remind them of situations they are familiar with.

Explanation:

edg2021

You have a friend that says she is interested in going into web development. She is very knowledgeable in terms of technology and digital media, but she is not sure if she has the personality and character traits that would help her succeed in the job. She knows that you are educated in this area, so she has come to you for help. What questions would you ask her to determine whether or not she has the necessary traits to be a good candidate for a career in web development? Keep in mind at least three important traits that a web developer should have.

Answers

Answer:

She should be aware several social media spectators are going to watch her content. She will get exposed on the Internet.

Explanation:

She should be aware several social media spectators are going to watch her content. She will get exposed on the Internet.

She should think before saying anything as one of his fans may complaint about her content to the police if she makes a joke about shooting up a place.

She has to be careful with his words as this may lead to termination from the job.

Is she a patient person? The customer might nitpick little things and make her change them or make her redo the entire website completely multiple times. If she's not patient it'll be difficult for her to handle customers like that.

Is she really good at listening to others? She'll need to be good at following instructions and listening to what people want to creat what they want easier.

Is she detail oriented? If she is not then it's likely she won't mind if her work is kind of sloppy but the customer is highly likely to complain, resulting in punishment from her employer.

hope this helps!

True or False:
JavaScript was found in 1923

Answers

Answer:

False. It was in 1995

Explanation:

Answer:

False it was created September 1995.

Explanation:

Reflect on the questions below.

1.) Why do some people resist help from others?

2.) Is it useful to work separately at some point in time during pair programming?

3.) How is pair programming beneficial?

4.) In pair programming, how can we better work together?

Answers

Answer:

Why do some people resist help from others? Because they fear that their ideas might be rejected.

Is it useful to work separately at some point in time during pair programming? Yes, it is helpful because one can do coding while the other one is navigating or doing something else, it allows the pair to work faster and more efficient.

How is pair programming beneficial? It is beneficial because you can cover more stuff with the help of other people that what you would cover by yourself.

In pair programming, how can we better work together? By communicating with each other, discovering our strengths and working on our weaknesses. 

Explanation:

describe oxfird cleric​

Answers

Answer:

Explanation:

The Oxford Cleric, or otherwise just known as the Cleric, is from a series of tales called the Canterbury Tales. He had a rather simple life as a cleric and was more commonly seen as a philosopher. The Cleric was just a student who used all of his money on books instead of on clothes and was considered poor.

How do I turn off lanschool student?

Answers

Answer:

First try logging out. If that doesn't work there is a really helpful video on how to uninstall and reinstall with everything still there. Hope this was helpful.

I need to know how to input this into python on zybooks. I've been stuck on this for days and I keep running into "invalid syntax" or "unknown word red" Summary: Given integer values for red, green, and blue, subtract the gray from each value. Computers represent color by combining the sub-colors red, green, and blue (rgb). Each sub-color's value can range from 0 to 255. Thus (255, 0, 0) is bright red, (130, 0, 130) is a medium purple, (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50, 130) is a faded purple, due to the (50, 50, 50) gray part. (In other words, equal amounts of red, green, blue yield gray). Given values for red, green, and blue, remove the gray part. Ex: If the input is 130 50 130, the output is: 80 0 80 Find the smallest value, and then subtract it from all three values, thus removing the gray.

Answers

Answer:

Here is the C++ program:  

#include <iostream>   //to use input output functions  

using namespace std;   //to identify objects cin cout  

int main() {   //start of main method  

int red,green,blue,smallest;   //declare variables to store integer values of red,green, blue and to store the smallest value  

cout<<"Enter value for red: ";  //prompts user to enter value for red  

cin>>red;  //reads value for red from user  

cout<<"Enter value for green: ";  //prompts user to enter value for green  

cin>>green;  //reads value for green from user  

cout<<"Enter value for blue: "; //prompts user to enter value for blue  

cin>>blue;   //reads value for blue from user  

//computes the smallest value

if(red<green && red<blue) //if red value is less than green and blue values  

smallest=red;   //red is the smallest so assign value of red to smallest  

else if(green<blue)   //if green value is less than blue value  

smallest=green;   //green is the smallest so assign value of green to smallest  

else  //this means blue is the smallest  

smallest=blue;  //assign value of blue to smallest  

//removes gray part by subtracting smallest from rgb  

red=red-smallest;  //subtract smallest from red  

green=green-smallest;  //subtract smallest from green  

blue=blue-smallest;  //subtract smallest from blue  

cout<<"red after removing gray part: "<<red<<endl;  //displays amount of red after removing gray  

cout<<"green after removing gray part: "<<green<<endl;  //displays amount of green after removing gray

cout<<"blue after removing gray part: "<<blue<<endl;  } //displays amount of blue after removing gray  

Explanation:

I will explain the program using an example.  

Lets say user enter 130 as value for red, 50 for green and 130 for blue. So

red = 130  

green = 50  

blue = 130  

First if condition if(red<green && red<blue)   checks if value of red is less than green and blue. Since red=130 so this condition evaluate to false and the program moves to the else if part else if(green<blue) which checks if green is less than blue. This condition evaluates to true as green=50 and blue = 130 so green is less than blue. Hence the body of this else if executes which has the statement: smallest=green;  so the smallest it set to green value.  

smallest = 50  

Now the statement: red=red-smallest; becomes:  

red = 130 - 50  

red = 80  

the statement: green=green-smallest;  becomes:  

green = 50 - 50  

green = 0  

the statement: blue=blue-smallest; becomes:  

blue = 130 - 50  

blue = 80  

So the output of the entire program is:  

red after removing gray part: 80                                                                                                 green after removing gray part: 0                                                                                                blue after removing gray part: 80  

The screenshot of the program along with its output is attached.

Compare the different specialties of video game design in which a video game designer can concentrate.

Answers

Answer:

design animators, visual effects, 3d animators

Explanation:

You need both designers and programmers.

Answer:

A game can't be created without both the designer and programmer working closely together from start to finish. Game designers are responsible for the overall creative vision of the game while programmers have the technological know-how to implement the game designers' ideas and bring them to life using computer code.

Explanation:

:)

Translate the following code into hexidecimal and to octadecimal


....
110000100111000011001100111

Answers

Answer:

1

Explanation:

me want brainliest pwease

To simply the task of creating a heading for a science report, a student can create a _____ to run when a specific button is pressed on the quick access toolbar.

i need answer asap
citation

caption

macro

template

Answers

Answer:

macro

Explanation:

The answerrrrr is macro (:

five reasons Why Photographers Aren't Filmmakers

Answers

Answer:

1. They don't like recording things (They'd rather take photos)

2. It doesn't take much time to take a good photo as it is to record a video

3. They'd rather work alone or with others who want pictures taken

Explanation:

These are weird reasons but true..I'm a photographer so these are my reasons. I don't have others tho. Sorry.

In Word you can _____ or merge two different copies of the same document into one document. a. replicate b. duplicate c. copy d. combine

Answers

D) combine
combine and merge are synonyms of each other.
hope this helps x

Which of the following is the primary benefit of becoming a member in the Dramatists Guild of America?


group health insurance

free legal advice

standard salary

networking opportunities

Answers

Answer:

networking opportunities

Explanation:

  The Dramatists Guild of America does offer playwrights legal advice and information on establishing royalties. However, the primary benefit of membership in the DG is networking opportunities. Playwriting is a limited field, and networking opportunities are essential for work.

An instrument used to measure the amount of electrical current intensity in a circuit

Answers

the instrument is an ammeter

Which guidelines should be used to make formatting tasks more efficient?

Use pasted text only; this does not keep the original formatting.
Keep formatting fancy; this makes Word documents look better.
Save styles in the document; this makes working with multiple documents easier.
Avoid pasting text from other documents; this makes formatting easier.

Answers

Answer:

Use pasted text only; this does not keep the original formatting.

Explanation:

bc

Answer:

Use pasted text only; this does not keep the original formatting.

Explanation:

What era did the television occurred in

Answers

Answer:

roughly from the late 1940s through the late 1950s.

Explanation: hope this helps :)

Answer:

The first Golden Age of Television is the era of live television production in the United States, roughly from the late 1940s through the late 1950s.

Explanation:

does anyone or has anyone ever done it?? please help it’s for like skills!

Answers

Answer:

is this mathmatics

Explanation:

D
E
A
C
B
For this lab, you will find the area of an irregularly shaped room with the shape as shown above.
Ask the user to enter the values for sides A, B, C, D, and E and print out the total room area.
Remember the formula for finding the area of a rectangle is length width and the area of a right triangle is 0.5 * the base" heigh
Please note the final area should be in decimal format.
Sample Run
Enter side A: 11
Enter side B: 2
Enter side C: 4
Enter side D: 7
Enter side E: 1
Sample Output
Room Area: 53.5

Answers

In python:

a = float(input("Enter side A: "))

b = float(input("Enter side B: "))

c = float(input("Enter side C: "))

d = float(input("Enter side D: "))

e = float(input("Enter side E: "))

print(f"Room Area: {(a * b) + ((a - c) * (d - (b + e))) + (0.5*(a - c) * e)}")

I hope this helps!

Urgent Please Help ASAP!! 50 Points!! Assignment due in 15 minutes!!

Reflect on the questions below.

1.) Why do some people resist help from others?
2.) Is it useful to work separately at some point in time during pair programming?
3.) How is pair programming beneficial?
4.) In pair programming, how can we better work together?

Answers

Questions:

1.) Why do some people resist help from others?

2.) Is it useful to work separately at some point in time during pair programming?

3.) How is pair programming beneficial

4.) In pair programming, how can we better work together?

Answers:

1.) Some people are prideful in their work, or they're just embarrassed to ask for assistance.

2.) It can be done, but pair programming is further effective with others.

3.) Pair programming is beneficial because you can get the job done faster.

4.) In pair programming, you can better work with your partner by working on different sections, and then checking each other's tail when the job is almost finished.

These answers are a combination of my knowledge and opinion(s). If you need any more help, do not hesitate to let me know. Glad I could help! :)

Which of the following statements is true regarding local area networks? SELECT 3 OPTIONS.
A: traditionally used Ethernet cables to connect devices
B: can include wired and wireless connections
C: often used in homes and small businesses
D: uses satellite technology for connections
E: connects devices in a large geographic area

Answers

Answer:

A, B and C are correct

Explanation:

A : yes, they did use ethernet cables.

B : Lan networks connected via wires are called , "LAN" and LAN networks that connect to devices wirelessly are called, "WLAN" (Wireless Local Area Networks).

C : LAN networks are a type of network that is based in a small geographical area, therefore, it can be used in homes and small businesses.

Statements that can be considered to be true about local area networks in this question are;

A: traditionally used Ethernet cables to connect devices

B: can include wired and wireless connections

C: often used in homes and small businesses

Local area network can be regarded as is group of two or more connected computers which are positioned in  a small geographic area, it could just a small building.

This connection can be a wired connection, it can also be a wireless connection.

Example if this network is Home networks ,another one is small business networks.

Therefore, option A,BC are all correct.

Learn more at:

https://brainly.com/question/22245838?referrer=searchResults

35. John makes $700.00 per week working as a janitor at Passaic High School.
What is his CASH INFLOW per month? (SHOW YOUR WORK)(3 points) *

Answers

Explanation:

a is the answer

In the Page Setup dialog box, the _____ tab gives you options to change the paper size.
a.
Layout
b.
Paper
c.
Sizes
d.
Margins

Answers

Answer:

I think its either layout or sizes

Which term means a session-level protocol that is fast and efficient but has no means for error control or acknowledgment?

QoS

frame

TCP/IP

UDP

Answers

Answer:

UDP

Explanation:

User Datagram Protocol: a session-level protocol that is fast and efficient but has no means for error control or acknowledgment (UDP)

Also just took it on edj.

A session-level protocol that is fast and efficient but has no means for error control or acknowledgment is known as the term UDP.

What is UDP?

UDP is the acronym for User Datagram Protocol. It is defined as the protocol that is used for time sensitive applications but it's non-reliable because delivery of data to the destination cannot be guaranteed in UDP ( that is, has no means for acknowledgment)

Therefore, a session-level protocol that is fast and efficient but has no means for error control or acknowledgment is known as the term UDP.

Learn more about UDP here:

https://brainly.com/question/5660386

#SPJ2

Farm tools/Equipment:
Parts:
Quantity:
Defect type
manufacturing/Design/marketing
Condition​

Answers

Answer:

sorry but I don't understand your question can you elaborate it better

Answer:

Farm/Equipment:

Preparation , Mechanical processing , Heat processing , Preservation , Packaging

Parts:

Tractor, backhoe, baler, plow, harrows, seed drill

Quantity:

Farmers must learn how to manage both soil and water resources in an integrated manner

Defect Type:

Broken bones , Crush injuries , Burns , Electrocution , Spinal cord and, traumatic brain injuries , Amputation injuries

Manufacturing/Design/Marketing :

Internal resource constraints for new product development

Eroding margins due to higher material and assembly costs

Low throughput

Inefficient workflows resulting in higher cost of manufacturing

Rising warranty costs

Condition​: Vibration Analysis/Dynamic Monitoring:

Shock pulse analysis

Fast fourier transforms

Broadband vibration analysis

Ultrasonic analysis

Power spectral density (PSD)

Time waveform analysis

Spectrogram/spectrum analysis

Hope this helps

What is a feature of webmail

Answers

Answer:

Webmail allows the users to access their emails as long as they have access to an Internet connection and a web browser. This also means that the user cannot read an old email or draft a new email offline.

Which below best describes JavaScript? *
a) a common dynamic computer language
b) C++ with a different name
c) The study of coding

Please help me out! 23 extra points!

Answers

Answer:

it is a programing languwage that is useualy used to program visual or text based applications

Explanation:

Answer: A

JavaScript is a common dynamic computer language. It was invented decades ago.

C++ is a different way of coding, it is not the answer. Many different people use C++, because they prefer it is easier than JavaScript.

Hope this helps!

What is a row of data in a database called?
Field
File
Record
Title

Answers

Answer:

record

Explanation:

i took the test and got it right but give brainliest to the person above me

Other Questions
Which list shows all the factors of 72?OA) 1, 2, 3, 4, 6, 8, 9, 12, 18, 24, 36, 72OB) 1, 2, 3, 4, 6, 9, 12, 18, 24, 36, 72OC) 1, 2, 3, 4, 5, 6, 8, 9, 12, 18, 24, 36, 72OD 1, 2, 3, 4, 6, 7, 8, 9, 12, 18, 24, 36, 72 What is the value of (2,820 8) 5? A weight lifter raises a mass of 50kg through a height of 2m. He does this 25 times in one minute. Find hisaverage power. Find the number which when increased by 12 % becomes 168. I NEED HELP ASAPPPPP!!!!!!! In the expression shown, nrepresents a rational number.7nWhat value of n makes theexpression a number less than7?A. 3/2B. 6/6C. 4D. 714 someone help me!!!?? Which number produces a rational number when added to 0.5? A. 1.73205081 B. 1/4 C. 0.54732871 D. 3 what year do you think C19 will end hopefully *PLEASE ANSWER, I NEED HELP*Which of the following graphs shows the solution set to t > 4 or t < -1? In which situation would osmosis most likely occur If three times a number is at least four or more than eight times the number, which of the following is true? A-The number is at least negative four-fifths. B- the number is at most four-fifths. C-The number is at least four-fifths. D-The number is at most negative four-fifths . HELP ASAP!!!One crate can store 12^3 toys. A warehouse receives 12^7 toys. Enter the number of cratesneeded to store all the toys the warehouse received. Someone copied a library video and sold the copies to friends. This is anexample of Who was A. p. j Abdul kalam Jose desea cubrir los gastos del tratamiento del Cov.19 de un familiar,para ello solicita un prstamo de una entidad bancaria un moto que asciende de s/.5000 cantidad a pagar con un inters de 1.5% trimestral,ha previsto pagar con los intereses incluido en un plazo de dos aos Cuanto pagara jose por inters del dinero prestado? Cuando sera el monto total que pagara Jose? BET U CANT ANSWER THIS :))Mrs. Wright created a story that used crazy visualizations and motions to help students remember historical figures they studied this week in class. What memory tool did Mrs. Wright use? acronyms creative sentences narrative chains power pegs What was the name of the soldiers that supported Parliament in their fight against Charles? When would you use database software instead of spreadsheet or word processing software? One atom of carbon _____.has four electron shellsis part of all inorganic compoundsforms a special shape called a tetrahedroncan bond with up to four other atoms