Create a method remove Evens that removes all even elements from an ArrayList of
Integers. The method should also print all the remaining items in the ArrayList.
Once the method is created, call it on the existing ArrayList in the main method.

Answers

Answer 1

Answer:

#include <iostream>

# include <conio.h>

using namespace std;

main()

{

int size;

cout<<"enter the size of array";

cin>>size;

int a[size],b[size];

for (int i=0;i<size;i++)

{

cout<<"enter the value in array a"<<i;

cin>>a[i];

}

for (int k=0;k<=size;k++)

{

{

 if (a[k]%2==0)

 {

  for (int l=k; l<=size;l++)

  {

   

  a[l]=a[l+1];

   

   

     }

     size=size-1;

 }

   

}

}

cout<<"\nArray list without even";

for(int j=0;j<size+1;j++)

{

cout<<"\n"<<a[j];

}

getch();

}

Explanation:

There is an array taken of variable size, the program has been written to delete the even elements from the array list. In this program "size " is the integer variable that is taken to mention the total elements of the array. Then enter the values on different index of array.

After that program find the even values and then delete these values. After the operation new array will be displayed on output.


Related Questions

Which area of individual competence best guards against groupthink?

Answers

Answer:

Critical thinking

Explanation:

Critical thinking is the ability of an individual to think clearly, rationally, and logically connecting ideas in order to form a judgment.

Critical thinking is an area of individual competence that best guards against groupthink as the thought process is done independently by an individual.

Select the clothing items that would be appropriate in an office.

A suit jacket and tie.

A t shirt that says, "I heart music."

A knee-length skirt.

A pair of flip flops.

A high heel.

A tank top and short skirt.

A sweatshirt.

A knee-length dress with short sleeves.

Answers

a suit jacket and tie

Answer:

clean, pressed pants or skirts

and

dress shirts and ties

Explanation:


Predict what would happen to the strength of the
electromagnet in each situation.
iron nail Using a battery with a higher voltage:
Wrapping the wire around the nail only three times:
coiled wire
Changing the direction of the current by reversing the
battery connections:
Using a plastic stick in place of the iron nail:
Holding the nail vertically rather than horizontally
Battery
+
battery

Answers

The predictions of the strength of the

electromagnet in the situation above are:

Sing a battery with a higher voltage:  stronger force of attraction.Wrapping the wire around the nail only three times: weaker force of attraction.

What is the influence of number of coil of wire around the nail?

Others are:

Changing the direction of the current by reversing the battery connections:  no change.

Using a plastic stick in place of the iron nail:  weaker force of attraction.

Holding the nail vertically rather than horizontally:  no change.

When there is said to be more loops that  the coil has, there is found to be a stronger magnetic field, as the current is flowing.

Note that the predictions of the strength of the electromagnet in each situation given above are true and correct.

Learn more about battery  from

https://brainly.com/question/14883923

#SPJ2

1. There are two types of addiction, psychological and physical.
A. O True
B. False

Answers

Answer:

True

Explanation:

There are two types of addiction, psychological and physical. Answer. This distinction between psychological and physical can be made. It is, however, somewhat problematic because all types of addictions are physical in the end as they are represented and can be found in bodies or brains rather.

After setting up an Internet connection, you cannot connect to Internet websites, just company intranet sites. What is MOST likely
the problem?

Proxy settings

Invalid certificate

Browser cache

Private browsing

Answers

Answer:Proxy setting

Explanation:

The proxy setting Is where it control the wifi because its connects to the wifi and the router doesn't find the proxy it does not work.

Sam says that when he clicks on his schedule on the Internet, his computer is a receiver, not a sender. Is Sam correct? Why or why not? Correct, because his computer is receiving Sam’s schedule Wrong, because his computer is sending a request for Sam’s schedule Correct, because his computer is mainly receiving, although it does send an initial request so that Sam can get his schedule Wrong, because his computer is sending and receiving requests so that Sam can get his schedule

Answers

Answer:

I think it might be this: Correct, because his computer is mainly receiving, although it does send an initial request so that Sam can get his schedule.

Not 100% sure

Explanation:

Answer:

Wrong, because his computer is sending and receiving requests so that Sam can get his schedule

Explanation:

what is used to create computer programs?

Answers

Answer:

An editor is any program that allows you to write computer code. They range from simple, like a basic text editor, to advanced software, such as Adobe Dreamweaver, Eclipse, JDeveloper, or Microsoft Visual Studio. Fortunately, any program can be written in a text editor, which means you can get started for free

Explanation:

Final answer:

Computer programs are created using programming languages and IDEs, with the code being compiled into machine code. Programmers combine creativity with technical skills to write instructions for the CPU to execute.

Explanation:

To create computer programs, developers use programming languages like C++, Python, or Java. An integrated development environment (IDE) is often used to streamline the development process, providing tools such as text editing, debugging, and compiling within one application. The code written in a high-level language is converted into binary machine code by a compiler. This machine code is then stored in the computer's memory as a series of voltages.

When executed, these instructions interact with the computer's Central Processing Unit (CPU) to perform tasks. This process of writing instructions and executing them to perform a desired task is known as programming. The CPU and main memory work together to process the instructions and manage data. Creative and technical skills come together in programming to solve problems and build applications that can perform a wide array of functions.

What is not a type of text format that will automatically be converted by Outlook into a hyperlink?
-email address
-web address
-UNC path
-All will be automatically converted,

Answers

Answer:

unc path

Explanation:

What kinds of variables are accessible from outside of the class?

general

specific

public

private
2. What system of victory relies on big victories which can only be achieved when a number of other, smaller victories have been achieved first?
nested
tiered
hierarchical
pyramidal
3.What is a law in the game code which prevents a certain action or dictates a consequence or result of an event?
mechanic
contract
rule
game state
4.What is odd about the following lines of code?



if (collision.collider.gameObject.tag == "EnemyHead")

{

if (transform.position.y >= collision.collider.transform.position.y + 0.9f)

{

Destroy(collision.collider.transform.parent.gameObject);

Destroy(collision.collider.gameObject);

GameManager.score += 100;

}



else if (collision.collider.gameObject.tag == "EnemyBody")

{

GameManager.lives += 1;}

jumping on an enemy’s head doesn’t do anything
the player is penalized for jumping on an enemy’s head
simply walking into an enemy will destroy the enemy
walking into an enemy will reward the player
5.Before using a variable for something, you need to declare and initialize the variable by including lines of code in a set of curly brackets {}.
True
False
6.What is the best description of a system where enemies become alert and then pursue and attack the player when a player avatar approaches them?
It’s a game mechanic.
It’s a game rule.
It’s neither a mechanic nor a rule.
It’s both a mechanic and a rule.
7.What kind of class would make the most sense to use for tracking a player’s points or score in a game?
dynamic
static
emergent
immersive
8.In a game with no lives, the following code would reward a player for avoiding enemies completely instead of destroying them.

if (collision.collider.gameObject.tag == "EnemyHead")

{

if (transform.position.y >= collision.collider.transform.position.y + 0.9f)

{

Destroy(collision.collider.transform.parent.gameObject);

Destroy(collision.collider.gameObject);

GameManager.score -= 100;

}

True
False
9.By default, what scenarios does the OnCollisionEnter method cover?
collisions with enemies
collision with the environment
collisions with specified “collide” classes
any collision the player avatar enters into
10.What is a common reward to encourage players when they make a “correct” action in a game?
adding points to a score
losing a life
restarting a level
adding more enemies

Answers

Variables accessibility (public, protected, private), victory system, and game development rules explained.

Public, protected, and private are the types of variables that control their accessibility. Public variables can be accessed by anyone, protected by other methods in the class or its parent/child classes, and private only within the class itself.

A system of victory that relies on big victories achievable after smaller victories is a tiered system. The player needs to achieve smaller victories first to reach the big victory.

In game development, a rule is a law in the game code that dictates the consequences or outcomes of events. It controls actions or results based on specific conditions.

True or False

Rootkits are only made by black-hat hackers.

Answers

True rookies are only made by black hat hackers I am not sure I hope this will help

If brake fluid boils:

A)
Braking power increases

B)
It changes to a bright yellow color

C)
Your vehicle could catch on fire

D)
You may be unable to apply your brakes

Answers

Answer:B

rapidly pump the break pedal up and down to build up brake fluid pressure while also shifting to a lower gear to allow engine braking to begin

Explanation:

I think the best answer would be B

What is it called when you make a reference in the text of a document alerting the reader that you are using information from another source?

Answers

Answer:

Siting text evidence

Explanation:

Which of the following statements is FALSE?

Actions and Hyperlinks can be triggered by mouse clicks.
Actions and Hyperlinks can play sound and run programs.
Actions can be triggered by mouse-overs.
Actions and Hyperlinks can link to similar types of locations.

Answers

Answer:

Actions and Hyperlinks can be triggered by mouse clicks.

Explanation:

1. What is the purpose of authorization in regards to computers and computer networks?
2. What the first step in controlling access to a computer or network?
3. What does 'accountability mean in regards to accessing a computer or computer network?
4. Tell me two ways that you can implement accountability
5. What is a preventive control? What's it's purpose?
6. Give me two examples of preventive control.
7. What are deterrent controls? What are their purpose?

Answers

Answer:

1.     What is the purpose of authorization in regards to computers and computer networks?

There are two things, authentication, and authorization. Authentication finds out who the user is. And Authorization defines what privileges the user has. Hence, the purpose of authorization in regards to the computers and computer networks is to find out the privileges being provided to the user. Like a user with the Admin, the role has more privileges than a simple user.

2. What the first step in controlling access to a computer or network?

The first step for controlling access to a computer or a network is authentication.

3. What does 'accountability mean in regards to accessing a computer or computer network?

Accountability means it must be ensured that only the right person gets access to the computer or computer network.

4. Tell me two ways that you can implement accountability

Accountability can be implemented through authentication and authorization. The first can be for it a login method. The second method is the Captcha check after the login method. KYC can also be done. There are many methods to ensure authentication and authorization.

5. What is preventive control? What's its purpose?

The preventive control means the measure taken to prevent the loss or error from occurring. Its purpose is to ensure safety and prevent losses and errors.

6. Give me two examples of preventive control.

Hazard based and Risk-based preventive control

7. What are deterrent controls? What is its purpose?

The deterrent controls mean the process of sending the warning signal to a would-be attacker so that he does not attack. And hence a possible attack is prevented. Its purpose is to ensure security.

Explanation:

Please check the answer section.

If banks take your money while keeping it safe then why do we need banks?

Answers

Answer:

We need them to keep structural operation and can give you intrest which gives you money over time as well

Explanation:

Answer:

To keep our money safe in the first place.

Explanation:

Which of the following is an example of holding others accountable for mistakes?
1) Tell them the way to fix their mistakes.
2) Ask your manager to talk to them.
3) Accept responsibility to avoid conflict.
4) Give them honest feedback.

Answers

The answer to your question is 2)
2. ask your manager to talk to them

Which tools did early communities first use to help them grow enough food to feed their residents and have a surplus at times?

A)tractors, combines, and GPS locators
B)polished stone tools, pottery, and canoes
C)wooden plows, pesticides, and flails
D)sickles, moldboard plows, and threshers

Answers

Answer:

C) I think i am not sure

Explanation:

Answer: B) polished stone tools, pottery, and canoes

Explanation: Got the answer right

Which elements are visible when a user opens a new PowerPoint presentation?

Answers

Answer:

The only element visible is the presentation itself.

Explanation:

All of the other options, such as presenter's assistance, is hidden away from the projector, presentation device, etc. You are the only one that can see the window that shows what slide is next, presenter's notes, etc. In other words, whatever you want the audience to see, that is only what they will see and nothing else.

Answer:

you can see a blank slide that says click to add title and click to add subtitle

Explanation:

Which of the following is a valid formula?
(C2-D16)
O A2/F2
O=B5/10
O =E10

Answers

Answer:

=B5/10

=E10

Explanation:

The above two formulas are the correct options. Remember for a valid formula in Excel, we must have the = sign first, and this should be followed by a valid formula. Saying that C5 should be E10 by writing =E10 at C5 is a formula certainly. And storing B5/10 at C5, through =B5/10 is also a valid formula. Hence, two formula out of four, and as mentioned above are the correct ones.

Final answer:

The correct answer to the given question is 'O = E10' as it is the option that best resembles a valid chemical formula or assignment of a value to a variable within the context of the information provided.

Explanation:

The question posed requires identifying a valid chemical formula from a list. To determine which options represent valid formulas, we refer to common rules and conventions used in Chemistry. The correct answer is the formula O = E10.

This is because in the chemical context, the formula expresses a variable 'O' being defined as a value 'E10'. The context of this question seems to be tied to assigning values or relationships rather than writing chemical compounds. As for the options like '(C2-D16)' or 'A2/F2', these are not conventional ways to represent chemical formulas. They seem more like arithmetic expressions or cell references from a spreadsheet software like Excel.

The option 'B5/10' suggests division of a value in cell B5 by 10 in a program like Excel, which is not related to any known chemical formula. Without further context, it can be assumed that 'E10' is representing some variable or constant in the respective field of chemistry or it could be interpreted as an Excel cell reference.

How do most database users perform data searches?
by using forms
by generating reports
by viewing tables
by performing calculations

Answers

Answer:

by using forms

Explanation:

Most of the database users perform the data searches by using the forms. A form can be used to enter, edit and display the data from the data source. Its a user interface in fact that fetches the data from the database. Reports have used the display the data for a certain type of user, and the viewing table does not look feasible to search from a very large database, and the databases are usually large. No calculation is required for searching the data, and we only need to write queries in the right syntax. Hence, here the correct option is by using forms.

Computers are used to store, retrieve, and _____ data. manipulate mechanize memorize operate

Answers

Answer:

Computers are used to store, retrieve, and manipulate data.

What are the individual presentation objects that are found in the PowerPoint program and used to display content to an audience?
O files
O slides
O cells
O charts

Answers

The individual presentation objects that are found in the PowerPoint program and used to display content to an audience are slides.

Explanation:

The Presentation software such as PowerPoint builds a series of slides to provide it to a human presenter or it can also be used as a recorded version as a stand-alone presentation. a slide in PowerPoint most commonly refers to a single page which is developed using a presentation program just like The Microsoft PowerPointA slide is identified as a single page of a presentation which is created using a software such as PowerPoint or the OpenOffice Impress.there are different types of slides in power point which are as follows,text slides. Conceptual slides. Quantitative charts.The main purpose of MS PowerPoint is to enable the user to create multiple informative slides through the use of text, graphics, and animation.In power point, you will acquire 10 slides for a 20-minute presentation. A slide consists of two minutes limit for a presentation.

Answer:

the answer is b: slide

Explanation:

what matches the domain name with the correct up address

Answers

Answer:

DNS Protocol

Explanation:

It is the DNS protocol. The DNS or the domain network system protocol assist the internet users as well as the devices on the network to discover the websites with the hostnames that are human-readable, rather than the IP address. We can use the NSLOOKUP command at the command prompt to find the IP address from the domain name. However. this match between the domain name and the IP address is being performed by the DNS protocol.

Which character must decide whether to support the assassins or avenge his friend's death?
O Caesar
O Antony
O Cassius
Brutus​

Answers

Answer: Anthony

Explanation:

Brutus is the character in Shakespeare's Julius Caesar who must decide whether or not to join the conspiracy to assassinate his friend Caesar. The correct option is D.

Who was Brutus?

Marcus Junius Brutus was a Roman politician, orator, and the most famous of Julius Caesar's assassins. He was adopted by a relative and took the name Quintus Servilius Caepio Brutus, which became his legal name. He is frequently referred to as Brutus.

Brutus was introduced in "Julius Caesar" as a general and Caesar's friend. Cassius, the instigator of the conspiracy to assassinate Caesar, persuaded him. Brutus was led to believe that Caesar's death would benefit the Romans.

Learn more about Brutus here:

brainly.com/question/3218273

#SPJ6

(will give brainleist) Which image type changes the total number of pixels in an image?

Group of answer choices

Bitmap

Vector

Resample

Rasterize

Answers

Answer:

vector

Explanation:

What is the post condition of an expression or variable

Answers

Answer:

The post condition is simply a statement expressing what work has been accomplished by the function. This work might involve reading or writing data, changing the values of variable parameters, or other actions.

A post-condition of an expression or variable is the state it is expected to be in after a certain piece of code has executed. Understanding post-conditions is crucial for programming and debugging to ensure code correctness.

The post-condition of an expression or variable refers to the expected condition or state of the expression or variable after a certain section of code has executed. For instance, after the execution of a conditional statement, the post-condition would be the state that reflects whether the condition has been met or not. This concept is crucial in understanding how values of expressions and variables change over the course of a program's execution. When we discuss updating variables, it usually involves an assignment statement that modifies the variable's value based on its prior state, reflecting the importance of clearly understanding the post-condition after each update.

In programming, ensuring that the intended post-condition is achieved often involves using proper syntax, such as parentheses in expressions to clarify the order of operations, and evaluating all expressions before assignments are made in a multiple assignment construct. It is important for programmers to understand post-conditions to ensure their code functions correctly and to facilitate debugging.

What is the relationship between IaaS and TCP/IP and network services?


A.They are similar

B.They are counterintuitive

C.They are dissimilar

D.One cannot function without the other

Answers

Answer:

A.They are similar

Explanation:

The relationship between IaaS and TCP/IP and network services is that they are similar.

IaaS is an acronym for Infrastructure as a service (IaaS) and it provides virtualized computing resources over the internet.

IaaS is similar to the TCP/IP because they both use resources in stack hosted on the network layer.

Answer:

a

Explanation:

In which category would Jamal most likely find an
appropriate template for his report?
Jamal's goal for his presentation is to explain how
engineers create items that mimic the characteristics of
living things. They do this to create materials or
products that are beneficial to society, such as
prosthetics that can move like human limbs. To find just
the right template, Jamal types the word "Reports" in
the search theme window.
Designs
Diagrams
Education
Personal

Answers

Answer C.Education

Explanation:

Answer:

c

Explanation:

education is the answer

Enter just the letter of the correct answer

You need Internet access for just one device. Comcast sends you to Best Buy to purchase a _____ from aisle 9 ¾.

A) modem

B) router

C) hub

D) gateway

Answers

purchase a router from the aisle

In the future, mobile technologies are expected to be used more than desktop computers today. What
other improvements are helping support mobile computing? (select all that apply)
people driving cars
increased data storage online
more applications for mobile phones
heavier machines
DONE

Answers

Answer:

The ones that should be selected are : Increased Data Storage Online and More Applications For Mobile Phones

Explanation:

Increased Data Storage helps you store more information on your phone, making it more useful.

More Applications enable you to achieve more tasks that were before not possible as there is now software to run the task

Answer:

B) increased data storage online .

C)more applications for mobile phones.

Explanation:

Other Questions
Nearest dollar to $624.52 ? An antenna emits an electromagnetic wave. the electric field lines at a certain instant in time are shown.at point a, what is the direction of the magnetic field? Pepsi and Mountain Dew products sponsored a contest giving away a Lamborghini sports car worth $215,000. The probability of winning from a single bottle purchase was 0.0000084. What is the expected payoff value given that the payoff is $0 from a loss 0.032 56 3 s.f. please help How does Siroya use mobile data to create a financial identity?What were Jeniphers options for getting a loan?What is one data point that shows a good propensity to pay a loan back?How has Jeniphers life improved as a result of the loan using Siroyas technology? Can someone answer this question please answer it correctly if its corect I will mark you brainliest An Erlenmeyer flask containing 20.0 mL of sulfuric acid of an unknown concentration was titrated with exactly 15.0 mL of 0.25 M NaOH solution to the second equivalence point. What was the concentration of sulfuric acid in the flask? H2SO4 (aq) + 2 NaOH (aq) 2 H2O (l) + Na2SO4 (aq) At sea level, liquid water changes into water vapor ata temperature of 100C. However, at high altitudes, it changes at atemperature of 95C. This shows that phase changes of matter are affected not only by temperature but also by...Precipitation Coastal windsRocky terrain Pressure After setting up an Internet connection, you cannot connect to Internet websites, just company intranet sites. What is MOST likelythe problem?Proxy settingsInvalid certificateBrowser cachePrivate browsing A cylindrical drinking glass can hold 56.52 cubic inches ofwater. The diameter of the glass is 3 in. How tall is the glass?Use 3.14 for T.A. 4 inchesB. 6 inchesCC. 7 inchesD. 8 inches Can you use the Insurance tab to change the address for patient billing statements? Kathleen says that quadrilaterals have right angles Gray says that quadrilaterals do not have to have right angles explain who is correct Considering the content of the high-interest article, why would the author begin with a quotation by William Wilberforce? Compute the triple integral of f(x, y, z) = z over the region F below the sphere x2 + y2 + z2 = 8 and above the triangular region in the xy-plane bounded by x = 0, y = 2, and y = x. What conversion factor is used to convert between grams and moles? There are to photocopy machines in office. The first machine produces five copies in eight seconds. The second machine produces 16 copies and 24 minutes. Are the two machines making copies at the same rate? You perform an experiment with a long column of air and a tuning fork. The column of air is defined by a very long vertical plastic tube with a circular cross section; the upper end of the tube is open to the outside air and the lower end of the tube is filled with water. The column of air extends from the top of the water to the open end of the tube; the length of the column can be varied by changing the water level in the lower end of the tube. (The columns of air in this problem are longer than those you will have used in lab; this allows us to imagine the use of lower frequency tuning forks than those you will have used in lab.)ou are using a tuning fork of frequency 256 Hz. For one particular water level, you hear a loud sound when the fork is struck and positioned just above the open end of the tube. When the water level is lowered by 676 mm, you again hear a loud sound. (a) What is the wavelength of the 256 Hz sound waves in the column of air? Give your answer in meters, not mm. m (b) What is the speed of sound in the column of air? m/s 100 POINTSPLEASE EXPLAIN AND ADD STEPS. THANK YOU IN ADVANCE Which statements about square roots are true? Check all that apply.The square root of a positive number cannot be negative.All positive numbers have two square roots.18 = 9 because 9(2) = 18.149 = 7 because 7(7) = 49.25 = 5 because 52= 25. An equation with a degree greater than 1. The graph of the equation will not produce a line.