Answer:
The answer to this question is given below in the explanation section.
Explanation:
When you will run the given code of java in this question. You will get an error and nothing will get printed in the response of the result. Because, in Java, you can't add the two array objects. The reason behind it, java does not support operator overloading. You cannot use the plus operator to add two arrays in Java
. It will give you the compile-time error.
There is a method to add two arrays in the Java program is to iterate over them and add individual elements and store them into a new array. This also becomes complex, if you having arrays of different sizes. To go through this method, you have to build a method that will through an illegal exception in case of a mismatch in the sizes of the arrays.
As in the given code, when you execute the first print statement:
System.out.println(num1.get(0)+1);
It will produce error because first type is object and second is int. So, you cannot add object and int value.
When you will execute the given second print statement:
System.out.println(num1.get(1)+ num2.get(0));
it will also produce error, because you cannot add object in Java using + binary operator because in this statement first and second type are both objects.
Answer:
Hi there! The question is checking your knowledge on Pseudocode. Pseudocode is a high level solution written in plain English to outline the steps needed for the program to work correctly. An implementation for the different parts of the question is written below.
Explanation:
1. Determine the area of a triangle
declare formula for area calculation of triangle as ½ * (base * height)
validate input parameters “base” and “height”
apply formula and return result
2. Compute the interest earned Prompt user for input 2
declare formula for interest calculation as annual interest rate * term * starting account balance
validate input parameters “interest_rate” and “starting_account_balance ”
apply formula and return result as final balance at the end of the year as the interest earned + starting balance.
3. Determine the flying time between two cities given the mileage M between them and the average speed of the airplane.
declare formula for time calculation of triangle as time = distance / speed
validate input parameters for mileage “M” and speed “S”
apply formula and return result
Https://wordribbon.tips.net/T010192_Drop_Shadows_for_Tables.html
Answer:
Increased processor speed and multi core technologies.
Explanation:
The development of processors over the years is overwhelmingly fast. The CPU use to be cumbersome, expensive and computational speed was moderate.
As it evolves, the CPU was minimized to give rise to microprocessors.
Microprocessors are very fast, running millions of processes on its core. The multiple core processors helped to increase the speed of these processors.
When there are more than one core in a processor (dual, quad or octal core), it processes data in parallel reducing the time of execution compared to a one core processor.
A company having computers with single core would need to upgrade to a new computer with multi core processor to promote speed in data processing.