Answer :Computers never get tired or bored because of doing the same task continuously. They work in the same manner all the time. A computer can store large amount of information in its memory.
Explanation: it is quality which makes the user to be dependent on computer. As we all know, computer systems do repetitive tasks without any boredom, tiredness, or fatigue.
Answer:
The program to this question can be describes as follows:
Program:
#include <iostream> //defining header file
using namespace std;
int main() //defining main method
{
float user_num ;//defining float variable
cout<<"Enter any number: "; //message
cin>>user_num; //input value from the user
while (user_num >= 1) //defining loop to calculate value
{
user_num =user_num/ 2; //diving the value
cout<<user_num<<endl; //print value
}
return 0;
}
Output:
Enter any number: 20
10
5
2.5
1.25
0.625
Explanation:
In the above program, a float variable user_num is declared in which we store input value from the user end, in the next step, a while loop is declared, which calculates, the given value.
- In the loop a condition is defined, that user_num value is greater than equal to 1, inside the loop it will divide the value of the user_num and store in this variable.
- In this print, the method is used, which prints its variable values.
Answer:
#include <iostream>
#include <cstdlib>
using namespace std;
int t;
char HeadsOrTails(){
char a='h';
char b='t';
if(t%2==0)
return a;
else
return b;
}
int main ()
{
int n, c, b;
cout << "Enter the number of decisions you want" << endl;
cin >> n;
b=1;
cout << "Decisions are:" << endl;
srand(100);
for (c = 1; c <= n; c++)
{
t = rand();
if(HeadsOrTails()=='h'){
cout<<b<<".heads"<<endl;
b++;
}
else{
cout<<b<<".tails"<<endl;
b++;
}
}
return 0;
}
Explanation:
random number generator is used to generate a number and then heads and tails is decided on even and odd number basis. if number is even then decision is head and if number is odd then decision in tails
Answer:
Motivation? The search problem.
Sorting algorithms: insertion sort, shellsort, heapsort, mergesort, quicksort, bubblesort
At the very least, "general purpose" sorting algorithms require O(n log n) comparisons
Explanation:
Answer:
If we are investigating login issues then we have to start with 'security logs' in 'windows logs' portion of Event viewer.
Explanation:
Much information about login issues is contained in log files which are related to security because it is mostly security issue. Some it is also better to start with 'system logs' portion of windows logs portion of Event viewer when there may be system problems instead of security issues. But in most cases there is security issues so 'security logs' is better option overall