The two features that could be added to a game using an "if () then" block are c. if the player touches a wall, it turns around and moves back 5 and d.
<h3>What does the If Then block mean?</h3>
The If-Then block is understood to be the output certainly considered one among given values, this is because of the fee of a Boolean enter.
Note that the entry fee could be very essential and as such, The functions will be introduced to a sport the use of an "if () then " block are: Using nested If-Then blocks. • Checks the particular Bid amount for the instrument.
Learn greater approximately game from :
brainly.com/question/1786465
#SPJ1
Answer:
Explanation:
One group of students did an experiment to study the movement of ocean water. The steps of the experiment are listed below.
Fill a rectangular baking glass dish with water.
Place a plastic bag with ice in the water near the left edge of the dish.
Place a lighted lamp near the left edge of the dish so that its light falls directly on the plastic bag.
Put a few drops of ink in the water.
The student did not observe any circulation of ink in the water as expected because the experiment had a flaw. Which of these statements best describes the flaw in the experiment? (2 points)
Not enough ink was added.
Not enough water was taken.
The dish was too small for the experiment.
The lamp and the ice bag were at the same place.
Answer:
// CPP program to Convert characters
// of a string to opposite case
#include<iostream>
using namespace std;
// Function to convert characters
// of a string to opposite case
void convertOpposite(string &str)
{
int ln = str.length();
// Conversion according to ASCII values
for (int i=0; i<ln; i++)
{
if (str[i]>='a' && str[i]<='z')
//Convert lowercase to uppercase
str[i] = str[i] - 32;
else if(str[i]>='A' && str[i]<='Z')
//Convert uppercase to lowercase
str[i] = str[i] + 32;
}
}
// Driver function
int main()
{
string str = "GeEkSfOrGeEkS";
// Calling the Function
convertOpposite(str);
cout << str;
return 0;
}
Explanation:
The thing that happens if you type a number instead of a word in the given code is: The number is printed
This is because the code already assigned a variable to the input and it accepts both numbers and alphanumeric keys because it is an integer command.
<h3>What is Coding?</h3>
This refers to the use of programming that is used to give instructions to a computer system
Hence, we can see that The thing that happens if you type a number instead of a word in the given code is: The number is printed
This is because the code already assigned a variable to the input and it accepts both numbers and alphanumeric keys because it is an integer command.
Read more about coding here:
brainly.com/question/16397886
#SPJ1