Answer:
//Program in C++.
// header
#include <bits/stdc++.h>
using namespace std;
// function to multiply number with 2-10
void multiplicationTable(int num)
{
cout<<"Number when multiplied with 2-10:"<<endl;
for(int a=2;a<=10;a++)
{
// multiply number with 2-10
cout << num << " * " << a << " = " << num*a << endl;
}
}
// driver function
int main()
{
// variable
int num;
cout<<"Enter a number:";
// read number from user
cin>>num;
// call the function
multiplicationTable(num);
return 0;
}
Explanation:
Read a number from user and assign it to variable "num".Call the function multiplicationTable() with parameter "num".In this function, multiply number with each from 2 to 10 and print the value.
Output:
Enter a number:5
Number when multiplied with 2-10:
5 * 2 = 10
5 * 3 = 15
5 * 4 = 20
5 * 5 = 25
5 * 6 = 30
5 * 7 = 35
5 * 8 = 40
5 * 9 = 45
5 * 10 = 50
Answer and Explanation:
This type of attack is caused by Trojan Horse.
Most of the times, Trojan is veiled as genuine programming which for this situation is an internet banking framework and can empower the spying by the cyber criminals, theft and gain to remote access to your framework and data. These activities can include:
Among other hurtful activities none of which look good with the beneficiary PC.
Answer:
outline 3 computer system problem that could harm people and propose the way avoid the problemare:_
5 dequeue operations
6 enqueue operations
10 dequeue operations
8 enqueue operations
2 dequeue operations
3 enqueue operations
Last = 10
Answer:
10
Explanation:
An enqueue operation is a function that adds an element(value) to a queue array. A dequeue operations removes an element from a queue array. Queue arrays follow a first-in-first-out approach, so elements that are first stored in the queue are removed/accessed first(enqueue operations add elements at the rear of the queue array).
The following operations leave 10 elements in the queue of array size 12 after its done:
10 enqueue operations= adds 10 elements
5 dequeue operations= removes 5 elements( 5 elements left in queue)
6 enqueue operations= adds 6 elements(11 elements in queue)
10 dequeue operations= removes 10 elements(1 element left in queue)
8 enqueue operations= adds 8 elements(9 elements in queue)
2 dequeue operations= removes 2 elements(7 elements left in queue)
3 enqueue operations= adds 3 elements(10 elements in queue)
Therefore there are 10 elements in the queue after enqueue and dequeue operations.
Answer:
The Agile model
Explanation:
We can point out that this is all about the software development lifecycle model. In the software developmental lifecycle, the agile model is the most suited model that can be used to bring changes as per the requirement.
It is the model that provides huge flexibility as the changes can be made to the software even if the application is running. Moreover, this model follows documentation regarding the process of bringing the changes to the software. And even the new changes should pass the quality assurance test in order to go to the production phase.
What this does is that it actually ensures that your application is fit and is consistent to handle and perform operations.
Answer:
RAID level 1 fits the criteria to yield the least amount of interference between the rebuild and ongoing disk accesses.
Explanation:
RAID system can be defined as the process in which hard drives which are connected to the system are been set up in order to help speed up the performance of a computer system disk storage which is why RAID is mostly used on servers and high performance computers system . This RAID as well helps to combines multiple physical disk drive components into various logical units for the aim of increasing system performance.
Therefore RAID level 1 fits the criteria to yield the least amount of interference between the rebuild and ongoing disk accesses. This is because the level 1 of RAID copies just the data from the failed Systems disk mirror during the rebuilding period where as the other levels of RAID copies the whole lot of content of the other disks due to the fact that RAID 1 often requires at least minimum of two physical drives because data is written simultaneously to two places in which the drives are essentially mirror images of one another in which if one fails, the other one can take over and help to provide access to the data that is been stored on that drive.
Answer:
import java.util.Scanner;
public class num9 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter year");
int givenYear =in.nextInt();
if(givenYear>=2101){
System.out.println("Distant Future");
}
else if(givenYear>=2001){
System.out.println("21st Century");
}
}
}
Explanation: