Answer:
I think it the first one
Explanation:
When a loop executes, the structure-controlling condition is ______________. Group of answer choices tested only if it is true, and not asked if it is false tested exactly once tested either before or after the loop body executes never tested more than once
Answer:
tested either before or after the loop body executes
Explanation:
When a loop executes, the structure-controlling condition is "tested either before or after the loop body executes."
This is evident in the fact that during loop execution, the control structure moves across the statements subsequently, should the statement be true, the loop execution continues until it becomes false, then the loop terminates.
When a loop executes, the structure-controlling condition is tested either before or after the loop body executes which is the third option as in programming, loops are used to repeat a certain block .
When the loop is encountered, the structure-controlling condition is evaluated once at the beginning of each iteration, and if the condition is true, then the loop body is executed. If the condition is false, the loop is exited, and the program execution continues with the next statement following the loop, and the key characteristic is that the structure-controlling condition is tested exactly once per iteration.
Learn more about the loop here.
https://brainly.com/question/20344495
#SPJ6
What do you think are the downside of this trend if we want to secure proper information dissemination
Answer:
Information is often disseminated in order to educate, explain or promote a concept, process or principle. ... The following are considered to be the main objectives of disseminating information in the TAP. a)Promote results. TAP has to ensure a wide dissemination of its projects' results of activities.Interpretation becomes easier when the evolution and statistical trend of this indicator is ... No matter the age of the learner, one must cons. ... DOE shall disseminate to the public, in an appropriate manner, information.
This question involves a simulation of a two-player game. In the game, two simulated players each start out with an equal number of coins. In each round, each player chooses to spend either 1, 2, or 3 coins. Coins are then awarded to each player according to the following rules.
Same rule: If both players spend the same number of coins, player 2 gains 1 coin.
Off-by-one rule: If the players do not spend the same number of coins and the positive difference between the number of coins spent by the two players is 1, player 2 is awarded 1 coin.
Off-by-two rule: If the players do not spend the same number of coins and the positive difference between the number of coins spent by the two players is 2, player 1 is awarded 2 coins.
The game ends when the specified number of rounds have been played or when a player’s coin count is less than 3 at the end of a round.
The CoinGame class is shown below. You will write two methods in the CoinGame class.
public class CoinGame
{
private int startingCoins; // starting number of coins
private int maxRounds; // maximum number of rounds played
public CoinGame(int s, int r)
{
startingCoins = s;
maxRounds = r;
}
/** Returns the number of coins (1, 2, or 3) that player 1 will spend.
*/
public int getPlayer1Move()
{
/* implementation not shown. */
}
/** Returns the number of coins (1, 2, or 3) that player 2 will spend, as described in part (a).
*/
public int getPlayer2Move(int round)
{
/* to be implemented in part (a) */
}
/** Plays a simulated game between two players, as described in part (b).
*/
public void playGame()
{
/* to be implemented in part (b) */
}
}
In the simulation, player 2 will always play according to the same strategy. The number of coins player 2 spends is based on what round it is, as described below.
(a) You will write method getPlayer2Move, which returns the number of coins that player 2 will spend in a given round of the game. In the first round of the game, the parameter round has the value 1, in the second round of the game, it has the value 2, and so on. The method returns 1, 2, or 3 based on the following rules.
If round is divisible by 3, then return 3.
If round is not divisible by 3 but is divisible by 2, then return 2.
If round is not divisible by 3 and is not divisible by 2, then return 1.
Complete method getPlayer2Move below by assigning the correct value to result to be returned.
/** Returns the number of coins (1, 2, or 3) that player 2 will spend, as described in part (a).
*/
public int getPlayer2Move(int round)
{
int result;
return result;
}
Write the method playGame, which simulates a game between player 1 and player 2, based on the rules and example shown at the beginning of the question. Both player 1 and player 2 start the game with startingCoins coins. Computer player 1 spends 1, 2, or 3 coins based on the value returned by the method getPlayer1Move(). Computer player 2 spends 1, 2, or 3 coins based on the value returned by the method getPlayer2Move().
The game ends when maxRounds rounds have been played or when a player’s coin count is less than 3 at the end of a round.
At the end of the game, the winner is determined according to the following rules.
If both players have the same number of coins at the end of the game, the method prints "tie game".
If player 1 has more coins than player 2, the method prints "player 1 wins".
If player 2 has more coins than player 1, the method prints "player 2 wins".
(b) Assume that getPlayer2Move works as specified, regardless of what you wrote in part (a) . You must use getPlayer1Move and getPlayer2Move appropriately to receive full credit.
Complete method playGame below.
/** Plays a simulated game between two players, as described in part (b).
*/
public void playGame()
[A] Let's simplify the getPlayer2Move rules first.
If round is divisible by 3, then return 3if a number is divisible by another number that means the remainder of the division is 0. We can write the code as follows:
if (round%3 == 0)
result = 3;
If round is not divisible by 3 but is divisible by 2, then return 2.Same as the previous one, we are going to use the remainder operation. We can use an else-if condition here.
else if (round%2 == 0)
result = 2;
If round is not divisible by 3 and is not divisible by 2, then return 1.An else would work fine here.
else
result = 1;
The full code of part A is attached below.
[B]
playGame method:
Let's have a quick look at the game rules first:
If both players spend the same number of coins, player 2 gains 1 coin.This can be translated to if player1Spending == player2Spending, then player2 gets a coin.
If the players do not spend the same number of coins and the positive difference between the number of coins spent by the two players is 1, player 2 is awarded 1 coin.If the absolute value of (player1Spending - player2Spending == 1) then player2 gets awarded.
If the players do not spend the same number of coins and the positive difference between the number of coins spent by the two players is 2, player 1 is awarded 2 coins.We can either use an else statement or a separate conditional statement here, but I'll go for the else statement.
We can use a while loop to detect when the game ends, either a player's coins is less than 3 OR when the maxRounds have been played.
how do you change your snap c hat name plz?
Answer:
You can't change your username but you can change your name.
Explanation:
Tap on the friend's name you'd like to change. Tap on the settings icon that appears next to their name off to the right. Tap on Edit Name in the popup menu. Type in the name you'd like to appear when this person communicates with you.
What's your favorite movie or book
Mine are: the fault in our stars(book),and Love Simon(movie)
Answer:
preety much any movie with a camaro in it aside from harry potter XD
Explanation:
Answer:
My answer probably The Hunger Games and the Spongebob Movie
Explanation:
They're nice also Warriors
You manage a network that uses switches. In the lobby of your building, there are three RJ45 ports connected to a switch. You want to make sure that visitors cannot plug their computers into the free network jacks and connect to the network. But employees who plug into those same jacks should be able to connect to the network. What feature should you configure
Answer:
Port authentication
Explanation:
A port authentication enables the configuration of a parameters of the ports to connect to the network. When the ports are in the Force Authorized state, only some configuration changes are possible.
In the context, I want to configure the port authentication so as to make sure that the people who visited the building and wants to plug in the switch should connect to the network and not the free networks. An d also the employees who plug in the same jack should also connect to the same network.
Write a C++ program that displays the tariff charges for reaching different destinations by bus. Show a list of five destinations • Get the input for the destination from the user and depending on that display the fare of destination station • Give a brief description of the chosen destination (Min 5 statements; use numbering) • If the user gives a wrong input, display an error message
Answer:
#include <iostream>
#include <map>
using namespace std;
int main(){
map<string, double> destination;
string search;
char isEnd = 'n';
while (isEnd == 'n'){
string dest;
double tarrif;
cout<<"Enter destination: ";
cin>> dest;
cout<<"Enter tarrif: ";
cin>> tarrif;
destination.insert(pair<string, double>(dest, tarrif));
cout<<"Do you want to add more locations? y/n: ";
cin>> isEnd;
}
cout<<"Enter a search term: ";
cin>>search;
auto iter= destination.find(search);
cout<< "The tariff for "<<iter->first<<" is: "<<iter->second;
}
Explanation:
The C++ source code provides the input prompt to fill the map data structure "destination". The structure contains data of mapped locations and tariffs. The program also prompts user to search for the tariff of their desired location, if the location is in the map, the tarrif is given else an error message is displayed.
Consider Emily's balance statement:
a) Emily's supervisor asked her to revise the balance statement. What does she need to revise? Why?
Answer: The purpose of a balance sheet is to give interested parties an idea of the company's financial position, in addition to displaying what the company owns and owes.
Explanation:
Which of these words is used to begin a conditional statement?
when
input
if
until
Answer:
'if'
Explanation:
The if word is used in an if-statement (a type of conditional statement) that allows the computer to do certain computations based on what the conditional statement evaluates to.
Hope this helps :)
Q13. On which option do you click to
access 'Insert' and 'Delete' option ?
Formulas - cells
Ο Ο.
Page Layout - cells
Home - cells
o
All of these
Answer:
The answer is "Home cells Or Home Tab".
Explanation:
The Excel Home Tab is also known as the home cell, it also is used to execute the standard commands like bold, highlight, copy/paste. It also uses templates in a worksheet for cells, which is used to Insert and Delete Cells, and the wrong cell can be defined as follows:
In choice Formulas cell or Tab it is used to add the formula, that's why it is wrong.On the choice page cell or Tab is used to view the data, that's why it is wrong.-(PROJECT: SHADOW_ACTIVATED.)-
Answer:
OH NO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Explanation:
WE'RE GONNA DIE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
(?_?) o_O O_o (¯(●●)¯)
Does anyone know where i could watch the move
“little house: look back to yesterday” i cant find it ANYWHERE!!!!
Answer:
AMC Rosemary Square 12 and Apple The Gardens Mall and Muvico Theaters Automatic Ticketing and Rosemary Square and Apple Wellington Green and Walmart Supercenter
Explanation:
Consider a scenario in which you are trying to communicate to your parents that you should have a later curfew. Write a dialogue between you and your parent(s) detailing this conversation. Keep in mind the principles of communication.
Explanation:
In this example, the scenario will be the fact that I have started high school. I believe that because of this, my curfew should be different. This is an example of a dialogue that would discuss this
Me: I need a later curfew I have so much things to do and don't have time to do what I want , i am 16 now.
Mom: no you need to go to bed early so you can do what you need not what you want.
Me:ok , make you happy for now but if you don't let me now I'm going to later this will cause experiences that I have never encountered later in life that I could know about sooner but couldn't because i was restricted and when I have less common sense then everyone when I'm older it's your fault
12. Which of the following
are effective components of
good feedback?
Detailed and time consuming
O Direct and honest
o specific
O Band C both answers
Answer:
Concept: Engineering Principles & Ethics
To give good feedback you must address characteristic that are reflective of the group assignment Hence it must be Direct, honest, and specific.Avoid being general, beating around the bush and providing half honest answers as it doesn't help the other person grow as a effective leader.Carmina works at a fast-food restaurant. During the slow afternoon hours, Carmina always find projects to keep her busy, like washing all the trays or deep-cleaning the drive-thru area. What workplace habit does Carmina show by doing this?
Answer:
This shows that Carmina knows how to manage her time, also called time management, and she took the initiative to do the jobs, even though she didn't have to.
Which of the following would you use to search a table in Excel?
1Points
A
Decenter
B
Merge
C
Find and Select
D
Clear Rules
Answer:
Which function would you use if you wanted to count the number of values, but ignore the cells that have text or are empty
Which function would you use if you wanted to count the number of values, but ignore the cells that have text or are emptya COUNT
Which function would you use if you wanted to count the number of values, but ignore the cells that have text or are emptya COUNTb. COUNTA
Which function would you use if you wanted to count the number of values, but ignore the cells that have text or are emptya COUNTb. COUNTAc. COUNTBLANK
Which function would you use if you wanted to count the number of values, but ignore the cells that have text or are emptya COUNTb. COUNTAc. COUNTBLANKd. COUNTVALUES
Answer:
C. Find And Select
Explanation:
I hope this help you
Which of the following types of copyright license is most appropriate if you create a graphic and would like to share it with anyone for any purpose as long as you receive credit?
A. All Rights Reserved
B. Public Domain
C. Some Rights Reserved: Attribution
D. Some Rights Reserved: Share Alike
Can someone help me out with this? Thanks!
Answer:
C is the correct answer:)
Explanation:
The most appropriate type of copyright license for the described scenario would be Some Rights Reserved: Attribution. The correct option is C.
What is copyright license?A copyright license is a legal agreement between the copyright holder and someone who wants to use the copyrighted material.
This licence allows others to use and distribute the graphic as long as the original creator is credited. It is a type of Creative Commons licence in which some rights are granted to others while others are reserved for the original creator.
This option is ideal if you want to share your work with others while maintaining control and receiving credit for it.
Option B, Public Domain, allows anyone to use the graphic for any purpose without attribution, whereas Option D, Some Rights Reserved: Share Alike, requires others to share derivative works under the same licence terms.
Option A, All Rights Reserved, would prohibit others from using the graphic without the creator's explicit permission.
Thus, the correct option is C.
For more details regarding copyright license, visit:
https://brainly.com/question/30696317
#SPJ2
How can you refer to additional information while giving a presentation?
Is there a bridge connecting WAN to LAN?
Explanation:
→No,•A bridge connect two LANs that are using same protocol (ethernet or token ring) and same network like 192.168. 1.0/24 (very important). Similar devices used for this purpose are hubs, and switches. For WAN and LAN connectivity, you need router...
It's a correct answer√√
Kindly mark as brainliest answer
Write a program that for a string that contains multiple sentences, should try that string
so that after each point a new line should start with a new sentence
Answer:
Used code:-python
Explanation:
def change_char(str1):
char = str1[0]
str1 = str1.replace(char, '$')
str1 = char + str1[1:]
return str1
print(change_char('restart'))
Write a function that prompts the user to enter the speed of a vehicle. If speed is less than 20, display too slow; if speed is greater than 80, display too fast; otherwise, display just right
The code of the given problem is given below :
#include<iostream>
using namespace std;
void print( float speed ){
if(speed < 20 )
{
cout<<"too slow\n";
}
else if(speed > 80 )
{
cout<<"too fast\n";
}
else{
cout<<"right\n";
}
}
int main()
{
print( 18.6 );
print( 45 );
print( 100 );
return 0;
}
Cheri's teacher asked her to write a program using the input() function. What will this allow her program to do?
Answer:
See explanation
Explanation:
Irrespective of the programming language, the input() function will allow Cheri's program to be able to accept user input.
Take for instance, the programming language is python, an expample of how the input function can be used is:
userinput = input("Enter a word: ")
The above instruction will allow her program to accept a string value.
The input() function can be used alongside different variable types.
Answer:
give the other guy brainliest
Explanation:
development of smart phone
Answer:
The first smartphone, created by IBM, was invented in 1992 and released for purchase in 1994. It was called the Simon Personal Communicator (SPC). While not very compact and sleek, the device still featured several elements that became staples to every smartphone that followed.
Order the steps for using the Rules Wizard to create an email rule.
Select the Home tab, and
click Rules button.
Click New Rule, and select Make any exceptions, and
a template.
name the rule.
Edit a description of the
rule by adding values.
Select Manage Rules and
Alerts
To use the Rules Wizard to create an email rule, you can follow these steps:
Select the Home tab and click the Rules button.Click New Rule and select a template.Edit a description of the rule by adding values and making any exceptions.Name the rule.Select Manage Rules and Alerts to save the rule.What is the email rule about?Below is the process in a more detailed form:
Open your email client and go to the Home tab.Click the Rules button, which is usually located in the Move section of the ribbon.In the Rules dialog box, click the New Rule button.In the Rules Wizard, choose a template that best fits your needs. You can also choose to create a custom rule by selecting "Start from a blank rule."Follow the prompts in the wizard to specify the conditions and actions for the rule. You can specify values and exceptions, such as the sender or recipient of the email, or the subject of the email.Give the rule a name and click Finish to save the rule.Therefore, To manage your rules, click the Manage Rules & Alerts button in the Rules dialog box. From here, you can edit or delete existing rules, or create new ones.
Learn more about email rule from
https://brainly.com/question/4783467
#SPJ1
Match the component to its function. resistor inductor capacitor battery transistor This component stores a temporary charge. arrowRight This component stores electric energy in the form of a magnetic field. arrowRight This component prevents components from overheating. arrowRight This component produces electricity by converting chemical energy into electric energy. arrowRight The voltage applied to the base can control the current that flows across the emitter and collector. arrowRight
Answer:
1. Capacitor.
2. Inductor.
3. Resistor.
4. Battery.
5. Transistor.
Explanation:
1. Capacitor: this component stores a temporary charge.
2. Inductor: this component stores electric energy in the form of a magnetic field.
3. Resistor: this component prevents components from overheating.
4. Battery: this component produces electricity by converting chemical energy into electric energy.
5. Transistor: the voltage applied to the base can control the current that flows across the emitter and collector.
Answer:
He's right you know the person above me.
Explanation:
What responds to both visual appeal and functional needs? (1 point) A.) applied art B.) performance art C.) fine art D.) visual art
Answer:
A.) artes aplicadas
Explanation:
How will you search for your preferred data in a long list by applying filtering. In MCS exel
21
Drag each tile to the correct box.
Match the top-level domains to the website descriptions
.com
.gov
.mil
.org
a website that sells computer hardware to large organizations
a website operated by the state of California
>
the website of the US Coast Guard
the website of a group of individuals who work toward protecting gray wolves
>
Reset
Next
Answer:
A website that sells computer hardware to large organizations --> .com
A website operated by the state of California --> .gov
The website of the US Coast Guard --> .mil
The website of a group of individuals who work toward protecting gray wolves --> .org
Explanation: I took the test and got it right ;)
A website that sells computer hardware to large organizations --> .com. A website operated by the state of California --> .gov. The website of the US Coast Guard --> .mil. The website of a group of individuals who work toward protecting gray wolves --> .org
What is the government website?The government website is the official US government website and is used for a domain name that is based on the word government. It is administrated by the cyber security and infrastructure security agency.
It is sponsored top level domain and only the US government is federal govt uses such websites.a website that sells computer hardware to large organizations a website operated by the state of California.
The website of the US Coast Guard the website of a group of individuals who work toward protecting gray wolves. a website that sells computer hardware to large organizations a website operated by the state of California.
Therefore, A website that sells computer hardware to large organizations --> .com. A website operated by the state of California --> .gov. The website of the US Coast Guard --> .mil. The website of a group of individuals who work toward protecting gray wolves --> .org
Find out more information about the driver's license on:
brainly.com/question/13112961
#SPJ2
You have verified that all your wireless settings are correct. What is most likely the problem if your laptop has recently been serviced and wireless connectivity has stopped working?
Answer:
The wireless (Wi-Fi) antenna connector is not connected properly.
Explanation:
In this scenario, you have verified that all your wireless settings on your network device such as a router, access point, switch and laptop are correct. Thus, what is most likely the problem if your laptop has recently been serviced and wireless connectivity has stopped working is that, the wireless (Wi-Fi) antenna connector is not connected properly.
A wireless (Wi-Fi) antenna connector refers to a coaxial cable connector installed on a laptop so as to enable it to receive nearby radio frequency (RF) signals in order to successfully establish a network connection. Thus, when it is not installed properly, wireless connection on the laptop would not be available.
what mode do you use to extract split or reshape your red Builder brush
Answer:
what the hell is a red builder brush???