Please help w/ Java, ASAP!!!!

Please Help W/ Java, ASAP!!!!
Please Help W/ Java, ASAP!!!!

Answers

Answer 1

Answer:

B

Explanation:

When you have a method that is copying values from one array into another, you first have to initialize a new array which you can copy the values into. This is done by using the provided value "count".

   int [ ] nums = new int [count];

Second, you have a "for each" loop that iterates over each index in the first array, and assigns the value at that index to the same index location in the copy array. In a "for each" loop, the variable "val" represents the content of an index, not an iterated value itself. This is why we can just do this inside the loop:

  nums[ j ] = val;

That said, you still need "j" to be there and increment because we still need a tracking value for the current index in the copy array.

   int j = 0;

   for (int val: array)

   {

     copyArray[j] = val;

    j++;

   }

Third, you return the copy version of the array.

return nums;

Source:

I am currently a second year Java student.


Related Questions

Which word best describes the feeling you have when you are in the learning zone?

A. Comfortable
B. Accomplished
C. Unsure
D. Agitated

Answers

Explanation:

This is probably something like a feedback form

but I feel unsure/comfortable

Answer: Accomplished

Explanation:

Use the drop-down menus to complete the steps to open the Lookup Wizard.

1. Open the table in ___
view.

2. Click in the ___
column of the desired field.

3. Click the ___
, and then click Lookup Wizard.

Answers

Answer: 1. design view 2. data type 3. arrow

Explanation:

I just did it :)

Complete the following sentence by choosing
the best answer from the list below.
enables information to be viewed in
an easily understandable format.
O An output device
O An input device
O A hard disk
O A raw data device

Answers

Answer:

The correct answer is Option 1: an output device.

Explanation:

A computer is an electronic machine that works according to data and instructions given to it.

The data is the input and information is the output.

Input devices are used to take input and output devices are used to display the results of processing as output.

From the given options, An output device is the one which enables the information to be viewed in easily understandable format.

Hence,

The correct answer is Option 1: an output device.

Answer:

Output device

Explanation:

HELP ASAP!!! What portfolio document is most likely to speak of your soft skills?
cover letter
transcript
recommendations
resume

Answers

Answer: resume

Explanation:

Answer:

recommendations was the right answer

Explanation:

A flashing symbol that allows you to input text.

A. Cursor

B. Mouse

C. Search Engine

D. Text Box

Answers

The correct answer is A. Cursor

Answer:

A. Cursor.

Explanation:

If you read the answer choices carefully, none of them fit in with the "flashing symbol" category, even though some of them might allow you to input text. However, you have used a computer before to type out text, just like how you typed this question to Brainly. Therefore, you should also know how a cursor acts. It flashes and allows you to input text as well.

Therefore, A is the correct answer to this question.

Hope this helped!

~Jinachi~

edhesive 6.8 lesson practice answers please ​

Answers

Answer: any more info yo can give me. i want to help i dont undestand

Explanation:

Answer:

import simplegui

import random

# global constants

WIDTH = 600

HEIGHT = 400

PARTICLE_RADIUS = 5

COLOR_LIST = ["Red", "Green", "Blue", "White"]

DIRECTION_LIST = [[1,0], [0, 1], [-1, 0], [0, -1]]

# definition of Particle class

class Particle:

  # initializer for particles

  def __init__(self, position, color):

      self.position = position

      self.color = color

  # method that updates position of a particle    

  def move(self, offset):

      self.position[0] += offset[0]

      self.position[1] += offset[1]

  # draw method for particles

  def draw(self, canvas):

      canvas.draw_circle(self.position, PARTICLE_RADIUS, 1, self.color, self.color)

  # string method for particles

  def __str__(self):

      return "Particle with position = " + str(self.position) + " and color = " + self.color

# draw handler

def draw(canvas):

  for p in particle_list:

      p.move(random.choice(DIRECTION_LIST))

  for p in particle_list:

      p.draw(canvas)

# create frame and register draw handler

frame = simplegui.create_frame("Particle simulator", WIDTH, HEIGHT)

frame.set_draw_handler(draw)

# create a list of particles

particle_list = []

for i in range(100):

  p = Particle([WIDTH / 2, HEIGHT / 2], random.choice(COLOR_LIST))

  particle_list.append(p)

# start frame

frame.start()

Explanation:

What kind of loop should be used in a game where the user is guessing a secret code and the message"guess again" appears until the user guesses correctly?

Answers

Answer:

While loop

Explanation:

It should be noted that the number of times which the computer will ask the user to take a guess is not known.

When we have a condition like this, the while loop (or in some programs; the do-while loop) is to be used.

To further back my point, see the following program in python.

secret_code = 1234

user_guess = int(input("Take a guess: "))

while user_guess != secret_code:

    user_guess = int(input("guess again: "))

print("You guessed right")

The above program will keep asking the user to take a guess until the user enters 1234.

This may or may not be possible with a for loop.

Megan wants to post a picture of her and her friend Jennifer on her social media page. What should Megan do before she posts the picture?

A. Add a caption.
B. Ask her friend for permission.
C. Make sure she looks good.
D. Edit the picture using Photoshop.

Answers

Answer:

B. Ask her friend for permission.

Explanation:

Answer: B ask her friend for permission

hope you do good on the test or quiz.. it would mean alot to be brainlEst

So my teacher asked us to predict who would win in a death match, and we could choose the two characters, so Alastor from Hazbin Hotel vs Blackhat from villinous, who would win?

Answers

Answer:

I think alastor from Hazbin Hotel.

Answer:

alastor

Explanation:

i mean alastor is a demon and blackhat we dont know if he is a demon or not but i mean alastor would win he took down a flying ship that was trying to kill them

which devices is not found in the CPU​

Answers

Plz answer my question

The devices that is not found in the CPU​ is printer. The correct option is D.

What is CPU?

A central processing unit, sometimes known as a CPU, is a piece of electronic equipment that executes commands from software, enabling a computer or other device to carry out its functions.

The part of a computer that obtains and executes instructions is called the central processing unit (CPU).

A CAD system's CPU can be thought of as its brain. It is made up of a control unit, a number of registers, and an arithmetic and logic unit (ALU). The term "processor" is frequently used to refer to the CPU.

The size, speed, sophistication, and price of a printer varies. It is a device that receives text and graphic output from a computer and transmits the information to paper.

Thus, the correct option is D.

For more details regarding CPU, visit:

https://brainly.com/question/16254036

#SPJ6

Your question seems incomplete, the missing options are:

a. ALU

b. Control Unit

c. Instruction register

d. Printer

Where does the revolver get the IP address of a site not visited before?

the file server

the name server

the IP provider

the print spooler

Answers

Answer: The name server

Explanation:

Nameservers are part of a large database called the Domain Name System (DNS), which acts like a directory for devices and the IP addresses attached to them. What nameservers do is use this information to translate domain names into numerical IP addresses – the language our computers understand

define input hardware​

Answers

It’s a piece of hardware (you can touch it) that changes something on the screen. Examples are a keyboard putting letters on the screen or a mouse moving the cursor

When comparing systems software and application software, what is the main difference?

Answers

Answer:

it is a

Explanation:

i did the test

Which one of these is NOT a function of an operating system? *

Managing computer hardware
Managing computer software
Allowing humans to talk to the computer
Performing quick calculations

Answers

Answer:

Allowing humans to talk to the computer

Explanation:

the operating system manages the computer hardware and software

and it also allows the ALU to perform quick calculations

HEEEEELPPP!!!BRAINLIEST!!! THIS IS URGENT!!!

Read the following code:

count in range(80):
leo.forward(count * 2)
leo.left(count + 2)

There is an error in the for loop. What should be fixed?

Add a colon to the end of the statement
Begin the statement with the proper keyword to start the loop
Place the loop condition outside the parentheses
Replace the parentheses around the range with quotation marks

Answers

Answer:

Begin the statement with the proper keyword to start the loop

Explanation:

Given

The code segment

Required

Fix the code

The first line of the code segment is meant to be a for loop, but it does follow the right syntax.

This is so because the for keyword is missing.

The first line should be corrected and replaced with:

for count in range(80):

Hence, option (b) is correct

Merle wants to change the formatting of all bold cells to be non-bolded. Shania wants to copy the cell color,
border, and font from cell E12 to all of column D. Which best describes what each person should do?

A. Merle should use Find and Replace, and Shania should use the Format Painter.

B.Merle should use the Rules Manager, and Shania should use Find and Replace.

C.Merle should use the Format Painter, and Shania should use the Rules Manager.

D. Merle should use the Format Painter, and Shania should use Find and Replace.

Answers

Answer:

Merle should use Find and Replace, and Shania should use the Format Painter.

Explanation:

It's the most logical to me.. And that's what I'm gonna do on my test. =) hope it helps.

An application's certificate indicates the application -
A is regularly updated
B cannot be removed
C is installed
D is authentic

Answers

Answer:

D. is authentic

Explanation:

Authentication can be defined as the process of verifying the identity of an individual or electronic device. Authentication work based on the principle (framework) of matching an incoming request from a user or electronic device to a set of uniquely defined credentials.

Basically, authentication ensures a user is truly who he or she claims to be, as well as confirm that an electronic device is valid through the process of verification.

Biometrics, smart cards, digital certificates, and picture passwords are various methods that can be used to perform an authentication.

Hence, an application's certificate indicates the application is authentic. These certificates are generally referred to as digital certificates.

When an end user installs a software application or program, the computer or mobile device would automatically verify the digital signature contained in the software. If the authentication process is successful, the software would be installed. Else, the installation process would be terminated.

View which is used to specify the tables fields , their data types and properties ​

Answers

Answer:

i am hina i am grade 12 C

Explanation:

my siater name os sana

Answer:

There are 2 basic views when you work in a table: Design View and Datasheet View. Design View is used to set the data types, insert or delete fields, and set the Primary key.

Hope it helps..

Have a great day : )

Allows input/output of audio info to and from the computer.

A. Central Processing Unit

B. Sound Card

C. Video Card

D. Audio Player

Answers

Answer:

sound card

.............

In which TWO cases would you need to format a cell in a spreadsheet that contains a number? to make sure a formula includes it in calculations to change its appearance to make it easy to visually locate it to ensure no-one can use the number in calculations to ensure no-one can hide the column that contains it

Answers

Answer:

to make sure a formula includes it in calculations to change its appearance to make it easy to visually locate it

Explanation:

Microsoft Excel is a spreadsheet application used for data analysis and visualization. The worksheet of the excel file is tabular with rows and columns. A single block of the worksheet is called a cell and holds a single item located by the row and column label.

The particular cell can be referenced in a formula using the absolute reference operator '$' with the syntax "$column-label $ row-number". The background of the cells can also be formatted to have a different color.

You are embedding a video in your Webpage. What three formats should you specify in the source
element to ensure that most browsers and devices can access your video?
a
b
MP4, MP3 and Wav
WebM, Ogg and Wav
MP4, MP3 and Ogs
MP4, WebM and Ogg
с
d
Next Page
Back

Answers

Answer:

d

Explanation:

please help me
...
.... ​

Answers

Answer:

formal information searches

Explanation:

Answer:

informal information source

hope it will help if it helps please ask me in comment

In the Business world people are often measured by their???

A- soft skills
B- hobbies
C- iq
D- technical skills

Answers

Answer: D technical skills

1 point
Which of the following best describes the purpose of a design
specification?
help plssss!

Answers

...You didn’t say what the choices are

a man takes 30 step to cover 18 metre l,how many step he will needed to cover 3003m distance​

Answers

he will need to take 5,004 steps to cover 3003m distance
3003/18=166.8
166.8 x 30=5004
Answer is 5004

Which of the following numbers might this code generate: random.randint(1,9)?

0
10
11
1

Answers

Answer:

1

Explanation:

In Python programming language, the random.randint function is an abbreviation for random integers.

Basically, the random.randint is used for generating or creating a random integer numbers.

The syntax for this code can be written as;

A = random.randint(1,9)

Print ("Random number between 1 and 9 is % s" % (A))

Note, the numbers between 1 and 9 are 1, 2, 3, 4, 5, 6, 7, 8 and 9.

From the answer choices given (0, 1, 10 and 11), the only number that matches the requirement is 1.

Therefore, the number this code random.randint (1,9) might generate is 1.

How much mail can be
stored in each mail box?​

Answers

Answer:

Most mailboxes are 1 - 4 GB with one or two larger.

Explanation:

How Much did a case of soda (any kind your choice ) cost in 2004?
PLS HELP!!!!!!

Answers

Answer:

2004 88 cents for 2 cans

Explanation:

NEED ASAP.


Which multimedia feature can be used to automatically move objects in your slides?
X transition
O animation
O clipart
O innovation

Answers

Animationnnnnnnnnnnnn
Animation or clip art!!

describe a tsunami when it is far from the coast

Answers

I hope it is helpful for you ......

Mark me as Brainliest ......

Tsunamis are marine phenomena, created by the abrupt displacement of large amounts of water into an aquatic formation. Tsunamis manifest as waves, which travel in the deep waters of the oceans at an average speed of 756 kilometers per hour.

While in deep water the tsunami, due to its characteristics there, is not considered a serious danger to the floating structures, reaching the shores has particularly devastating consequences.

Learn more in https://brainly.com/question/15964056

Other Questions
Read through the article, You Are Solving The Wrong Problem. Discuss the following points in your answer.1. What was interesting about this article?2. What current events do you think we need to look at through this problem-solving process? Why?Here is the link to the article. Just copy and paste it to whatever type of browser that you use https://uxmag.com/articles/you-are-solving-the-wrong-problem. Question 1 of 10Which is an argument used to support the teaching of ethnic studies? Please help as soon as possible What is the molar mass of carbon (C)? Which of the following topics is NOT emphasized on the NCLEX-PN examination?Psychosocial integrityHealth promotion and maintenancePsychological analyses of patientsMaintaining a safe and effective environment for patient care a.In 1983, a cast-iron pan cost $28.35. Today, a cast-iron pan costs $52.95. If the CPI is 166, what is the percent relation of theactual price of a cast-iron pan to the expected price?The actual price is 11.1% lower than the expected price.The actual price is 20.8% lower than the expected price.The actual price is 31.5% higher than the expected price,d The actual price is 12.5% higher than the expected price.bCPlease select the best answer from the choices provided BO COOD what is a difference between water and wind Why would the church want to support an absolute monarch What drugs are used to treat psychological disorders? What are some of their negative side effects? At what age do you think children and/or teenagers should be able to decide if they will take medications to treat abnormal psychological functioning or behavior? What was one achievement of the Exodusters?A they founded several agricultural schoolsB they developed new farming methods.C they founded several all-black towns.D They invented barbed wire. Fill in the blanks with the synonyms of these words. rattled conceive beware dreadsSpectres1. My younger brother is terrified of medicines. And, as for injections, he simply _____________them2. Many people claim to have seen ___________in their houses.3. " ____________ !" the old lady said. "The dark room can be scary!"4. I can't ________how some people are completely unfazed by ghosts.5. The young child_______her toys to catch her father's attention who was reading the newspaper. City J is between City K and City L. You know the round-trip distance from City K to City L is548 miles and the round-trip distance from City K to City J is 326 miles. Find the distancebetween City J and City L. Justify your answer. why does a man in his life play many parts?(all the world's a stage)Pls answer this it is urgent!! The action of removing something, often from the ground. 23 POINTS + BRAINLIESTExplain why cross-referencing a topic is a good idea when conducting research.because it allows a student to explore different points of view and come up with an anglebecause it allows students to research different kinds of data bases and see what the rest of the publishing world thinksbecause narrowing a topic is difficult and students always need to do more researchbecause narrowing a topic is one of the primary skills that all students must master before writing a paper 4. Why is the work session for legislators 40 days? (1 point)O Legislators were meant to hold other jobs, not be career politicians.O State business takes a short time to complete.O It gives legislators time to campaign for re-election.O It allows representatives to work closely with lobbyists after the session ends. Is the number 1.13 greater than, less than or equal to 1 If there is a difference in air pressure between two locations, what happens? Kara earns 12 cent for each paper she delivers. If she delivers papers to 42 customers each day, how much does she earn in 1 week ? PLEASE HEL ME FAST I NEED HELP PLEASE