#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;
}
Batch processing usually refers to saving up requests to do a task (jobs), and doing them all at once, in a batch. Batch processing was more common with mainframe computers that had very limited resources and couldn't switch between datasets (think tapes with a capacity in megabytes) easily.
The answer is D.
Inheritance means that a child class (subclass) can inherit functionality from a parent class (superclass). For example, a class called Person could have 2 subclasses called Student and Teacher. While Student and Teacher have attributes and methods that differ, they also have some that overlap. By passing these overlapping functionalities down from the Person class, we are making the code more reusable. This eliminates the need to write duplicate code and makes the code more readable.
Answer:
Items placed in a Web store's shopping cart for future purchase during the anonymous browsing session will not be saved on the user's computer
Explanation:
Browsing ananymously implemented as In-private browsing by some web browsers allows you to browse without leaving histories and cookies, however your activities can still be monitored by an admin and you are not protected from malware because of in-private browsing. Because browsing histories are not saved, any data from a web store such as future purchase intention will also not be saved
Answer:
As you know the on going situation we are in, barcodes can be really useful for an example using them to check into a building that way when there is a infected person it is a really esay process to track down people that have been in that area.