Whichever action you take to complete a task will inevitably affect the end result of whatever would need to be accomplished; whether this impact the task in a positive or a negative way.
False, the storage is being accessed from the cloud which can only be accessed through an internet connection.
Answer:
255 number of characters including space, \ etc.
Answer; A peripheral is a “device that is used to put information into or get information out of the computer.”[1]
There are three different types of peripherals:
Input, used to interact with, or send data to the computer (mouse, keyboards, etc.)
Output, which provides output to the user from the computer (monitors, printers, etc.)
Storage, which stores data processed by the computer (hard drives, flash drives, etc.)
Explanation:
Answer:
#include <iostream>
#include <stdlib.h>
#include <time.h>
using namespace std;
int main()
{
srand (time(NULL)); //initialize random seed
int guess;
int number = rand() % 2; //generate random number 0 or 1
cout<<"Enter the guess (0 or 1): ";
cin>>guess; //store in guess
if(number == guess){ //check if number equal to guess
cout<<"Guess is correct."<<endl; //if true print correct message.
}else{
cout<<"Guess is incorrect."<<endl; //otherwise print correct message.
}
return 0;
}
Explanation:
first include the three library iostream for input/output, stdlib,h for using the rand() function and time for using the time() function.
create the main function and initialize the random number generation seed, then generate the random number using the function rand() from 0 to 1.
after that, take input from user and then with the help of conditional statement if else check if random number is equal to guess number or not and print the appropriate message.