Code segments are extractions from a more complete program.
The code that completes the program is (4) Motion
<h3>How to complete the code</h3>
From the question, we understand that the program responds when the mouse is moved over a message box.
This means that, the message box reacts to mouse movement or motion on it.
Hence, the code that completes the program is (4) Motion
Read more about code segments at:
brainly.com/question/22654163
Answer:
line = sys.stdin.readline()
print(line)
Explanation:
line = sys.stdin.readline()
print(line)
Answer:
An operating system (OS) is a software which is responsible for the management of computer hardware, software, and also provides common services for computer programs.
Operating System is pivotal in teaching and learning because:
1. It enables computer programs to run smoothly on various computer devices.
2. The Operating System gives teachers the opportunity to install learning apps on their devices for ease of teaching.
3. It enables students to download and install learning applications, download and upload assignments, etc.
4. The Operating System makes video conferencing for online tuition easy and smooth.
5. It makes computer users to interact with other applications and softwares within a device.
Operating systems are found on many computer devices e.g: mobile phones, video games, PCs, supercomputers, etc.
Here you go. Let me know if you need clarifications.
#include <iostream>
using namespace std;
int main()
{
bool play = true;
while (play)
{
// Game starts
int card1 = rand() % 10 + 1;
int card2 = rand() % 10 + 1;
cout << "First cards: " << card1 << ", " << card2 << endl;
int total = card1 + card2;
cout << "Total: " << total << endl;
bool answergiven = false;
bool gamefinished = false;
char answer;
// Game loop
while (!gamefinished)
{
answergiven = false;
while (!answergiven)
{
cout << "Do you want another card? (y/n): ";
cin >> answer;
answergiven = (answer == 'y') || (answer == 'n');
}
if (answer == 'y')
{
int card = rand() % 10 + 1;
cout << "Card: " << card << endl;
total += card;
cout << "Total: " << total << endl;
if (total > 21)
{
cout << "Bust." << endl;
gamefinished = true;
}
else if (total == 21)
{
cout << "Congratulations!" << endl;
gamefinished = true;
}
}
else
{
gamefinished = true;
}
}
// Game ends
answergiven = false;
while (!answergiven)
{
cout << "Would you like to play again? (y/n): ";
cin >> answer;
answergiven = (answer == 'y') || (answer == 'n');
}
play = (answer == 'y');
}
}
Did you accidentally plug the headphones into the microphone section. Or is the a problem with the cord to the headphones. Or is there a problem with your ears.