Answer:
// This program is written in C++
// Comments are used for explanatory purpose
// Program starts here
#include<iostream.h>
#include<stdlib.h>
int main()
{
// Declare variables
int num, selectno;
string status;
randomize();
//Generate random number;
num=rand()%10000;
// Prompt to guess a number
cout<<"You have only 10 tries\nTake a guess: ";
int tries = 0;
while (tries != 10)
{
cin>>selectno;
if(selectno == num){
cout<<"You passed at the "<<count+1<<" attempt";
tries = 10;
}
else
{
cout<<"You failed. Take another guess\n You have "<<10 - count + 1 <<" attempts";
}
tries++;
if(tries >= 10)
{
break;
}
}
return 0;
}
To rewrite something , but in your own words
These two charts show both cause and effect relationships. T-charts, for instance, compares one word and contrast the other. It can help graphically make decisions by comparing resulting advantages and disadvantages or explaining the strengths and weaknesses of a piece of writing. The same case goes to the use of a star chart. A star chart is a map of the night sky that astronomers use to divide into grids for comparison. It turns the night sky into a readable map that helps humans travel the world just by using the stars.