write the turtle graphics statements to draw a square that is 100 pixels wide on each side and filled with the color blue.

Answers

Answer 1

It draws the blue square at coordinated(100,0) 50 pixel wide, and in the lower-left corner. You should know that the lower-left corner of the square should be at position x, y. Hence, The answer.

And this is true for any shape that you draw using turtle graphics in Python.

You should also know the function format of Python, and how it is defined, declared  and called. The penup command tells the turtle to not show what is drawn, or hide the link. The pen down is just opposite to this.

The count is an above with range to create a for the look .Forward moves the cursor according to width mentioned.

See how to pen down is called before beginning fill. And how we move to x, y using go to, and how the penup is used to hide ink while  fill color is in effect, and we move to x, y.

To learn more about Turtle Graphics, Click here

brainly.com/question/20718793

#SPJ4


Related Questions

data packets are used to send information across the internet. how does the receiving computer know that it has all of the information to display for you?.

Answers

This is accomplished by having the destination computer transmit acknowledgement data packets to the source computer on a regular basis, letting the source computer know how much of the message it has received and decoded.

How are data packets sent?

A network packet operates by selecting the most efficient path to its destination. All of the other packets in a message follow this path, which increases the efficiency of network traffic in terms of distributing a load among various pieces of hardware.

How do packets know how to reach where they're going?

When a router gets a packet, it checks its routing table to see if the destination address points to a device on one of the networks to which it is connected, or if another network must be used to send the message.

To know more about data packets visit:-

https://brainly.com/question/28735926

#SPJ4

the phone company is having trouble where bad phone numbers keep appearing under different names. write a method that will return true if the parameter number is a value in nocallmap, otherwise return false.

Answers

Apply String. In addition to everything else, using integers prevents you from storing leading zeroes.

Int (too small), float, or double (too high chance of data loss - see below) are absolutely not appropriate; long or Big Integer may be (apart from the leading zeroes issue), but I'd personally choose String. If you choose, you can additionally save any dashes or spaces that the user input to make it simpler to remember the number. Regarding the "data loss" noted above, both float and double don't have enough accuracy; however, double might work if you're content with using no more than 16 digits. Apply String. In addition to everything else, using integers prevents you from storing leading zeroes.

Learn more about string here-

https://brainly.com/question/14528583

#SPJ4

what is the intersection of a row and column called? it is denoted by the column letter and row number. for example, e7.

Answers

When a row and a column intersect, a cell is formed. A cell is identified by a letter and a number that corresponds to a specific location within the spreadsheet.

What is a Spreadsheet?

A spreadsheet or worksheet is a file made up of rows and columns that can be used to efficiently sort, organize, and arrange data as well as calculate numerical data. The ability of a spreadsheet software program to calculate values using mathematical formulas and data in cells is what distinguishes it. Creating an overview of your bank's balance is one example of how a spreadsheet can be used.

To know more about Spreadsheet, visit: https://brainly.com/question/26919847

#SPJ4

write a program that creates two children, and connects the standard output of one to the standard input of the other, using the pipe() system call.

Answers

A pipe is a unidirectional data channel that can be used for inter process communication and is created by the pipe() function.

Explain about the pipe system call?

An invocation of pipe() causes control to trap to the kernel, establish the pipe's storage, and then return with two pointer call descriptors of type "int". The pipe() call's return value for the pointers is an array parameter. Additionally, it returns a negative integer if the call was unsuccessful and zero if it was successful.

The pipe function creates a pipe and inserts the reading and writing endpoints of the pipe's file descriptors into filedes [0] and [1, respectively]. File descriptor 0 represents standard input, while file descriptor 1 represents standard output, making it simple to remember that the input end comes first.

To learn more about pipe system call refer to:

https://brainly.com/question/29563886

#SPJ4

i accidentally reset xfinity router back to factory settings. now how do i get it back to the way it was?

Answers

When your gateway is factory reset, your WiFi name and password are restored to their original default positions. You'll need to set up a unique WiFi name and password for your home network if prompted, then use this information to reconnect devices to it.

Is it a good idea to factory reset?

While it's true that factory resets might occasionally be advantageous, there are certain unnoticed adverse effects that should also be considered. A factory reset frequently causes more harm than good, rendering data unsecure while giving the appearance of security.

To know more about Factory reset visit;

https://brainly.com/question/29829922

#SPJ4

which ping commands will verify that your local tcp/ip interface is working? (choose all that apply.)

Answers

B, D. The unique IP address assigned to the local TCP/IP interface is 127.0.0.1. The local interface has been given the hostname localhost. As a result, you may check if the local interface is operational by pinging the local interface's IP address or hostname.

A group of communication protocols called TCP/IP, or Transmission Control Protocol/Internet Protocol, are used to connect network devices on the internet. Additionally, a private computer network uses TCP/IP as its communication mechanism (an intranet or extranet). TCP/IP controls how information is transmitted and received between sources and destinations in the form of packets. So, in a nutshell, TCP specifies network communication and how to transfer data in the form of packets. Port numbers serve as universal standards for designating particular processes or categories of network services. TCP ports enable standardized communication between devices, much like how you would negotiate where you would be shipping out of and where you would have it arrive before sending something overseas.

Learn more about TCP/IP here

https://brainly.com/question/17387945

#SPJ4

6. Which ping commands will verify that your local TCP/IP interface is working? (Choose all that apply.)

A. ping 204.153.163.2

B. ping 127.0.0.1

C. ping localif

D. ping localhost

E. ping iphost

here are two instructions belonging to the xyz isa: sub r1, x and sub r1, r2, x. is this more likely to be a cisc or a risc?

Answers

The two instructions belonging to the XYZ ISA: SUB R1, x and SUB R1, R2, X. This is more likely to be a RISC.

A Reduced Instruction Set Computer or RISC is a kind of microprocessor architecture that uses a small, highly-optimized set of instructions instead of the highly-specialized set of instructions generally found in other architectures. RISC is particularly designed to perform a smaller number of types of computer instructions in order to be operated at a higher speed. So, it is obvious that the given instructions are RISC.

You can learn more about RISC at

https://brainly.com/question/13266932

#SPJ4

which of the tool functions described should be combined into a single tool, and in what cases is it more useful to implement the functions in separate tools?

Answers

You may discover excellent tools for creating and powering complex graphics in games thanks to the extensive libraries available in C++. To learn more about C++, you may find a ton of books online.

A compiled programming language is C, for instance. Simply put, the primary distinction between C and C++ is that the former is a function-driven procedural language without support for objects or classes, whilst the latter is a blend of procedural and object-oriented programming languages. The fundamental components of an OOP language are inheritance, polymorphism, inheritance, abstraction, and encapsulation. C++ is a popular programming language used by programmers all over the world. In actuality, the majority of AI applications, embedded systems, IoT devices, and video games run on C++.

Learn more about programming here-

https://brainly.com/question/11023419

#SPJ4

Calista wants to add a screentip to a hyperlink she inserted into a cell. she selects the cell with the hyperlink, then presses a certain combination of buttons, then selects screentip, types in a message, clicks ok, then clicks ok again to save the link. which of these combination of buttons must she have pressed during this procedure?a. Alt + F4b. Ctrl + Zc. Alt + Ad. Ctrl + K

Answers

The hyperlink Calista entered into a cell needs a screentip added to it. She clicks Ctrl + K after choosing the cell with the hyperlink. a button combo, picks screentip, enters a message, clicks ok, and then clicks ok again to preserve the link.

Which of the following clicks would you choose to delete a hyperlink from a cell?

Then, from the right-click menu, choose the option to remove the hyperlink by using the mouse to right-click on the selected cell(s) (or Remove Hyperlinks if you have more than one cell selected).

What key combination will you use to move between these two workbook windows?

Use the keyboard shortcut Ctrl+Tab to quickly navigate between spreadsheets.

To know more about hyperlink visit :-

https://brainly.com/question/13344003

#SPJ4

hp delays customization of its laser printers as long as possible. this is an example of .

Answers

The customization of Hewlett-laser Packard's printers is postponed as long as feasible. Postponement like this is exemplified.

What is meant by postponement?

When an activity is postponed to the furthest point in time, for instance when a customer's demand is satisfied, this is referred to as postponement.

By delaying the business investment in goods and services, postponement is one sort of business strategy that aids in maximizing different types of advantages and risk in the enterprise.

In the supply chain management concept, postponement is crucial since it aids in the production of many generic product kinds.

The customization of the laser printer was delayed by Hewlett-Packard, and this is an example of a postponement, according to the query.

Therefore, the correct answer is Option B. postponement.

The complete question is:

Hewlett-Packard delays customization of its laser printers as long as possible. This is an example of which of the following?

A. standardization

B. postponement

C. timely customization

D. backward integration

E. vendor-managed inventory

To learn more about postponement refer to:

https://brainly.com/question/5141180

#SPJ4

the function's only behavior should be to return the sum of array uservals' elements. what common error does the function make? assume uservals always

Answers

The function's only behavior should be to return the sum of array uservals' elements is Modifies userVals' elements.

What is meant by elements?A basic thing that is difficult to divide into smaller parts is known as an element. Unbreakable by non-nuclear reactions, an element is a material in chemistry and physics.An element is a unique component of a bigger system or set in mathematics and computing. The definition of an element is a material that cannot be converted into another substance.There are distinct types of atoms in every element. The elements in the periodic table are arranged in columns according to their similar chemical properties, with the atomic numbers of the elements indicating their order ( groups ). A material is considered a chemical element if no chemical process can further decompose it. The number of protons in an atom of a certain element is different.

To learn more about elements refer to:

https://brainly.com/question/14318253

#SPJ4

Which of the following is not a type of inheritance? (a) Multiple (b) Multilevel (c) Distributive (d) Hierarchical

Answers

D: Distributive is not a part of an inheritance

there is a definition for all other inheritance

there are total of four types of inheritance

1. Single Inheritance: Single inheritance allows a derivate class to inherit properties of one parent class, and this allows code to reuse.

2. Multiple Inheritance: If a class can be created from multiple base classes, this kind of Inheritance is known as multiple Inheritance. When there is multiple Inheritance, each of the attributes that are present in the classes of the base has been passed on to the class that is derived from it.

3. Multilevel inheritance: it is the features that are part of the original class, as well as the class that is derived from it, are passed on to the new class. It is similar to a relationship involving grandparents and children.

4. Hierarchical Inheritance: If multiple derived classes are created from the same base, this kind of Inheritance is known as hierarchical inheritance. In this instance, we have two base classes as a parent (base) class as well as two children (derived) classes.

To know more about inheritance:

https://brainly.com/question/11023419

which type of software language would a person most logically want to use? which type of software language would make a computer perform the best/fastest?

Answers

Answer:

The type of software language a person would most logically want to use depends on a number of factors, such as the person's level of expertise, the type of application they are developing, and the platform they are working on. Some common types of software languages include:

High-level languages: These languages are designed to be easy to read and write, and they are typically more abstract than low-level languages. Examples include C++, Java, and Python.

Low-level languages: These languages are closer to the machine language of a computer, and they are typically more difficult to read and write. Examples include Assembly and machine code.

In terms of performance, low-level languages are generally considered to be faster than high-level languages because they are closer to the machine language of a computer and can be executed more efficiently. However, high-level languages are often easier to work with and can be more versatile, so the choice of language ultimately depends on the specific requirements of the application.

Explanation:

the ________ html5 element is used to configure the main navigation area on a web page.

Answers

The answer is nav.

The nav HTML5 is used to configure the main navigation area on a web page.

The nav HTML5 element is used to define a section of navigation links. It is commonly used to provide a navigation menu or a site map. The nav element also organizes other elements on a page, such as a footer.

HTML5 is a markup language used for structuring and presenting content on the (WWW) World Wide Web. It currently exists in two standardized forms: HTML 5.2 as of December 2017 and HTML 5.3 as of June 2019. HTML5 is intended to subsume not only HTML 4 but XHTML as well.  The new features of HTML5 include specific functions for multimedia, graphics, styling, and more.<nav> describes as New Tag: Specifies a section of the document intended for navigations.

Read more about HTML5:

brainly.com/question/28994257

in order to preserve the integrity of any forensic evidence, what should be done before analyzing a hard drive that has been compromised by a security attack?

Answers

Investigators must first image the evidence from a source before they can start examining it. An analyst builds a bit-for-bit replica of a drive through the forensic method of imaging.

A hash of the evidence should be produced before, during, or after an acquisition in an effort to demonstrate that it was not tampered with. To build an MD5 hash of the evidence/input file under Kali Linux, use the md5sum command and the device's path. The chain of custody process begins at this point. In order to maintain the integrity of the data and evidence gathered, it entails identification, labeling, recording, and the collecting of data from all relevant sources that may be available.

Learn more about analyst here-

https://brainly.com/question/29331333

#SPJ4

which button allows you to preview the presentation as the audience will see it?

Answers

Slide Show view button allows you to preview the presentation as the audience will see it.

What is view button?

The view buttons are a feature that lets you alter how the presentation or document appears in Microsoft Office programs like Excel, PowerPoint, and Word. The image displays an illustration of the view buttons in Excel, PowerPoint, and Word that are located in the bottom-right corner of the application.

You can choose between the Normal, Page Layout, and Page Break Preview views in Microsoft Excel, for instance. The options in Microsoft PowerPoint include Normal, Slide Sorter, Reading View, and Slide Show. Last but not least, Microsoft Word offers Print Layout, Full Screen Reading, Web Layout, Outline, and Draft views.

Learn more about view buttons

https://brainly.com/question/4550273

#SPJ4

what statement can cause immediate exit from the try block and the execution of an exception handler

Answers

Raise statement causes immediate exit from the try block and the execution of an exception handler. The exception handler prints the argument passed by the raise statement that causes execution to occur. It's important to note that the normal flow of code is not obscured by new if-else statements.

How does raise statement works?

The raise statement stops normal execution of a PL/SQL block or subprogram and transfers control to an exception handler. Raise statements can raise predefined exceptions, such as ZERO_DIVIDE or NO_DATA_FOUND, or user-defined exceptions whose names you decide. Raise statement can be applied to Procedural Language/Structured Query Language (PL/SQL)

Learn more about PL/SQL https://brainly.com/question/28249074

#SPJ4

a mobile device is exhibiting unusual symptoms: there are pops, creaks, heat, wobbling when laid on a flat surface, and even gaps between the frame and screen. what do you expect the problem to be?

Answers

Unusual symptoms are displayed by a mobile device, including pops, creaks, heat, wobbling when placed on a flat surface, and even gaps between the frame and screen. You assume a bulging battery is an issue.

A battery is a piece of hardware that provides power to a gadget, allowing it to function without an electrical outlet. Depending on how much power it needs, batteries can frequently keep a laptop computer running for several hours. Many modern high-end electronics, such as laptop computers, and cell phones have rechargeable batteries, which let users recharge them when they run out of power. An example laptop battery with a close-up of the battery rating is shown in the image below.

Computers use one of three different types of batteries. First is the backup battery, often known as the CMOS battery, which stores your computer's settings, including the time and date.

Learn more about battery here:

https://brainly.com/question/29909464

#SPJ4

FILL IN THE BLANK. _____ also known as RESTRICT, yields values for all rows found in a table that satisfy a given condition

Answers

SELECT in an SQL command used to retrieve rows from a table that match a given condition.

SELECT also known as RESTRICT, yields values for all rows found in a table that satisfy a given condition.

Retrieving Specific Data from a Table Using SELECT (RESTRICT)

SELECT is an SQL command used to retrieve rows from a table that match a given condition. It is also known as RESTRICT, as it restricts the result set to only those rows that satisfy the condition. By using SELECT, a query can be written that filters the data of a table and only returns rows that meet certain criteria. This is useful for finding specific information from a large dataset.

The syntax for SELECT is straightforward: SELECT column_name FROM table_name WHERE condition;

This statement will return all the rows from the specified table that meet the given condition.

Learn more about programming: https://brainly.com/question/16397886

#SPJ4

smartphones and other types of new personal communication devices are having what sort of effect on listening skills?

Answers

The results of listening skills It promotes communication, solves problems, ensures understanding, resolves conflicts, and improves accuracy.

What negative effects could poor listening have?

Unsatisfactory listening results in assumptions and misunderstandings. These have the potential to cause mistakes, bad choices, or costly mistakes. Personal anger and team cohesion are both weakened by poor listening. This further ruins communication and undermines trust.

Why is it so crucial to have good listening skills?

Effective listening creates strong ties, loyalty, and trust through showing concern for subordinates. The likelihood that disagreements will be settled peacefully when they do arise seems to increase with effective listening, which also tends to decrease interpersonal conflict.

To know more about communication visit:-

https://brainly.com/question/29338740

#SPJ4

a 2d double array is declared and initialized to track the terrain of a city park. each value in the 2d array represents the height of a particular latitude and longitude above sea level. the 2d grid represents the map of the part and each entry in the grid represents the height. with this in mind, the columns are positioned to represent longitude in the 2d array and latitude is represented by each row in the 2d array. the creator of this 2d array would like to look at the height of the city park along the longitude 100.0 - which traversal method would make the most sense in order to do so?

Answers

Column-Major Order traversal method would make the most sense in order to do so.

What is a 2d array?

Arrays inside of arrays are what are known as two-dimensional arrays. 2D arrays, which are made up of rows and columns, are constructed as metrics. To create a database that resembles the data structure, 2D arrays are frequently used. A one-dimensional array keeps track of a single list of different elements with related data types. An array of different arrays, a list of different lists, or an array of different one-dimensional arrays are all stored in a two-dimensional array. It displays a list of several data objects as a representation. Objects can also be stored in a two-dimensional array, which is useful for programming diagrams that include a "grid" or "board."

To learn more about 2d arrays refer to:

https://brainly.com/question/27230187

#SPJ4

write the cell rxn for the combination of these half cell reactions that leads to the largest posiive cell emf and calculate the value

Answers

The cathode reaction's standard reduction potential is known as the standard cell potential, or Ecirc cellE cell.

Ecirc red E red (cathode), less the typical anode reaction reduction potential, Ecirc red E red (anode): "Ecirc cell" is equal to "Ecirc red" (cathode) - "Ecirc red" (anode) E red (cathode) = E cell (anode).

How are half cell reactions written?

The following gives an example of a half cell reaction at the anode: Zn(s)→Zn2+(aq)+2e−. The reaction causes the zinc metal to lose two electrons, forming the Zn2+ ion.

What are each reaction's cell reaction and half-cell reaction?

An oxidation process, where electrons are lost, or a reduction reaction, where electrons are gained, are both examples of half-cell reactions. The reactions take place in an electrochemical cell in which oxidation at the anode results in the loss of electrons.

To know more about  cell rxn visit :-

https://brainly.com/question/29560812

#SPJ4

So, my mom was trying to unlock her old iPhone 7, and it said connect to iTunes, and so I did, following a tutorial, but when I opened the phone again, it said in white letters:iPhone is disabled, connect to iTunes. Now, It cant even go into recovery mode(Volume down and side button on iPhone 7). Unfortunately, because it is quite old, its not on the Find My app, and I don't know any other way to fix it. Can anyone help me?

Answers

Answer:

i would either go to the apple store, or try connecting it to your computer

Explanation:

Answer:

You can either call or go to your nearest apple store, or hit a hard reset on your iphone. I suggest going to their website for help because the iphone is an older model.

Please mark me as brainliest if this works for you.

Hope this helps! :)

configuring nat match the correct answers - establish a static translation between an inside local address and an inside global address - make the interface connected to the inside - make the interface connected to the outside - remove dynamic source translation - define a pool of global addresses - configure an access list permitting the addresses that should be translated - establish a dynamic source translation, specifying the access list and pool defined - establish overload translation, specifying the access list and pool - establish static translation between an inside local address and an inside global address and global port a. ip nat pool poola b. ip nat inside source static tcp 10.0.0.1 80 199.1.1.1 8080 c. ip nat inside source list 1 pool poola d. ip nat inside source list 1 pool poola overload e. ip nat inside f. ip nat inside source static g. ip nat outside h. access-list 1 permit i. no ip nat inside source static

Answers

Static NAT maps network traffic from a static external IP address to an internal IP address or network.

How do you configure a translation rule for NAT with overload?Real addresses are statically translated into mapped addresses by this process. Static NAT connects networking devices to the internet using a private LAN and an unregistered private IP address. Only the Egress VLAN interface on the controller, which houses the controller's gateway, should have "ip nat outside" set. 2. "ip nat inside" needs to be set up on each and every VLAN interface where source NATing is necessary. From the Inside network's vantage point, an Outside Local host is one that actually sits on the Outside network. From the standpoint of the Outside network, an Outside Global is a host that actually resides on the Outside network.

To learn more about NAT refer to:

https://brainly.com/question/13105976

#SPJ4

when using eui-64, what is the correct result of inverting the seventh bit of the interface id with an interface id of b2c3:7aa0:8801?

Answers

B0C3:7AA0:8801 is the correct result of inverting the seventh bit of the interface id with an interface id of b2c3:7aa0:8801.

A specific node's interface is identified by its interface ID. There must be only one interface ID per subnet. The Neighbor Discovery protocol enables IPv6 hosts to instantly create their own interface IDs. Based on the MAC or EUI-64 address of the host's interface, Neighbor Discovery produces the interface ID automatically. For IPv6 routers and servers that support IPv6, you may also manually assign interface IDs. RFC 3513 Internet Protocol Version 6 (IPv6) Addressing Architecture contains guidelines on how to manually construct an EUI-64 address. To configure IP addresses for device administration, visit the IPv4 Interface page. A port, LAG, VLAN, loopback interface, or out-of-band interface can all be configured with this IP address. NOTE One VLAN is consumed by the device software.

Learn more about interface id here:

https://brainly.com/question/15106602

#SPJ4

What is one of the tools that is particularly useful in reducing system nervousness in an MRP system?a.) time fencesb.) time phasingc.) closed loop systemd.) lot sizing

Answers

Time fences is one of the tools that are particularly useful in reducing system nervousness in an MRP system.

What is an MRP system?

Based on demand and the bill of materials, a material requirements planning (MRP) system determines the required raw materials, components, and subassemblies as well as when to assemble the finished goods, thereby speeding up the manufacturing production process (BOM).

Three goals are meant to be accomplished by an MRP system at once: To make sure that products can be delivered to customers and that raw materials are available for manufacture. Keep stock levels of products and materials as low as feasible. Plan your production processes, delivery dates, and purchasing procedures.

Calculating the materials and parts required to make a product is done using a system called material requirements planning (MRP). Three main parts make up this process: listing the materials and components already in use, determining which more are required, and scheduling their manufacture or acquisition.

To learn more about an MRP system, use the link given
https://brainly.com/question/28583775
#SPJ4

assume the variable sales references a float value. write a statement that displays the value rounded to two decimal points.

Answers

With an assumption that the variable 'sales' refers to a float value. The statement 'print (format(sales, '.2f'))' will display the value of 'sales' rounded up to two decimal points.

A float is a data type to store numbers with decimal points.  Rounding a value up to two decimal places means that after the decimal point only two digits are required. This is the requirement of the given question in which you are asked to a write statement for rounding a variable 'sales' value up to two decimal places. To serve the purpose, the required statement is 'print (format(sales, '.2f'))' .

You can learn more about float data type at

https://brainly.com/question/26352522

#SPJ4

which command will start the process to bundle two physical interfaces to create an etherchannel group via lacp?

Answers

The right choice is the GigabitEthernet interface range command, which defines two interfaces for the EtherChannel group.

You can simultaneously configure several interfaces with the interface range command. Switches have numerous interfaces, and the same settings are frequently applied to various interfaces, making the interface range command very helpful.

While in interface configuration mode, each command you enter that contains the range keyword is immediately put into action. After you leave interface mode, the commands are not batch-executed. It's possible that some instructions won't be carried out on all of the interfaces in the range if you leave interface configuration mode while they're being done. Before leaving interface configuration mode, wait until the command prompt reappears.

Only VLAN interfaces built with the interface vlan command (the display running-configuration command) are compatible with the interface range command.

Know more about command here:

https://brainly.com/question/14617875

#SPJ4

to be useful, information systems should . a. use command line user interfaces b. not use rumors, unconfirmed reports, and stories c. generate raw data, which can be used for decision making d. produce information in different formats

Answers

Option b is correct. Information systems shouldn't rely on rumours, unverified reports, and stories if they want to be effective.

When people hear the phrase "information system" for the first time, they frequently assume it refers to some kind of programme that stores information or something similar. The name does really sound that way. An information system, however, is much larger than that.

A combination of hardware, software, and communication networks make up an information system, which is used to gather meaningful data, particularly within an organisation. Information technology is used by many firms to carry out and manage operations, engage with customers, and outperform rivals.

Programs - System software and application software are the two categories of software available. An operating system known as the system software allows users to handle a computer through a graphical user interface (GUI) while also managing the hardware, programme files, and other resources.

Know more about information system here:

https://brainly.com/question/28945047

#SPJ4

in multiple inheritance, if some members in parent classes overlap, what classes must be defined as virtual?

Answers

In multiple inheritance, if some memebers of the base classes or parent classes, then the base or parent class must be defined as a virtual class and access into child class as a public virtual class.

In multiple inheritance, sometimes the members of the base classes inherited into multiple classes which create ambiguity or confusion. for example, if a base class A is inherited in child class B, and B class is inherited by C, and class D is inherited by both B and C. Then it makes the ambiguity in accessing the members of class. for example, in this scenario, in class D, B and C both inherited by A and there members function duplicated.

#include <iostream>

using namespace std;

class A {

  public:

  int number;

  showNumber(){

     number = 10;

  }

};

class B : public virtual A {

};

class C : public virtual A {

};

class D : public C, public B {

};

int main(){

  //creating class D object

  D object;

  cout << "Number = " << object.number << endl;

  return 0;

}

The above program print 10.

You can learn more about multiple inheritance at:

https://brainly.com/question/14212851

#SPJ4

Other Questions
it is the quadrature axis synchornous reactance xq not the direct axis synchornoys reactance xd which plays a role under steady state operation of a syncronous machine 3Select the correct answer.What is a mirror site?O A. a backup system in standby state until neededO B.O C.D.a subscription service provided by a website to back up a company's systema backup system that runs, in parallel with the original systema copy of a website where a firewall redirects malicious traffic a population has a mean of 120 and a standard deviation of 10. if a sample of size 25 is collected, how much distance on average is expected between the sample mean and the population mean? N . . S Current Current is moving through a copper ribbon in the direction shown. The ribbon is suspended between the poles of a magnet as indicated. When the voltage is measured between A and B, it is observed that A is at higher potential than B. Which of the following explains this observation? A The electrons in the ribbon behave like magnetic dipoles; thus, they align with the magnetic field of the magnet that deflects electrons in the ribbon toward point A. B The electrons in the ribbon behave like magnetic dipoles; thus, they align with the magnetic field of the magnet that deflects electrons in the ribbon toward point B. Electrons moving through the magnetic field experience a magnetic force to the left that deflects electrons in the ribbon toward point A. D Electrons moving through the magnetic field experience a magnetic force to the right that deflects electrons in the ribbon toward point B. E The electric field in the ribbon is distorted by the magnetic field. This distortion creates an electric field component directed from point A to point B that deflects electrons in the ribbon toward point B. when a nucleotide is added to a growing nucleic acid strand during dna replication, the incoming monomer is and the energy required to drive the polymerization is derived from . please choose the correct answer from the following choices, and then select the submit answer button. answer choices a nucleoside triphosphate; dna polymerase an rna primer; cleaving a pyrophosphate dna; rna a nucleoside monophosphate; cleaving atp a nucleoside triphosphate; cleaving a pyrophosphate A scientist discovered a creature that consumes other organisms for energy. this would be classified as what type of organism? as a veterinary technician, why will you often have to repeat instructions to a client who is in bereavement? each router keeps a listing of all know paths that it connects to, so that it can forward packets from one router to another? most people would agree that it takes both physical skill and mental ability to drive safely. the experts estimate that driving consists of % physical skill and % mental ability. Would you be safer from a violent, explosive eruption while vacationing in Arizona Near a cinder cone or while skiing in the Andes Mountains of South America? organic chemists often purify organic compounds by a method known as fractional crystallization. an experimenter wanted to prepare and purify 4.85 g of aniline. ten 4.85-gram specimens of aniline were prepared and purified to produce acetanilide. the following dry yields were obtained: 3.85, 3.88, 3.90, 3.62, 3.72, 3.80, 3.85, 3.36, 4.01, 3.82 construct a 95% confidence interval for the mean number of grams of acetanilide that can be recovered from 4.85 grams of aniline. assume that the obtained dry yields of acetanilide are i.i.d. and approximately normally distributed with an unknown mean and variance. When U. S. Preident Donald Trump impoed tariff on imported teel, Charmaine wa working a a project manager for a U. S. -baed contruction company. Charmaine company had to pay more for the teel they imported from China, which decreaed the overall profit on ome of their bigget build. After a few month, her company decided to raie the price of material for all future build to offet thoe extra cot. In thi cae, who ended up paying for the tariff? Which of the following gases was the least abundant in the earth's atmosphere 3.5 billion years ago? a) carbon dioxide b) nitrogen c) oxygen d) hydrogen e) water vapor factor x^2-4x-5=0 steps plsss State if the three side lengths form an acute, obtuse or right triangle. 6km, 8km, 12km Which theory holds that the first governments formed as a result of people agreeing among themselves to submit to the authority of a state? State the corresponding part used on a specific segment or angle translate each of the following boolean expressions into java. the sky is blue or today is not monday. if a consumer does not have any collection accounts, does that have a negative impact on their score? Quadrilateral ABCD is shown on the coordinate plane.What needs to be proven to conclude that quadrilateral ABCD is a parallelogram?A-6 -4 -2B.C.O A. slope of AB = slope of CD and slope of BC = slope of DAslope of AB= slope of BC and slope of CD= slope of DAside length of BC= side length of DA and slope of DA x slope of AB = -1OD. side length of AB= side length of CD and slope of BC x slope of CD=-164-2+-2-4--6-DB6CX