(Java) Can anyone help me with this question ???

(Java) Can Anyone Help Me With This Question ???

Answers

Answer 1
Your print function is too specific. It should be more like:

for( int i = 0; i < data.length; i++ )
    System.out.print( data[ i ] );


append() would be something like:

int[] c = new int[ a.length + b.length ];
int j = 0;
for( int i = 0; i < a.length; i++ )
    c[ i ] = a[ i ];

for( int i = j; i < ( b.length + a.length ); i++ )
    c[ i ] = b[ i ];
return( c );


Related Questions

If a ps/2 keyboard does not work on your system and yet you know the keyboard is good, what is the best solution?

Answers

Do you have drivers installed for that keyboard on your ps2?

What do you click to create a new presentation in Normal view? A. Section B. Blank Presentation C. Layout D. New Slide

Answers

B. Blank presentation, this way you have a normal view presentation but you can also add your own features.

The answer is B. Blank Presentation.  With this option, you are able to adjust the presentation to anyway you want to deliver it.

Which new jobs will be in demand in the next 20 years

Answers

The answer is Data Jobs, Data Analysis, Solution Architecture, Software Engineering and Product Managers, there is many more but there's just a few. Hope I helped! :)

What pointer appears when pointing to a hyperlink

Answers

Your answer would be: a hand pointer.

Answer: hand

Explanation: The hand pointer appears when pointing to a hyperlink, like that found in a help window displayed by the Tell Me box. When you click a link a browser window opens.

The person who receives financial protection from a life insurance plan is called a:

Answers

The answer to this question is A. Beneficiary
Payer is the person who buy the insurance (not necessarily for themselves only, can be given to their family or friends). Insured can not only be a person, but it also can be an object (such as cars). And the giver is the company who provide the insurance service for the payer.
I believe it's called being a beneficiary.

Which of the following is NOT a cost typically associated with owning a car?
A) Fuel
B) Insurance
C) Wear and Tear Fees
D) Maintenance

Answers

A. fuel ; when you but a car you aren't buying the gas to go in it 

Which section of a personal narrative requires the most development

Answers

D. Plot because a,b,and c is consider plot can i have brainlest answer please

What does xhtml stand for?

Answers

Extensible Hypertext Markup Language.
EXtensible HyperText Markup Language

Write the definition of a function add, that receives two int parameters and returns their sum. python

Answers

def Add(a, b):
    return a+b

Following are the method program to the given question:

Program Explanation:

Defining a method "add" that takes two integer variables "a,b" in the parameter.Inside the method, a return keyword is used that adds and return parameter value.Outside the method, two integer variable "a, b" is defined that use int with the input method to input value.After input value, a print method is defined that calls the method and prints its calculated value with the message.

Program:

def add(a,b):#defining a method add that takes two parameter  

   return a+b#using return keyword that adds parameter value

a=int(input("Enter first number: "))#defining integer variable a that inputs value

b=int(input("Enter second number: "))#defining integer variable b that inputs value

print('Sum: ',add(a,b))#using print method that calls method and prints its calculated value with message

Output:

Please find the attached file.

Learn more:

brainly.com/question/13314892

While a computer is running the operating system remains in memory. true or false?

Answers

While a computer is running the operating system remains in memory is true.

Sending packets with false ip source addresses is called ____. ip address spoofing a port scanning attack a ip address scanning attack none of the above.

Answers

Sending packets with false IP source addresses is called IP address spoofing 

One disadvantage of using the styles feature of a word processor is that you cannot modify existing styles. true or false

Answers

i think its false
but im not possitive

Mitchell doesn’t have a checking account, but needs to pay a bill, what can Mitchell pay with?

Answers

Cash, possibly credit card.
he has the check as the moneybso u need to count it as a part

If amperage goes down and voltage remains the same what happens to resistance

Answers

V=I*R, so R=V/I

From looking at the formula: if I goes down, R will go up.

From thinking about it:  if less current is drawn from a battery and it is still healthy (ie., the voltage remains the same), it has to be because the resistance increased.

A pie chart with one more slices offset is referred to as a

Answers

A Pie Chart is what it is called

In Microsoft Word, when you highlight existing text you want to replace, you are in



A.automatic mode.

B.basic mode.

C.typeover mode.

D.insert mode.

Answers

The correct answer is C. Typeover mode

This is when you select a text and can then type over it and it automatically replaces it with what you're writing. It also creates a little box that lets you edit the selected part easily if that's what you need with things like bold or italic or change the text color.

There are three bloodborne pathogens to which healthcare workers in the US are most likely to be exposed. Which ones are these? A. Human Immunodeficiency Virus (HIV), Hepatitis B virus, and Hepatitis C virus B. Zika, Hepatitis B virus, and Hepatitis C virus C. Ebola, Hepatitis B virus, and Hepatitis C virus D. Human Immunodeficiency Virus (HIV), Hepatitis B virus, and Ebola

Answers

The answer is A: HIV, Hepatitis B, and Hepatitis C

Most healthcare workers are exposed to the above in one of the ways below:

1. Needle sticks and other sharps.

2. Contact of mucous membrane and skin exposures.

The estimation of HIV infections alone, from sharps is roughly about 1 in 300 health workers. The chance of becoming infected with HBV from sharps is estimated to be about 6 and 30%. Health workers should be extra cautious and take advantage of the available work practices to prevent exposure to blood or body fluids.


Answer:

A

Explanation:

Write a for loop to print all num_vals elements of array hourlytemp. separate elements with a comma and space. ex: if hourlytemp = {90, 92, 94, 95}, print: 90, 92, 94, 95 note that the last element is not followed by a comma, space, or newline.

Answers

import java.util.Scanner; public class PrintWithComma { public static void main (String [] args) { final int NUM_VALS = 4; int[] hourlyTemp = new int[NUM_VALS]; int i = 0; hourlyTemp[0] = 90; hourlyTemp[1] = 92; hourlyTemp[2] = 94; hourlyTemp[3] = 95; /* Answer */ System.out.println(""); return; } }

Which of the following questions would be most helpful in determining the market structure of a specific market? A. How far are goods shipped? B. How similar are the products? C. How many people want to buy? D. How are the corporations organized?

Answers

B. how similar are the products?

The combination of two or more technologies or data feeds into a single, integrated tool is referred to as a _____.
a. interleave
b. trackback
c. hyperlink
d. mash-up
e. folksonomy

Answers

mash-up, I believe, is the correct answer.

The keyboard, mouse, trackpad, microphone, light pen, and voice recognition are examples of _____ devices.
PTNUI

Answers

they are INPUT devices

The keyboard, mouse, trackpad, microphone, light pen, and voice recognition are examples of input devices, which are hardware components allowing data to be entered into a computer system. Keyboards and touchscreens are common input devices, while microphones enable audio communication.

An input device is any hardware component that allows you to enter data, commands, and user responses into a system. The computer processes these inputs to perform tasks or provide outputs. Keyboards are common input devices for desktop and laptop computers, resembling a traditional typewriter with a QWERTY layout.

Touchscreens are prominent on tablets and smartphones, combining the functions of a mouse and keyboard. Microphones and cameras are used for recording and communication, and like touchscreens, they offer a different mode of interaction with technology.

Many input devices are now wireless, such as Bluetooth keyboards and mice, which enhance mobility and reduce clutter. However, the convenience of technology usage should be balanced with health considerations, as excessive use of input devices can lead to repetitive motion injuries.

A preformatted text box inserted via the text box button on the insert tab is a _______. select one:

a. inline object formatted with square text wrapping

b. floating object formatted with square text wrapping

c. inline object formatted with tight text wrapping

d. floating object formatted with tight text wrapping

Answers

The answer is that it is inline object formatted with square text wrapping as its text will flow in the outline square of the given object to be around it that's why it is in line and not to be considered as a floating object formatted with tight or square text wrapping.

what is the difference between a router and a modem

Answers

A router is a device that allows numerous computers to join a network. A modem is a device that provides access to the Internet. 

which is not a factor that leads to technological advancement?

a) inflation rate

b) new methods

c) advanced devices

d) desire for productivity

Answers

The inflation rate is the rate of increase in aggregate prices (things becoming more expensive over time), primarily driven by an increase in the money supply. The effect of inflation on an economy is debatable, and can have positive and negative implications. It generally moves very closely with a growth in the money supply, so that real prices are not heavily affected by inflation in the long-run.
Inflation is not related to technological advancement, but the nominal change in prices. 

New methods, advanced devices, and firms' incentive to become more productive all logically contribute to more advanced technology. 

The answer is A) inflation rate

While working independently, you need to weigh your options on a topic. You research and analyze the topic so you can ensure your resolution is the best for everyone. What is this processed called?

Conflict resolution

Decision-making

Negotiation

Verbal communication

Answers

i think this process would be Decision-Making, because the scenario is that you have to decide on what topic you are going to pick, based on research and what you think would be the best resolution. I don't think that Conflict resolution would be correct because there is no conflict and neither Negotiation nor Verbal Communication have anything to do with this, so i believe it's safe to assume the correct answer would be Decision Making.

While working independently, you need to weigh your options on a topic. The process is called Decision-making. The correct option is b.

What is decision-making?

Identifying a decision, acquiring data, and weighing potential solutions are all steps in the decision-making process. You can make more careful, intelligent decisions by organising pertinent information and outlining alternatives by following a step-by-step decision-making process.

The situation is that you must select a topic based on your study and what you believe to be the best course of action. Since there is no conflict and neither verbal nor written communication is relevant, I don't think that conflict resolution would be the right response. Therefore, it seems safe to infer that the right response is decision-making.

Therefore, the correct option is b, Decision-making.

To learn more about decision-making, refer to the link:

https://brainly.com/question/13244895

#SPJ2

Sql server comes with a complete set of reference manuals and help information called ____________________________________.

Answers

The manuals are called "Books Online." These allow the user to better understand the functionality of SQL Server and how to create data management tools. In other terms, this is the "knowledge base" for SQL and how to effectively use it when creating databases.

Write a java program (non-gui preferred) that has a method named atomic(). demonstrate in the program how two threads can, sometimes, invoke atomic() concurrently. create a second version of the program in which the two threads cannot invoke atomic concurrently.

Answers

Let's create a static counter shared by the two threads. The atomic method will increment, then decrement the counter. If concurrent invocations happen, the counter may hit 2, otherwise it should be 1.

public class HelloRunnable implements Runnable {

    public static int counter = 0;

    public static void atomic() {
        int value = ++counter;
        System.out.printf("%d ", value);
        counter = value - 1;
    }
    
    public void run() {
        int iter = 0;
        while(iter++ < 1000) {
            atomic();
        }
    }

    public static void main(String[] args) {
        (new Thread(new HelloRunnable())).start();
        (new Thread(new HelloRunnable())).start();
    }
}

You'll see an irregular pattern of 1's and 2's. Now if you add the synchronized keyword to atomic(), it'll be 1's only, because only one thread will enter atomic() at a time.

ie.:

    public synchronized static void atomic() {

What type of malware is heavily dependent on a user in order to spread?
a. rootkit
b. virus
c. worm
d. trojan?

Answers

Hello There!

The correct answer is in fact B. Virus.

Hope This Helps You!
Good Luck :) 

- Hannah ❤

Malware analysis is used by incident responders and security experts to: Discover the origin of an attack. Sort incidents according to their severity. Boost the process of incident response's effectiveness. Thus, option B is correct.

What malware is dependent on a user in order to spread?

Clicking links in emails, messaging applications, or social network posts that lead to fraudulent websites. By hiding in the HTML of hijacked websites, sometimes known as drive-by downloads, viruses can be downloaded as soon as the page loads in your browser.

A file or piece of code that can almost perform whatever action an attacker desires can be delivered over a network and can infect, investigate, steal, or conduct. Additionally, there are many ways to infect computers due to the wide variety of viruses.

Therefore, using network drives or external hard drives that are infected with your device.

Learn more about malware here:

https://brainly.com/question/14276107

#SPJ2

Float_abs - return bit-level equivalent of absolute value of f for * floating point argument f. * both the argument and result are passed as unsigned int's, but * they are to be interpreted as the bit-level representations of * single-precision floating point values. * when argument is nan, return argument.. * legal ops: any integer/unsigned operations incl. ||, &&. also if, while * max ops: 10 * rating: 2

Answers

Final answer:

In computer science, finding the bit-level absolute value of a floating-point number involves identifying and possibly changing the sign bit using bitwise operations. If the number is NaN, it is returned unchanged. The key operations involve the use of masks and bitwise AND.

Explanation:

The student's question is related to Computer Science, specifically the topic of floating-point numbers and their representation in binary form. When working with floating-point arithmetic at the bit level, the goal is to find the absolute value of a given floating-point number represented as an unsigned int. This involves manipulating the bits of the floating-point number such that, if the number is not a NaN (Not a Number), only the sign bit of the number is changed (if necessary) to ensure the value is non-negative.

To accomplish this using bit-level operations:

First, identify the sign bit of the floating-point representation. In IEEE 754 format for single-precision numbers, this is the most significant bit.Next, use bitwise operations to clear the sign bit, effectively taking the absolute value.If the original number was NaN, ensure that the outcome does not change as NaN has no sign.

The operation to clear the sign bit typically involves using a mask with all bits set to 1 except the sign bit. By using a bitwise AND operation with this mask, the result will have the sign bit cleared without modifying any other bits of the representation.

When using a template to compose a memorandum which key on the keyboard moves the cursor to the next field
Caps lock tab shift ctrl

Answers

The tab key moves the cursor to the next field in the tab order, which is set by the programmer.
Other Questions
Josiah, the manager of a pet store, bought 72 oz of water conditioner to use in his fish tanks. His small tanks would require 2 oz of conditioner and his large tanks would require 6 oz of conditioner. He made a sketch to show the line representing the different combinations of tanks he could put the water conditioner into. The x-axis represented the number of small tanks and the y-axis represented the number of large tanks. The manager labeled only the intercepts.Which points did the manager label?a. (0, 6) and (2, 0)b. (6, 0) and (0, 2)c.(0, 12) and (36, 0)d(0, 36) and (12, 0) Whitney conducted a survey of grocery store customers to determine the most popular brand of bread. Of the 72 people she surveyed, 11 customers liked Moonbeam, 24 customers liked Dora Lee, 17 customers liked Wondrous Loaf, and 8 customers liked Mostess. Identify the sample size in the situation above. Which of these body parts is dorsal to your eyes? 1)When adding two negative numbers, _________ the absolute value of the numbers and keep the negative sign. add, subtract, or change 2)When adding two different signed numbers, ________ the absolute values of the numbers and keep the sign of the number with the larger absolute value. add, subtract, or change 3)When subtracting, change the subtraction to addition and _______ the sign of the number being taken away. add, subtract, or change Patrice is giving a speech in front of her class. she keeps shifting nervously back and forth. patrice is not aware that she is shifting, but her classmates are. according to the johari window, which window or area would this fall into? 1. A college newspaper, The College Spy, has a fixed production cost of $70 per edition and it costs 40 per copy to print and distribute. The College Spy sells for 50 per copy.a. What is the cost expression for the newspaper? b. What is the revenue expression for the newspaper? c. Put the cost and revenue expressions into an inequality that would represent a successful newspaper. d. How many copies should be sold to make a profit? Show all work! An answer with no work will receive 0 points. e. Now go back to your answer for d. On every line of your solution write what property of math you would use to justify the transformation that occurred. What are the disadvantages of using big macs to measure purchasing power parity? (check all that apply.)? The sum of three numbers is 62. The second number is equal to the first number diminished by 4. The third number is four times the first. What are the numbers? Which three expressions could be used to represent the numbers? n; n - 4; 4n n; 4 - n; n + 4 n; n/4; n + 4 Calculate the net price of goods listing for $9,900 less a trade discount rate of 2 3 % 8 to the nearest cent. Settlers to the southern colonies were initially attracted to this region with the hope of __________. Evaluate the expression 4a^2 - 2b 4 for a = 2 and b = 4.A. 2B. 8C. 14D. 16 On a snowy day, max (mass = 15 kg) pulls his little sister maya in a sled (combined mass = 20 kg) through the slippery snow. when max pulls on the sled with 12 n of force, directed at an angle of 15 above the ground, how much work does max do on the sled as he pulls his sister 25 m in the snow? Naomi has earned $54 mowing lawns the past 2 days. She worded 21/2 hours yesterday and 41/4 hourse today. If Naomi is paid the same amount for every hour she works, how much does she earn per hour to mow lawns? Why should you not erase construction lines? Who has controlled the supply of money in the United States since the early 1900s?Question options:CongressUnited States TreasuryBureau of Engraving and PrintingFederal Reserve System solve for y: 7/9y = 42 Corinnes puppy eats 3 meals a day. How many meals does the puppy eat in 32 days vector is flying his helicopter at 200 miles per hour. how long has he been flying if he has traveled 1,200 miles? A. 2 hours B. 60 hours C. 6 hours D. 10 hours??? please help write a word phrase for each algebraic expression1. 100 - 5n2. 25r + 6 Why should managers be concerned about how the decisions they make affect others? Steam Workshop Downloader