#include <iostream>
#include <ctime>
#include <conio.h>
using namespace std;
bool player_won (int player, int computer)
{
switch (player)
{
case 1:
if (computer==2)
return false;
else return true;
case 2:
if (computer==3)
return false;
else return true;
case 3:
if (computer==1)
return false;
else return true;
}
}
main ()
{
cout<<"Rock, paper scissors by TheMaster999"<<endl;
srand (time(NULL));
while (true)
{
int computer=rand()%3+1;
int player;
cout<<"If u choose rock type 1, if u choose paper type 2, if u choose scissors type 3"<<endl;
cin>>player;
if (player==computer)
cout<<"Draw, play again"<<endl;
else if (player_won(player,computer))
{
cout<<"Congratulations, you won!"<<endl;
break;
}
else
{
cout<<"You lost :("<<endl;
break;
}
}
cout<<"Thank you, for playing my game"<<endl;
getch();
return 0;
}
Answer:
The answer is "Option B".
Explanation:
The information is also known as an organized and unorganized data, it record data in file or fixed field file. In this process, the data is not organized by a predetermined data model, and some other choices, that could be explained as follows were wrong:
- Option A and Option C are wrong because it can't collect, and process the data.
- In option D, It can't provide diversity, that's why it is wrong.
- In option E, It doesn't depend upon the speed, that's why it is wrong.
It might have a really weird phone number, also if it sounds like its too good to be true it probably is. Good luck, and don't fall for scams!! XD
Answer:
WWII; Manhattan Project.
Explanation:
Computer simulation refers to a mathematical model designed and developed to predict the outcome or behavior of a hypothetical or real-life scenario on a computer system, so as to illustrate and understand how the system functions.
Historically, computer simulations were first developed during World War II (WWII) as a part of the Manhattan Project.
For example, SimpleScalar refers to a computer architectural simulating software application or program which was designed and developed by Todd Austin at the University of Wisconsin, Madison, United States of America. It is an open source simulator written with "C" programming language and it's used typically for modelling virtual computer systems having a central processing unit (CPU), memory system parameters (hierarchy), and cache.
In python, spaces in the sense you're talking about, dont matter. For instance,
print ( "hello") will run the same as print("hello")
But, you cannot put a space before the print statement. That's called indenting. You are only supposed to indent code that is inside loops, if-elif-else statements, and functions.