Answer: provided in the explanation section
Explanation:
import java.util.*;
class Mutation {
public static int[] mutateTheArray(int n , int[] a)
{
int []b = new int[n];
for(int i=0;i<n;i++)
{
b[i]=0;
if(((i-1)>=0)&&((i-1)<n))
b[i]+=a[i-1];
if(((i)>=0)&&((i)<n))
b[i]+=a[i];
if(((i+1)>=0)&&((i+1)<n))
b[i]+=a[i+1];
}
return b;
}
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int n= sc.nextInt();
int []a = new int [n];
for(int i=0;i<n;i++)
a[i]=sc.nextInt();
int []b = mutateTheArray(n,a);
for(int i=0;i<n;i++)
System.out.print(b[i]+" ");
}
}
cheers i hope this helped !!
Answer:
Set 1: "Trumpet", "Maintenance", "Instructions"
Set 2: "How to", "Trumpet", "Care", "Instrument"
Set 3: "Proper", "Clean", "Service", "Trumpet"
Explanation:
Actual search engines allow very advanced searches, using multiple words related with your objective will improve the results obtained. Also you can refine your search by using specific operators to include or exclude words, websites, file types or dates.
For example in Google search, using + and - will force the results to include and exclude respectively the following word. Typing several words between " (double quotes) will search specifically for that sentence, the same words and in the same order. Using filetype: will restrict results of a specific file extension, like jpg, or pdf.
There are many other operators available, you can find more information about this by looking for "advanced search operators" of your favourite search engine.
Answer:
B. 80%
Explanation:
To assertain:
1 hit takes 1 clock cycle while 1 miss takes 6 clock cycles
Assuming that:
- we have 100 accesses in total,
- p are hits,
- 100 - p are misses

Hence, option B. 80% will result in an effective access time of 2 clock cycles.
Answer:
go to your dashboard and press the number under grade to date (your percentage in the class) and it should show all your assignments that you have done and that still need to be done