Answer:
The program to this question can be given as:
Program:
#include<stdio.h>//include header file
int main() //defining main method
{
printf("Hello..! and please vote the answer."); //print value.
return 0;
}
Output:
Hello..! and please vote the answer.
Explanation:
In the given question some information is missing that is the message to be printed, In this code assume some message to be displayed, and the description to the above code as follows:
- In the above code firstly header file is included for using a basic function like print method, input method, etc.
- In the next line main method is defined, inside the main method a print function is used in this function a message is passed with a double-quote ("'). When the code will execute it will print the message that is given in the output section.
Answer:
See Explanation Below
Explanation:
// Program is written in C++ programming language
//.. Comments are used for explanatory purposes
// Program starts here
#include<iostream>
#include <stdlib.h>
#include <time.h>
using namespace std;
int main()
{
int computerWins = 0, computerPlay = 0;
int userWins = 0, userPlay = 0;
int tiedGames = 0;
// Computer Play
for (int play = 0; play< 10; play++) {
computerPlay = rolls();
userPlay = rolls();
// Check who wins
//Clear Screen
System("CLS")
if (computerPlay == userPlay) {
tiedGames++;
cout<<"Ties........" + tiedGames; }
else {
if (computerPlay> userPlay) {
computerWins++;
cout<<"Computer...."<< computerWins;
} else {
userWins++;
cout<<"User........"<< userWins;
}
}
}
return 0;
}
int rolls() {
srand((unsigned)time(0));
return rand() % 6 + 1;
}
Answer: Personalization
Explanation: Personalization technique in the websites is approach towards any individual in which he/she can describe their like or dislike and gets to know about the user's need by which they search for any particular fashion, their history of search etc.In this the person displays their liking and the websites starts to display those content which are appealing to the particular user.