which statement allows you to properly check the char variable code to determine whether it is equal to a c, and then output this is a check?

Answers

Answer 1

"This is a check," cout (if (code=='C'));

(if (code=='C')

cout<< "This is a check\n";)

What clause determines the program's branching by using the value of a variable or expression?

Where the program branches depends on the value of a variable or an expression, which is handled by the switch statement. In place of lengthy if statements, switch case statements are used. The switch statement uses multiple ways to branch.

What operators are utilized to determine whether a value or variable is a part of a sequence or not?

Check whether a value is present in a sequence using the "in" operator. Whether a variable is found in the given sequence will determine whether the evaluation is true or false.

To know more about operator visit :-

https://brainly.com/question/29696241

#SPJ4


Related Questions

what is a method of delivering ads from one central source, or server, across multiple web domains, allowing advertisers the ability to manage the rotation and distribution of their advertisements?

Answers

Third-party ad servers allow advertisers to control the rotation and distribution of their adverts by distributing them from a single central source, or server, across a number of different web domains.

A servers in computing is a piece of hardware or software (computer program) that offers functionality to other programs or devices, often known as "clients." The client-server model is the name given to this architecture. The functions that servers can offer are frequently referred to as "services," such as executing computation for a client or distributing data or resources among several clients. A single client can use several servers, and a single server can serve many different clients. A client process may operate on the same device or it may establish a network connection with a server running on a different device. Database servers, file servers, mail servers, print servers, web servers, game servers, and application servers are examples of typical servers.

The request-response model is typically the one that implements client-server systems the most frequently (and is generally associated with it).

Learn more about servers here:

https://brainly.com/question/3211240

#SPJ4

when a support staff selects general office productivity software such as word processors or spreadsheets, they often use which decision strategy?

Answers

Application software used for producing information is known as productivity software. Although its reach is now broader, its moniker originated from its increased productivity, particularly of individual office workers who transitioned from typists to knowledge workers.

What sort of productivity software comes to mind?A benchmark test should, whenever possible, be free of extraneous variables that can skew the results.Word processors, spreadsheet programs, graphics software, and database management systems (DBMS) are examples of common productivity software.Application software used for producing information is known as productivity software. Although its reach is now broader, its moniker originated from its increased productivity, particularly of individual office workers who transitioned from typists to knowledge workers.    

To learn more about Productivity software refer to:

https://brainly.com/question/28207092

#SPJ4

What type of restaurant are you headed to?
Italian
Caribbean
Chinese

Answers

I'm headed to an Italian restaurant because I love Italian cuisine and I'm in the mood for some delicious pasta dishes.

The type of restaurant that you are headed to is the Italian restaurant. Thus, the correct option for this question is A.

What are Italian restaurants famous for?

Italian cuisine is popular because it's delicious, authentic, and healthy. Its traditional recipes have been passed down through generations to become staples in this type of Cuisine.

In Italian restaurants, meals are made using fresh produce, from herbs and vegetables to meats. There are no artificial ingredients or processed food; an Italian meal is made from scratch. It includes Pizza, Pasta, Risotto, Spaghetti carbonara, Polenta and cured meats, seafood, etc.

Therefore, the type of restaurant that you are headed to is an Italian restaurant. Thus, the correct option for this question is A.

To learn more about Italian restaurants, refer to the link:

https://brainly.com/question/10166291

#SPJ2

hashim's windows 10 computer has slowed down and is not working as well as it once did. what can he do to reset his system without deleting any personal files or changing any settings?

Answers

He can refresh your computer on Windows 8 or later, all user files and settings are preserved but Windows is rebuilt.

When you reset your computer, Windows is installed from scratch and all apps, programs, user files, and settings are removed. When a program is active or inactive and operating on a computer, it requires varying quantities of memory. The application's packaging or website lists the least and recommended amount of memory that a machine should have in order to run the program. The program uses different amounts of memory depending on how it is used, though. The steps below can be used to find out how much memory a program is using right now.

You can see a list of all currently active processes together with their memory usage on the Processes page, as demonstrated in the sample image above. The highlighted firefox.exe, for instance, is consuming more than 1 GB of memory.

Know more about Windows here:

https://brainly.com/question/13502522

#SPJ4

Complete the sentence.

Career and technology student organizations hold events to raise money for a charity. This is called __________

O conference
O competition
O networking
O philanthropy

Answers

The answers is D. Philanthropy

what does error massage wordpress mean unexpected response from the server. the file may have been uploaded successfully. check in the media library or reload the page?

Answers

Wordpress error messages indicate an unexpected server response, therefore you should check your media library or load the page. Carefully review the file visitors are uploading.

What do servers and examples mean?

any server, network machine, programme, or apparatus that responds to requests from clients (see client-server architecture).

For instance, a Web server on the Web seems to be a computer that utilises the Web service to transfer Website content to an user ’s pc in response to a client request.

Why are servers used?

A server sends, gathers, and stores data. In general, it "serves" another purpose via providing services. One or more services may be offered via a server, which can be a computer, software application, or even a disk array.

To know more about Server visit :

https://brainly.com/question/3211240

#SPJ1

adding one disk to the towers of hanoi problem doubles the number of disk moves required to solve it. group of answer choices true false

Answers

False; (2n -1) is formula for adding one disk to the towers of Hanoi problem doubles the number of disk moves.

Towers of Hanoi has an exponential complexity of 2n - 1, meaning that when n goes up by 1, there are twice as many moves, or an exponential increase in complexity. The Towers of Hanoi solution calls for utilizing the prior technique twice plus an additional move. It only needs one move to be solved for one disk. It requires utilizing the answer for 1 disk twice plus 1, or 1 move + 1 move + 1 move, which is 3 moves, to solve it for 2 disks. In the equation 2n - 1, where n is the number of disks, we can express this. If (n > 0) is initially true, it will continue to be true because in the recursive scenario, the method calls itself with the same parameter. As a result, n does not change.

Learn more about Towers of Hanoi  here:

https://brainly.com/question/28097481

#SPJ4

Which of the following is considered true regarding the future of technology?

It is constantly changing.
It will cause communication to decrease across the globe.
Only programmers will work in the computer science industry.
The modern workplace will remain the same.

Answers

Answer:

Explanation:

In the future, the most high-value work will be cognitive in nature. Employees will have to apply creativity, critical thinking and constant digital upskilling to solve complex problems. The digital economy demands new ideas, information and business models that continually expand, combine and shift into new ventures

what is the generic term for the user interface to an os that accepts commands and displays error messages and other screen output

Answers

The generic term for the user interface to an operating system that accepts commands and displays error messages and other screen output is a command-line interface (CLI). This type of interface allows users to enter commands using a keyboard, and the system responds by executing the appropriate actions and displaying the output on the screen.

A CLI is often used for advanced tasks or for interacting with the operating system in a more direct and precise way than is possible with a graphical user interface (GUI). A CLI is often used for advanced tasks or for interacting with the operating system in a more direct and precise way than is possible with a graphical user interface (GUI). Some examples of popular CLI-based operating systems include Unix and Linux.

Learn more about  command-line interface (CLI), here https://brainly.com/question/29737808

#SPJ4

a system compromise prompts the it department to harden all systems. the technicians look to block communications to potential command and control servers. which solutions apply to working with egress filtering

Answers

Correlation The IT department hardens all systems in response to a compromised system.

Communication to prospective command and control servers is something that the technicians try to block. 1. Rsyslog is the appropriate response. A software program known as a "packet sniffer" can be used to capture all network packets that are sent over a specific collision domain by using a network adapter card in promiscuous mode, which transmits all packets received on the physical network cable to an application for processing. Sniffers are a genuine tool used in networks today to assist with traffic analysis and troubleshooting. Nevertheless, due to the fact that many network apps send data in clear text (Telnet, File Transfer Protocol [FTP], Simple Message Transfer Protocol [SMTP], Post Office Protocol [POP3], and so on).

Learn more about protocol here-

https://brainly.com/question/27581708

#SPJ4

the first-fit memory allocation algorithm is slower than the best-fit algorithm (on average). select one: true false

Answers

It is false that the first-fit memory allocation algorithm is slower than the best-fit algorithm (on average).

The operating system must maintain a list of each memory location, noting which ones are free and which ones are busy, for both fixed and dynamic memory allocation schemes. The available partitions must then be assigned as new workloads are added to the system.

Allocating Memory First-Fit:

The free/busy list of tasks is maintained using this strategy, which maintains low-ordered to high-ordered memory organization. This method assigns the first work the first memory space that is greater than or equal to its size. Instead of looking for a suitable partition, the operating system simply assigns the task to the closest memory partition that is large enough.

Know more about operating system here:

https://brainly.com/question/6689423

#SPJ4

what devices would you use to interface a 16-bit binary number to a serial-in serial-out shift register at the input and output of the register?

Answers

At the input and output of the shift register, devices are used to interface a 16-bit binary number.

Here, a 16-bit binary number is converted to a serial in-serial-out shift register. For this design, we must utilize 16 74LS76JK flip-flop stages, NAND gates for any necessary inverters, and a signal with a 1Hz frequency.

Additionally, to manually shift the bits into the subsequent device, a switch is typically used to manually flip the input of the shift register. Examine the Shift Register's output waveform using a digital oscilloscope.

This is an N-bit flip flop with N stages because we need 16 bits, thus we added 16 stages as seen in the above diagram.

Typically, "0" (zero) and "1" are the only two symbols used in the binary numeral system, which is used to express numbers, to create binary numbers (one). The base-2 number system uses a positional notation with a 2 radix.

Learn more about binary number here:

https://brainly.com/question/24736502

#SPJ4

Social-networking sites have a history of providing tight security and giving users a clear understanding of how security features work. t or f

Answers

Social-networking sites have a history of providing tight security and giving users a clear understanding of how security features work. (False)

What is a Social-networking site?

An online platform known as a social networking site enables users to make a public profile and communicate with other users. Social networking sites typically let new users submit a list of people they have connections with, and those people can then confirm or deny the connection.

The new user can search the networks of connections once connections have been made in order to establish new connections.

An online platform known as a social networking site enables users to make a public profile and communicate with other users. Social networking sites typically let new users list the people they have connections with, and those people can then confirm or deny the connection.

Learn more about social network

https://brainly.com/question/1272492

#SPJ4

Which combination of options is the keyboard shortcut to access the find dialog box and search a worksheet for particular values? ctrl h ctrl r ctrl f ctrl e

Answers

Ctrl + F With the help of this shortcut, you may search for and replace a certain value in your worksheet with another value using the Find and Replace dialogue box.

What is shortcut key ?A keyboard shortcut, sometimes referred to as a hotkey, is a sequence of one or more keys used in computers to quickly launch a software application or carry out a preprogrammed operation.Depending on the programme developer, the word "keyboard shortcut" may have several meanings. Hotkeys in Windows are a particular key combination that are used to start an activity; mnemonics stand for a certain letter in a menu command or toolbar button that, when pressed along with the Alt key, activates that command.Although the phrase is typically used to refer to computer keyboards, many modern electronic musical instruments are equipped with keyboards that have sophisticated setting possibilities.

To learn more about shortcut key refer :

https://brainly.com/question/28959274

#SPJ4

which feature of internet technology has had the most effect in the internet's rapid spread across the globe?

Answers

The correct answer is E-commerce technology is available everywhere and anytime.

the substantial portion of the Internet that is not searchable using standard search engines. the area of the Internet that employs disguised IP addresses, is inaccessible without a certain web browser, and is purposefully concealed from search engines. The deep web includes the dark web. Online shopping is known as business-to-consumer (B2C) e-commerce. It occurs when companies offer goods, services, or information to customers directly. The most effective ways to solve problems or achieve a business goal regularly and consistently are known as best practices in a certain sector. A firewall is a piece of software or firmware that guards against unwanted network access. To find and stop threats, it examines incoming and outgoing communications using a set of criteria.

To learn more about E-commerce technology click the link below:

brainly.com/question/28192654

#SPJ4

when the size of an array increases by a factor of 100, the selection sorting time increases by a factor of

Answers

The correct answer is 2,000 the size of an array increases by a factor of 100.

An array is a collection of comparable types of data. For instance, if we need to store the names of 100 distinct people, we may construct an array of the string type that can carry 100 names. string collection = new In this instance, the array above can only contain 100 names. An array is a collection of elements with the same kind that are kept in contiguous memory areas and may be referenced to individually using an index to a unique identifier. Declaring an array of five int values eliminates the need to declare five different variables (each with its own identifier).

To learn more about array click the link below:

brainly.com/question/13107940

#SPJ4

ategorize each statement as true or false. you are currently in a sorting module. turn off browse mode or quick nav, tab to items, space or enter to pick up, tab to move, space or enter to drop. true false

Answers

The ability to print money is reserved for the federal government. The government lowers the value of money and raises the inflation tax by printing money to pay its debts.

According to the Constitution, only the federal government has the authority to print money. This guarantees that there is a stable medium of exchange in every state, enabling unhindered trade in goods and services between them.

The value of the currency falls when the government produces money to pay off its debt because there is a greater supply of money than there is demand for it. As a result, the currency will only be able to purchase a smaller quantity than it could previously, producing a form of inflation tax because individuals will have to pay more to buy goods and services.

Know more about print here:

https://brainly.com/question/14668983

#SPJ4

in a factorial design with two independent variables, researchers would need to review one – and two – . if each independent variable has two levels, this design would also yield four – , which are the averages of each level of an independent variable across all levels of the other independent variable.

Answers

In a factorial design with two independent variables, researchers will need to review one interaction effect & two main effects. This design will also yield four marginal means, which are averages of each level of the independent variable collapsed across the levels of  other independent variable.

What is an independent variables?

In statistical modeling, experimental sciences, and mathematical modeling, independent variables are variables. Dependent variables are so-called because, during an experiment, their values are examined under the presumption or requirement that they do so in accordance with some law or rule (for example, a mathematical function) governing the values of other variables.

In turn, independent variables are not perceived in the context of the experiment in question as depending on any other variable. In this sense, common independent variables include time, space, density, mass, fluid flow rate, and previous values of some observed value of interest (such as the size of the human population) (the dependent variable).

Learn more about independent variables

https://brainly.com/question/25223322

#SPJ4

the following claim is true or false? data normalization is important in preprocessing step, it is used to rescale values to fit in a specific range to assure better convergence during backpropagatio

Answers

True, Data normalization is crucial for the preprocessing stage since it allows values to be rescaled to fit inside a certain range, ensuring improved convergence during backpropagation.

A sequence of one or more symbols is referred to as data in computer science, and a single symbol is referred to as a datum. Data can be used in singular, plural, or mass noun forms. To become information, data must be interpreted. Digital data, as opposed to analogue data, is data that is represented using the binary number system of ones (1) and zeros (0). All data is digital in contemporary (post-1960) computer systems.

There are three different states of data: at rest, in transit, and in use. In most circumstances, parallel data passes throughout a computer. In most circumstances, data that is being sent to or from a computer is serial data. An analog-to-digital converter can be used to convert data from an analogue device, such as a temperature sensor, to digital format.

Learn more about Data here:

https://brainly.com/question/21927058

#SPJ4

write a main function that removes all the occurrences of a specified string from a text file. your program should prompt the user to enter a filename and a string to be removed.

Answers

The above question is done in Python program.

filename = input("Enter file name: ")

rm-word = input("Enter w.ord t.o remove from file.: ")

with open(filename, "r") as file:

 mytext = file.read().strip()

 replace_word = mytext.replace(rm_word, "")

 print(replace_word)

Python program is frequently used to create websites and applications, automate tasks, analyze data, and visualize data. Many non-programmers, including accountants and scientists, have switched to Python since it's very simple to learn and useful for a range of daily chores like managing finances. The user is prompted to provide the file name and the string word to remove from the text by the Python application. By using the 'with' keyword to open the file, the text is read as a string without any white space at the beginning or end. The target term is eliminated using the' replace' technique on the string..

Learn more about Python program here:

https://brainly.com/question/19792191

#SPJ4

what is the commonly used casting function for casting the pointer to different objects of the classes in an inheritance hierarchy? group of answer choices

Answers

To change pointers or references within an inheritance structure, use a dynamic_cast. The standard casting function for casting the pointer to various objects is static_cast. Use this function for simple type conversions.

An object that stores a memory address is known as a pointer in computer science and is used in many programming languages. Another value stored in computer memory or, in some situations, memory-mapped computer hardware may be the source of this. When a pointer accesses a location in memory, it is known as dereferencing the pointer to retrieve the value that is kept there. A page number in a book's index may be compared to a pointer to the relevant page; dereferencing such a pointer would include turning to the page indicated by the provided page number and reading the text there. Depending on the underlying computer architecture, a pointer variable's actual format and content may differ.

Learn more about pointer here:

https://brainly.com/question/4249926

#SPJ4

write both the iterative and recursive fibonacci functions in assembly code. the values are stored in short datatype.

Answers

Fibonacci functions in assembly language, both iterative and recursive. In short datatype, the values are kept.

both solution methods

#include<iostream>

using namespace std;  /* Fibonacci: recursive version */ int Fibonacci_R(int n) {         if(n<=0) return 0;         else if(n==1) return 1;         else return Fibonacci_R(n-1)+Fibonacci_R(n-2);   }  // iterative version int Fibonacci_I(int n) {         int fib[] = {0,1,1};         for(int i=2; i<=n; i++)         {                 fib[i%3] = fib[(i-1)%3] + fib[(i-2)%3];                 cout << "fib(" << i << ") = " << fib[i%3] << endl;         }         return fib[n%3]; }  int main(void) {   int a;cout << "a = ";         cin>>a;        

// calculate the fib(i) from scratch for each i <= a using your recursive function         cout << endl << "From recursive function" << endl;         for(int i=1; i<=a; ++i)                 cout << "fib(" << i << ") = " << Fibonacci_R(i) << endl;         cout << endl;          // or calculate fib(a) once and output the intermediate results from the looping version         cout << "From iterative function" << endl;         Fibonacci_I(a);          cout << endl;         return 0; }

complexity O(2^n)

A data type, often known as a type, is a collection of potential values and permitted actions in computer science and computer programming. The data type informs the compiler or interpreter of the programmer's intended use. Integer numbers (of various sizes), floating-point numbers (which resemble real numbers), characters, and Booleans are the fundamental data types that are supported by the majority of computer languages. An expression, such as a variable or function, is limited in what values it can have by its data type. The meaning of the data, the operations that may be performed on it, and the methods for storing items of that type are all defined by the data type.

Learn more about datatype here:

https://brainly.com/question/14213941

#SPJ4

how to boot to a local account win 7 open administrator account in windows 7 without password open administrator account in windows 7 without password

Answers

When Windows 7 restarts, hold down the F8 key to reach Advanced Boot Options and gain access to the Administrator account without a password.

What is Administrator account ?An administrator is someone who has the authority to make modifications to a computer that will impact other users. The ability to modify other user accounts, install software and hardware, access all files on the computer, and adjust security settings are all available to administrators.You cannot log on as an administrator if your account type is not Administrator unless you are aware of the user name and password for another account on the computer that has administrative privileges. You can request a change in your account type if you are not an administrator.Special Administrator accounts with an appropriate level of network access should be created to enable users to do administrative activities, and the credentials for these accounts should be provided to the users who occasionally need Administrator access.

To learn more about Administrator account refer :

https://brainly.com/question/28494209

#SPJ4

what are the benefits of using a single sign-on (sso) authentication service? select all that apply.

Answers

One set of credentials for the user, less overhead associated with password assistance, less likely that passwords will be written down, and less time spent re-authenticating to services.

With single sign-on (SSO) authentication, users can securely authenticate with multiple websites and applications using a single set of credentials. The foundation upon which SSO operates is a trust relationship that is established between an application, which is referred to as the service provider, and an identity provider, such as OneLogin. This trust relationship frequently rests on a certificate that is exchanged between the identity provider and the service provider. When identity information is sent from an identity provider to a service provider, this certificate can be used to sign it, ensuring that the service provider is aware that the information comes from a well known source. In SSO, identity data is stored using tokens that contain user-identifying information like an email address or username. Single-sign-on (SSO) authentication is required more than ever before. Almost every website today requires some form of authentication before users can access its features and content. As the number of websites and services increases, a centralized login system is now necessary. We will explore the web execution of SSO verification here. End users can use these services to log into third-party applications with their social media credentials.

To know more about single sign-on (SSO) visit

brainly.com/question/17494582?

#SPJ4

question 1 what does tcpdump do? 1 point generates ddos attack traffic brute forces password databases handles packet injection performs packet capture and analysis

Answers

Carries out packet capture and analysis; tcpdump does this for you by deciphering the binary data included in the packets and translating it into a format that is usable by humans.

You can use the extremely well-liked, simple command-line tool Tcpdump to record and examine packets. The open source libpcap library is utilized by tcpdump. Many packet capture and analysis programs make use of that well-liked packet capture library. The "Disseminated" in DDoS refers to the attack traffic being distributed across a large number of hosts, which causes the attack to originate from several different computers. Attack traffic originates from numerous separate hosts.

Learn more about command here-

https://brainly.com/question/3632568

#SPJ4

Sheila makes the To-Do list below.
To Do:
-Go to stores
Grocery
Clothing
Shoe
-Clean home
Bathrooms
Dust
Vacuum
-Cook dinner
-Send birthday card
She then makes some changes and revises the To-Do
list.
Mark this and return
Which actions did Sheila have to take to make the
changes observed? Check all that apply.
use outline view
promote "To Do" to Level 1
promote four lines to Level 2
export formatting
import formatting
promote six lines to Level 3
convert tables to text
convert tables to graphs
Next
Submit

Answers

The thing that Sheila have to take to make the changes observed are options A, B and C:

promote "To Do" to Level 1promote four lines to Level 2promote six lines to Level 3

What is  revised To-Do list.

A revised To-Do list is a modified version of an original To-Do list. It may include changes such as adding or removing tasks, reordering tasks, or adjusting the formatting of the list.

The revised To-Do list in the example you provided includes changes to the formatting, with some tasks being promoted to different levels in an outline structure.

Therefore, in the above question, the other options listed (use outline view, export formatting, import formatting, convert tables to text, convert tables to graphs) do not seem to be related to the changes observed in the revised To-Do list.

Learn more about To-Do list from

https://brainly.com/question/3795486
#SPJ1

what process allows the restoration of retinal to its original configaration for it to absorb light angain.

Answers

Rods and cones, sometimes referred to as photoreceptors, are a group of light-sensitive cells that are responsible for mapping the light picture on the retina's surface. Light is transformed into electrical impulses by the rods and cones, which are then sent to the brain through nerve fibers.

In humans and other animals, rod and cone cells in the retina of the eye detect light to produce nerve impulses through a sensory transduction process called visual phototransduction. Light sensitivity. To discern items in this backdrop, the eye must quickly adapt to the background lighting due to light adaptation. It takes five minutes for the body to adjust to the light.When rhodopsin levels, which were low due to bleaching in a bright environment, gradually rise, rod cells can become more sensitive to dim light. Rhodopsin regeneration occurs in darkness and is essential for dark adaptation.

To learn more about retina's click the link below:

brainly.com/question/15207568

#SPJ4

mobile apps are becoming more popular. what are the circumstances that a company should introduce an app?

Answers

Smartphone users now have easier access to all of these things and more. The Internet of Things has provided consumers with a better and easier method to do tasks, together with the most recent advancements in mobile app development. Users don't need to seek online for daily weather updates or other relevant information.

They may benefit from mobile applications since they can boost referral rates and prospects for repeat business. They can also increase the adoption rates for new goods and services. Mobile apps make it easy for SMBs and their clients to communicate both ways. Your app's exposure and ranks will increase with more favourable user reviews. When users experience a success with your app, such as finishing a task or making a purchase, encourage user evaluations through in-app messaging or follow-up emails. Applications have simplified access for companies at any time and from any location. Some companies do all of their conversions and customer contacts through apps.

To learn more about Smartphone click the link below:

brainly.com/question/14774245

#SPJ4

who developed the python programming language? group of answer choices guido van rossum james gosling bjarne stroustrup yukihiro matsumoto

Answers

Guido van Rossum created Python, which was first released on February 20, 1991. While you may be familiar with the python as a large snake, the Python programming language gets its name from an old BBC television comedy sketch series called Monty Python's Flying Circus.

What is Python in Programming?

Python is the object-oriented as well as high-level programming language with dynamic semantics which is interpreted. Its high-level built-in data structures, combined with dynamic typing and dynamic binding, make it an excellent choice for use as a scripting or glue language to connect existing components.

Python's simple, easy-to-learn syntax emphasizes readability, lowering program maintenance costs. Python provides support for modules and packages, which promotes program modularity and code reuse. Python's interpreter and comprehensive standard library are available for any and all major platforms in source or binary form.

To know more about Python in Programming, visit: https://brainly.com/question/26497128

#SPJ4

complete the code in the active code window below to draw a snowflake of triangles. remember that triangles have 3 sides and you will need to turn 120 degrees (external angle) 3 times to draw the triangle. use the turnamount variable for the single turn after drawing a triangle. how many times did you need to run the outer loop to go all the way around? try changing the turnamount variable to 40 to see how many times you need to loop with a wider distance between the triangles.

Answers

When we (or the computer) know exactly how many times to run a section of code, we use a for loop instead of the "while" loop (like shuffling a deck of cards).

How are two for loops used?

If a loop is contained within the body of another loop, it is said to be nested. An illustration of a nested for loop is shown below: / outer loop for (int I = 1; I = 5; I / codes / inner loop for(int j = 1; j = 2; ++j) / codes. In this case, a for loop is used inside of another for loop.

What distinguishes a for loop from a while loop?

When comparing for loop and the while loop, the main distinction is that for loop is utilised when the number of iterations.

To know more about Loop visit:-

https://brainly.com/question/14390367

#SPJ4

Other Questions
which insurance protects you if you are injured by a hit- and-run driver or a driver who has no way to pay costs? What is the equation of the line to get the tie fighter? We need a small amount of sodium to keep heathy.Too much sodium can cause health problems.Salt is made from sodium and chloride. Explain the relationship between a healthy body and too much salt. Your essay will be about the lives of African Americans during Reconstruction. Your essay shouldBe 4-5 paragraphs in length.Describe the political and economic circumstances of former enslaved people during Reconstruction.Feel free to use the work you did in your History Journal to help with your essay. Review the lesson content. In your essay you should support your points using evidence from the lesson and the material you just read. find the foci and vertices of x^2/2 +y^2/8 =1 in fig. 12-35, horizontal scaf- fold 2, with uniform mass m2 30.0 kg and length l2 2.00 m, hangs from horizontal scaffold 1, with uni- form mass m1 50.0 kg. a 20.0 kg box of nails lies on scaffold 2, centered at distance d 0.500 m from the left end. what is the tension t in the cable indicated? an article in neurology (1998, vol. 50, pp. 1246-1252) discussed that monozygotic twins share numerous physical, psychological, and pathological traits. the investigators measured an intelligence score of 10 pairs of twins, and the data follow: pair birth order: 1 (first) birth order: 2 (second) 1 6.08 5.73 2 6.22 5.80 3 7.99 8.42 4 7.44 6.84 5 6.48 6.43 6 7.99 8.76 7 6.32 6.32 8 7.60 7.62 9 6.03 6.59 10 7.52 7.67 (a) State the appropriate hypotheses. (b) Create a Paired- T test at =0.05 in Minitab and find the P-value. Do you reject the null? 2. A local manufacturing firm produces four different metal products, each of which must be machined, polished and assembled. the specific times requirements ( in hours) for each products are as follows Machining hours Polishing hours Assembling hours Product I 3 1 2Product II 2 1 1Product III 2 2 2Pruduct IV 4 3 1 In the June 6 entry, Lewis noted this mode of navigation was hazardous. Describe how the events of this situation led to a decision, and what that decision was. Your topic is to research the achievements of presidents before 1940. What interests you about this topic? what do you already know about this topic? how does this topic relate to you or to people you know? what is appropriate for an essay on the topic? brainstorm to generate ideas. Use the questions on the left to help you a measure of a company's solvency, calculated by dividing the sum of net income, interest expense, and income taxe expense by interest expense the exploration of how our dominant ideas about what it means to be a man influence the behaviors of actual men in society is known as . Find the general indefinite integral. (Use C for the constant of integration. Remember to use absolute values where appropriate.) (e^x+ 1/8x) dx during the 15th and 17th century, explorers were able to sail the oceans much further, much faster, and much more accurately. how was this exploration made possible? why did lincoln think the suspension of writ of habeas corpus was so important to his cause of preserving the union Does Alexa have a Christmas mode? Which of these are functions of the spinal cord? Select all that apply. Select one or more: a. Reticular activating system b. Reflex actions involving internal organs c. Coordinates voluntary control of the limbs d. Form a connection between peripheral nerves and the brain e. Reflex actions involving skeletal muscle 2. Senses whose receptors are associated with the skin, muscles, joints, and viscera Select one or more: a. Responding senses b. Tissue senses c. Cutaneous senses d. Bodily senses 3. Put the events of a spinal reflex in the proper order from where sensation starts to the reaction Sensory receptor .Cell body of motor neuron .Cell body of sensory neuron Dendrite of sensory neuron . Dendrites of motor neuron . Effector Axon of motor neuron . Interneuron 3. Which equation shows a correcttrigonometric ratio for angle A in the righttriangle below? (MGSE9-12.G.SRT.6)B8 cmA.B. tan Asin A =C. cos A17 cm15 cmD. tan A =15| 17 3/17 15/17 15-288A Compare skeletal, smooth, and cardiac muscles as to their microscopic anatomy, location and arrangement in body organs, and function in the body. Brainiest for correct answersWrite a paragraph describing the change that took place in the African slave trade in the 1500s. Describe the Middle Passage and its toll on people.(page attached)