Answer:
The answer to this question is given below in the explanation section.
Explanation:
This program is written in C++.
#include <iostream>
using namespace std;
int main()
{
string word;// variable for taking user input
int cond;// to set condition true if user preses the stop and exit from loop
cout<<"Enter word: \n";
cin>>word;
do// start while loop
{
if(word=="stop" || word =="STOP" || word == "Stop")// if user enter word stop, then program exit
{
cond=0;
}
else//otherwise loop continue
{
cout<<" You Entered "+ word +"\n";
cout<<"Enter word: \n";
cin>>word;
cond=1;
}
}
while(cond == 1);// if user don't enter word "stop" loop run continuesly.
cout<<"Program exit";
return 0;
}
I think it is WAN (Wide Area Network).
Answer:
You can look at different websites of look on an app for people selling it, or something :p
Explanation:
Answer:
Explanation:
The following is a python function that has arrays with all the cards available and then uses random to choose a random card from the dictionary. Finally it prints out the card chosen...
import random
def choose_card():
card = ["Ace", 2, 3, 4, 5, 6, 7, 8, 9, 10, 'Jack', 'Queen', 'King']
symbols = ['Clubs', 'Diamonds', 'Hearts', 'Spades']
chosen_card = str(card[random.randint(0, len(card))])
symbols = symbols[random.randint(0, len(symbols))]
print("Chosen Card: " + chosen_card + " of " + symbols)