WILL GIVE BRAINLIEST IF RIGHT Which of these is a NOT function in Python?


input


variable


print


round

Answers

Answer 1

The input function is not a NOT function in Python. The input function is a built-in function in Python that is used to read input from the user.

What are built-in functions?

A built-in function is a function that is included in the core programming language, and that is available to the programmer without any additional installation or setup.

Built-in functions are typically provided by the language's standard library, and they are designed to perform common or fundamental operations. For example, in the Python programming language, some built-in functions include print, len, abs, max, and min.

These functions are available to the programmer by default, and they can be called directly from within the code.

Built-in functions can be very useful, as they provide a standard set of tools that are available in any Python environment, and they can save the programmer time and effort by providing common operations that are already implemented and tested.

To Know More About Python, Check Out

https://brainly.com/question/11288191

#SPJ1


Related Questions

Creating a method object. Define the method object inc_num_kids() for Personinfo. inc_num_kids increments the member data num_kids. Sample output for the given program with one call to inc_num kids(): Kids: 0 New baby, kids now: 1 1 test 1 class PersonInfo: definit__(self): self.num_kids = 0 passed Al tests DO NO # FIXME: Write inc_num_kids(self) ***Your solution goes here 9 person1 - Person Info() 1e 11 print('Kids:', person1.num_kids) 12 person1.inc num kids() 13 print('New baby, kids now!', personi.num_kids)!

Answers

method object  of inc_num_kids() for PersonInfo. inc_num_kids increments the member data num_kids. Sample output for the given program with one call to inc_num_kids(): Kids: 0 New baby, kids now: 1 can be write as follows:

Program:

#define class.

class PersonInfo:

  def __init__(self):  #constructor

      self.num_kids = 0

  def inc_num_kids(self):   #define function inc_num_kids()

      self.num_kids = self.num_kids + 1  

      return self.num_kids  #return value.

p= PersonInfo()      # creating object  

print('Kids:', p.num_kids)  #print value

p.inc_num_kids() #call function

print('New baby, kids now:', p.num_kids) #print value

Output:

Kids: 0

New baby, kids now: 1

The program begins by defining the PersonInfo class. This class defines a constructor that def __init__() and a function that def inc_num_kids().

The constructor is called automatically when the class object is created. This constructor takes self as a parameter that is used to access variables belonging to the class.

In the constructor, define a variable 'num_kids'. Assign a value to a variable that is '0' and use self to keep a reference to the variable.

Then define the function. This function increments the value of the variable by 1 and returns the value.

Then create a class object that is p, call the function, and print its value.

learn more about method object at https://brainly.com/question/13928668

#SPJ4

ipv6 autoconfiguration (wired wireless networks) co-authored by brayden alloway raymond baird this lab practices setup of a wired and wireless networks on separate subnets with ipv6 autoconfiguration.

Answers

The method used by IPv6 nodes (hosts or routers) to automatically configure IPv6 addresses for interfaces is known as stateless address autoconfiguration.

The following kinds of auto-configuration are supported by IPv6: Auto-configuration with state: Since the installation and management of the nodes require a Dynamic Host Configuration Protocol for IPv6 (DHCPv6) server, this kind of configuration necessitates some amount of human involvement. When the IPv6 router on the network advertises the availability of DHCPv6 for address configuration, IPv6 addresses are automatically assigned using DHCPv6 after configuring and starting IPv6 Stateless Address Autoconfiguration. Disabling IPv6 is a common practice among IT administrators when troubleshooting networking-related issues like name resolution problems. IPv6 is a necessary component of Windows Vista and Windows Server 2008 operating systems.

Learn more about configuration here-

https://brainly.com/question/14307521

#SPJ4

when should a server ask a patron to physically hand the server their id? a. only when the patron does not appear to be 21 b. always c. never d. only when the id appears to be tampered with

Answers

When should a server ask a patron to physically hand the server their id is option a. only when the patron does not appear to be 21.

What is the Basics of Identification?

Adequate staff training on the policies and laws governing the sale of alcohol is a crucial step in the prevention of illicit sales to minors. For the staff to be able to stop the sale, they must be aware of what to look for when verifying IDs. When a consumer presents an ID that is thought to be fake or counterfeit, they need to know how to handle them.

Therefore, for example, California's legal drinking age is 21. You are never compelled to give somebody alcohol or sell it to them. Although there is no legal "right" to purchase alcohol, you are legally permitted to deny service to anyone who cannot provide sufficient proof of their age.

Learn more about server from

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

19. open the sortedstates query in design view. modify the query to sort the state field in ascending order. each state should appear only once. save the query. open the query in datasheet view and then close it.

Answers

To open the sortedstates query in design view you can use Queries section.

What is Queries section?

In a database, the queries section is a part of the user interface where you can create and manage queries.

A query is a request for information from the database, and it is used to extract, filter, and manipulate data from the database. Queries are typically written in a specialized query language, such as SQL, and they can be used to perform a wide range of tasks, such as selecting specific records, calculating summaries, or combining data from multiple tables.

The queries section of a database is where you can create new queries, edit existing queries, and run queries to see the results.

This section is typically accessed through the database software's user interface, and it is where you can manage and organize your queries.

To Know More About Database, Check Out

https://brainly.com/question/29554934

#SPJ1

Kevin is attempting to determine an appropriate backup frequency for his organization's database
server and wants to ensure that any data loss is within the organization's risk appetite. Which one
of the following security process metrics would best assist him with this task?
A. RTO
B. MTD
C. RPO
D. MTBF

Answers

The security process Kevin needs to opt for to determine an appropriate backup frequency for his organization's database is RPO

What is an RPO in security process?

The most quantity of data that can be lost before harming the company is known as a recovery point objective, or RPO. RPO represents a business process's or an organization's overall tolerance for data loss.

The following is the necessity of RPO:

The key distinction between the two is how they are used. RTO, which is time-focused, helps define resources to be allocated for business continuity by focusing on downtime of services, applications, and processes, whereas RPO, which is data-focused, just defines backup frequency, RPO is the most used security process

A higher backup frequency Increased backup frequency is one technique to immediately improve RTOs and RPOs. When planning backup schedules for mission-critical data, be more proactive. This may not be possible for all covered assets. Your RPO will be immediately reduced by more frequent backups.

Hence to conclude because of the above reasons RPO is considered as Highly secure one

To know more on database management follow this link:

https://brainly.com/question/24027204

#SPJ4

Taking the right amount of ________ to design your game can be the difference between success and failure.

A.
advice

B.
time

C.
financing

D.
suggestions

Answers

B. time ..................

it makes more sense

a network administrator is implementing a ping from one end of the network to the other, records the average round-trip time and archives the results. what is most likely being prepared? logical network diagram change management documentation network performance baseline standard operating procedures

Answers

Network performance baseline will probably be created by the network administrator.

The best performance measurements for your network can be found by measuring it over a specific length of time. By identifying recommended performance requirements, baseline statistics offer a mechanism to verify the current state of your network, assisting administrators in defining the "normal" functioning level of network devices.

Network administrators can forecast demands and improve network performance by using baselines created by real-time analysis of various network variables, such as device utilisation, CPU/memory usage, connection, resource performance, etc. You can spot potential issues and comprehend network vulnerabilities when a device's performance deviates by being aware of its typical performance characteristics.

You can use network baselines as a reference point for troubleshooting and to better comprehend usage patterns and patterns on the network. To assess and support decision-makers on current policies, network compliance, and upcoming network upgrades, Network Baselines offer useful data.

To learn more about Network performance baseline click here:

brainly.com/question/14748886

#SPJ4

Personal digital assistants are handheld devices that serve as personal information managers. What is another term used to refer to these devices?.

Answers

Handheld devices are portable and compact type of devices which are easy to carry and its size is user-friendly like a tablet, smartphone, etc.

What is Handheld devices?

PDAs, often referred to as palmtops, handheld PCs, or handhelds, are small handheld computers. PDAs are becoming more and more common, not just for personal and professional use but also for educational purposes.

The internet, telephone, and computers are all combined in handheld devices.

These portable devices—personal digital assistants—are used to connect to the internet (which provides global access) and intranet and are utilized to store private information ( which is restricted within an organization or any specific location or a range of distance ).

A handheld device, sometimes known as a PDA, combines internet, phone, and computing capabilities. Up to the early 2010s, these devices were utilized to provide computation, information storage, and retrieval capabilities.

To learn more about Handheld devices refer to:

https://brainly.com/question/12253360

#SPJ4

A display that needs to be present throughout the entire game should be small enough that it doesn’t interfere with the game itself but large enough that the user is able to do what? A. read the display easily out of the corner of their eye B. see it from across the room if need be C. see it and understand what it’s trying to communicate D. move their avatar over the display box without interfering with the text

Answers

It is to be noted that a display that needs to be present throughout the entire game should be small enough that it doesn’t interfere with the game itself but large enough that the user is able to do what " see it and understand what it’s trying to communicate" (Option C)

What is the benefit of a display during a game?

While gaming, gaming screens are designed to make the output of your graphics card and CPU seem as nice as possible.

Monitors outperform TVs in terms of input latency, reaction time, and refresh rate. They are more responsive and enable competitive console gaming. Furthermore, if you want to play both PC and console games, monitors are a good investment.

Raising the resolution or the number of screens implies that the GPU must manage more pixels. However, the impact will be small if the game is not spanning both displays and the second monitor is not generating complicated 3D.

Learn more about displays:
https://brainly.com/question/13532395
#SPJ1

which tcp/ip protocol has only these fields in its header: source port, destination port, length, and checksum?

Answers

The User Datagram Protocol (UDP) is the TCP/IP protocol that only has these fields in its headers .

Describe the TCP/IP model.

The TCP/IP Framework encourages you to choose the best method for connecting a particular device to the network and for transferring data between those computers. When many computer networks are linked together, you can more easily construct a virtual network. The TCP/IP model's agenda is to enable communication across very long distances. Transmission Control Protocol/Internet Protocol is known as the TCP/IP. In order to provide a very stable, end-to-end byte flow over an unpredictable internetwork, the TCP/IP stack was particularly created as a model.

To know more about TCP/PI
https://brainly.com/question/27742993
#SPJ4

The open source movement makes _____ available to everyone in an effort to continue to build and improve the functionality of open source software.

Answers

The open source movement makes source code available to everyone in an effort to continue to build and improve the functionality of open source software.

What is meant by source code ?

In general, programming statements written by a programmer using a text editor or visual programming tool and then saved in a file are referred to as source code. When the source code is compiled using a C compiler, the output, a compiled file, is referred to as object code.

The foundation of a computer programme is its source code. It includes declarations, commands, instructions, functions, loops, and other statements that serve as guidelines for how the programme should run.

One or more text files kept on a computer's hard drive typically contain the source code that makes up a programme; these files are typically meticulously organized into a directory tree known as a source tree.

To learn more about source code refer to :

brainly.com/question/4593389

#SPJ4

which pair of windows socket calls (among others) would be executed by a server to allow an incoming tcp connection request from a client to be serviced?

Answers

The pair of windows socket calls (among others) would be executed by a server to allow an incoming TCP connection request from a client to be serviced is: "Connect () and Accept ( )" (Option B)

What is a window socket?

The Windows Sockets API, subsequently abbreviated to Winsock, is a programming interface that describes how Windows network application applications should access network services, particularly TCP/IP.

A Layered Service Provider (LSP) that controls protocols by inserting itself into the TCP/IP stack is known as a Winsock provider. This is typically used to assist in filtering web traffic, enabling QoS-type services, or hooking network traffic controls.

Learn more about window socket:
https://brainly.com/question/14319817
#SPJ1

Full Question:

Which pair of windows socket calls (among others) would be executed by a server to allow an incoming TCP connection request from a client to be serviced?

Connect () and recv( )

Connect () and Accept ( )

Bind () and Accept ( )

sock() and recv( )

write a function called interleave to interleave two row arrays of equal length. ex: for row arrays arrayone and arraytwo, the output row array is array three

Answers

The procedure is to  concatenate the row arrays to make 2-D matrix, then Flatten it to get the column vector.Lastly,we have to transpose for the row vector. The code for the same is given below:

function arrayThree=interleave(arrayOne,arrayTwo)

% Concatenate arrayOne and arrayTwo to make 2-D matrix by arrayThree

C1=[arrayOne;arrayTwo];

% Flattenning

arrayThree=C1(:);

% Transpose

arrayThree=arrayThree';

end

Output:

arrayOne= [1, 2, 3]

arrayOne =  

1     2     3    

arrayTwo= [10, 20, 30]

arrayTwo =

 10    20    30    

arrayThree =

1    10     2    20     3    30    

Here, two arrays are two same-length row arrays that are interleaved by the function interleave. The remaining members of the resulting array keep the leftover elements from the lengthier row array if the function runs out of elements in one of the row arrays but since its of same length it wont happen. Any length of row should be supported by the function.

To learn more about  concatenated row arrays click here:

brainly.com/question/14699216

#SPJ4

you will create the relationships between the tables using the relationships window. add all three tables to the relationships window. identify the primary key fields in the categories table and the suppliers table and join them with their foreign key counterparts in the related products table. select the enforce referential integrity and cascade update related fields check boxes. save and close the relationships window.

Answers

The Relationships pane establishes connections across tables, however it doesn't produce a lookup list and necessitates that the parent and child columns have the same data type.

The Relationships pane establishes connections across tables, however it doesn't produce a lookup list and necessitates that the parent and child columns have the same data type.

Utilize the Relationships window to establish relationships.

Select Database Tools > Relationships in any database that contains at least two tables or queries.

Drag the tables from the Navigation pane to the Relationships pane if the Relationships pane is empty.

Drag the child table's foreign key's main key from the parent table to the top of it.

Specify Referential Integrity Enforcement.

Decide between Cascade Delete Related Records and Cascade Update Related Fields.

Choose Create.

Since you inserted the relationship between the two tables, you can now see a line that lists the fields that are related and the type of relationship (one-to-one or one-to-many).

Select Save to save the relationship.

To know more about data type click here:

https://brainly.com/question/14581918

#SPJ4

There are many parameters that could be used to describe disk performance; among them are:
number of bits per track disk capacity (in bits) number of disk surfaces
rotational speed rotational latency transfer rate
tracks per surface sectors per track blocks per track
sectors per block seek time speed of disk arm
block-read time number of blocks Some of these parameters are independent, and others are (approximately) linearly related. That is, doubling one doubles the other. Decide which of these parameters are linearly related. Then, select from the list below, the relationship that is true, to within a close approximation.
Note: none of the statements may be true exactly, but one will always be much closer to the truth than the other three. Also note: you should assume all dimensions and parameters of the disk are unchanged except for the ones mentioned.
a) If you double the number of tracks per surface, then you double the average seek time.
b) If you double the number of sectors on a track, then you double the capacity of the disk.
c) If you double the number of disk surfaces, then you double the capacity of the disk.
d) If you double the number of sectors per block, then you halve the capacity of the disk.

Answers

The right response is (C): Doubling the number of disc surfaces doubles the disk's capacity.

Regarding Bits

In both computing and digital communications, the bit is the most fundamental unit of information. The word is a combination of two binary digits. A logical state with one of two potential values is represented by the bit. The most frequent ways to represent these values are "1" or "0," although other alternatives include "true," "false," "yes," "no," "on," and "off." Custom dictates how these values relate to the real physiological states of the put resources or device, and various assignments may well be made even within the same application or device. It may be implemented physically using a two-state device.

To know more Bit
https://brainly.com/question/28799444
#SPJ4

In your GDD, in what section will you describe the story of your game, if applicable?

A.
description

B.
gameplay narrative

C.
audience

D.
style

Answers

The answer is a I hope this helps you

when you click the lines button in the intraprocedural workspace, where can you look to see if a line has already been placed and documented on the patient

Answers

You can look to see a line has already been placed and documented on the patient in a navigation. Navigation can make you track of where or quickly move on to the section that you need.

Navigation refers to the feature that exist in Ms. office. The Navigation Pane feature Word lets users to quickly move on to the content around they are working on. If you often work with lengthy Word documents, the Navigation Pane can be used: to find text, to browse page by page and to re organize your Microsoft Word document. To use navigation in ms. office, you can press ctrl+f in your keyboard.

Learn more about navigation, here https://brainly.com/question/29401885

#SPJ4

juan is a technician designing a physical security strategy for his company's network. he wants to convince potential hackers that it would be too difficult and complex for them to mount a successful assault or that such an attack would be too easily detected. what central function is he addressing?

Answers

Deterrence is a tactic that uses the threat of punishment to get people to behave in a certain way.

What is Deterrence?

Deterrence is the act of stopping something from happening, especially war or crime, by posing a threat with tools like weapons or punishment.

What Is a Hacker?

An individual who violates a computer system is known as a hacker. Hacking can be done for a variety of reasons, including to install malware, steal or destroy data, disrupt services, and more. Another ethical motivation for hacking is to look for software flaws so that they can be fixed.

To know more about hackers, check out:

https://brainly.com/question/23294592

#SPJ1

you are not familiar with the exact name of a file. you know that it is unique and can remember the first four letters of the name. what key can you press in a linux shell to attempt to auto-complete the name? right arrow left arrow tab ~

Answers

You answer must be Tab

there's another way to associate an input element's text with the element itself. you can nest the text within a label element and add a for attribute with the same value as the input element's id attribute. associate the text loving with the checkbox by only nesting the text loving in a label element and place it to the right side of the checkbox input element.

Answers

The id attribute must first be added to the< input >element before you can directly link a <label> element to it.

What is the function of the for attribute in the label element?Label and output are two elements that may both use the for attribute. When applied to a label element, it identifies the form element that the label refers to.Labels employ the for attribute. This is a reference to the element's id that this label is connected to. The browser will now immediately concentrate the relevant input box when a user clicks with their mouse on the username text.The id attribute must first be added to the input element before you can directly link a <label >element to it.

To learn more about for attribute refer to:

https://brainly.com/question/14363865

#SPJ1

Enter a function in cell H12 based on the payment and loan details that calculates the amount of cumulative principal paid on the first payment. Be sure to use the appropriate absolute, relative, or mixed cell references. All results should be formatted as positive numbers. Enter a reference to the remaining balance of payment 1 in cell B13. Use the fill handle to copy the functions created in the prior steps down to complete the amortization table. Expand the width of columns D:H as needed.

Answers

According to the principle of cumulative advantage, as soon as an agent in a social system acquires a little competitive edge over other agents, that advantage will grow over time to become a much greater one.

What is cumulative principle?

The phrase "the affluent become richer and the poor get poorer" perfectly captures the effect. The Matthew effect is another name for the underlying idea.

The phrase was first used by sociologist Robert Merton in a 1968 paper that described how, regardless of who actually did the work, the more eminent scientists in a group tend to receive the most credit for the group's work.

Every social agency, including individuals, families, businesses, and even countries, aims to increase their competitive edge. If they don't, the law of survival of the fittest gradually eliminates them.

Therefore, According to the principle of cumulative advantage, as soon as an agent in a social system acquires a little competitive edge over other agents, that advantage will grow over time to become a much greater one.

To learn more about cumulative damage, refer to the link:

https://brainly.com/question/29642847

#SPJ1

some users report that frequent system crashes have started happening on their workstations. upon further investigation, you notice that these users all have the same application installed that has been recently updated. where would you go to conduct a root cause analysis?

Answers

Answer:

Application log

Explanation:

some of your students have asked you to help them set up a lunchtime book club. why might you recommend they create a book club community on groups instead?

Answers

I recommend they create a book club community because a book clubs can foster trust in interpersonal interactions. Discussions of books and articles with others increase students' comprehension and hold them accountable for how they were interpreting the text previous to their talks.

BOOK CLUB COMMUNITY

Book clubs can help you become a better reader, commit to reading, cultivate relationships, gain exposure to a variety of viewpoints, and improve your conversational skills.

We human beings are social beings. We enjoy exchanging experiences with others. Consequently, it is not surprising that when a book inspires, haunts, comforts, consumes, or alters us, we wish to share these emotions with others. Book clubs are frequently created by individuals with similar identities.

In a relaxing setting, a book club can help you meet new people and create new friends. They are a wonderful addition to a social schedule because they are low-key and generally inexpensive. No matter how serious your book discussions are, regular gatherings and conversation can be entertaining.

Learn more about reading book here:

https://brainly.com/question/6904006

#SPJ4

Write a constructor for a class called Book that will have a title, author, and price.
Describe why the following code might be frustrating to the player of the game and how you might change it.
while self.doorlocked == True:
response = input("Enter the escape code.")
if (response == doorCombo):
print("You have escaped!")
self.doorlocked = False
Write code that will randomly output one of four phrases to a student who has gotten a correct answer on a quiz.
Imagine that you are creating a program that an online streaming service will use to manage its inventory of shows. Describe at least two classes that you would create and several subclasses.
Describe what information should be in the comments at the top of a program file and why that information would be helpful.

unit 5 CTQ

Answers

Using the knowledge in computational language in JAVA it is possible to write a code that write a constructor for a class called Book that will have a title, author, and price.

Writting the code:

class Book{

// class properties of the Book class

private String title;

private String author;

private double value;

Book nextptr;

// parameterized contructor

Book(String title, String author, double value){

 this.title = title;

 this.author = author;

 this.value = value;

 this.nextptr = null;

}

// copoy contructor

Book(Book old){

 this.title = old.getTitle();

 this.author = old.getAuthor();

 this.value = old.getValue();

 this.nextptr = null;

}

// getter method for title

public String getTitle(){ return title; }

// getter method for author

public String getAuthor(){ return author; }

// getter method for value

public double getValue(){ return value; }

}

class Library{

// class properties of Library class

Book head;

int total;

// default constructor that initialises default values for it's properties

Library(){

 head = null;

 total = 0;

}

// copy constructor that performs deep copy of the object passed

Library(Library oldLib){

 Book temp = oldLib.head;

 // for every book in oldLib, create a new book with same properties and add it in this library.

 while(temp != null){

  // creating a new book object similar to temp

  Book newBook = new Book(temp);

  // adding newBook to this library

  add(newBook.getTitle(), newBook.getAuthor(), newBook.getValue());

  temp = temp.nextptr;

 }

}

/**

 * Adds a new Book to this library

 */

public void add(String title, String author, double cost){

 // checking if library is not full

 if(!full()){

  // creating a new Book object with given title, author and cost.

  Book newBook = new Book(title, author, cost);

  // if head is null (i.e., library is empty), assign the new book to head

  if(head == null)

   head = newBook;

  // else if library is not empty

  else{

   // get to the end of the list and add the new book.

   Book temp = head;

   while(temp.nextptr != null){

    temp = temp.nextptr;

   }

   temp.nextptr = newBook;

  }

  // increment total by 1

  total++;

 }

 // else if library is full, print error message

 else{

  System.out.println("Your library is full.");

 }

}

public Book search(String title){

 // checking if th library is empty

 if(!empty()){

  // loop through each book from head

  Book temp = head;

  while(temp != null){

   // if there is any matching book found return it

   if(temp.getTitle().equals(title)){

    return temp;

   }

   temp = temp.nextptr;

  }

 }

 // else return null

 return null;

}

public void reverse(){

 // reverse only if the library has more than one book

 if(total > 1){

  // have two temp nodes temp1(previous node of temp2) and temp2

See more about JAVA at brainly.com/question/18502436

#SPJ1

Providing products or services that could be raffled off by a non-profit organization to raise money is an example of a business _____.

Answers

I think corporation is a correct answer, I found it on internet

which resource is nearly impossible to decrease once allocated in virtualization? answer ram storage nic cpu

Answers

RAM storage is nearly impossible to decrease once allocated in virtualization.

What is RAM for storage?A computer's short-term memory, or RAM (random access memory), is where the data that the processor is presently using is kept. RAM memory size is crucial for system performance since your computer can access RAM memory faster than data on a hard drive, SSD, or other long-term storage device.Random access memory, or RAM, is one of the most basic components of computers. RAM is a short-term memory pool where your computer keeps information it needs to access fast. RAM maintains information readily available so that your processor can swiftly access it and carry out urgent processing operations without first accessing long-term storage.

To learn more about RAM, refer to

https://brainly.com/question/13748829

#SPJ4

Led by their chief scientist mark weiser, what organization was one of the first groups to explore ubiquitous computing?.

Answers

Led by their chief scientist Mark Weiser, the organization was one of the first groups to explore ubiquitous computing is Palo Alto Research Center (Parc).

What is ubiquitous computing?

Every activity or object is linked to information processing according to the ubiquitous computing theory of computing. It necessitates linking electrical devices together in addition to incorporating microprocessors for data exchange. Devices that use ubiquitous computing are always available and connected.

Therefore, Palo Alto Research Center  (Parc) was one of the earliest organizations to investigate ubiquitous computing, under the direction of their head scientist Mark Weiser.

To learn more about ubiquitous computing, refer to the link:

https://brainly.com/question/29661607

#SPJ1

as your exercise, create a new class: shape and let two classes: rectangle and circle derive from the shape. for each class you should implement the member function in the implementation file. c

Answers

In this program, we will calculate the area of a triangle and a rectangle using the procedure outlined in the preceding question using the C++ programming language's class and object concept:

Coding Part:

#include<iostream.h>

#include<conio.h>

#include<stdio.h>

#include<string.h>

//class shape

class Shape

{

public:

double height,base;

//height and base are given initial values by the constructor.

Shape()

{

height=0;

base=0;

}

//get_data() function to get values of height and base

void get_data()

{

cout<<"\nEnter height and base to compute are :";

cin>>height>>base;

}

//declaration of virtual function display_area()

virtual void display_area()

{

}

};

//class triangle inheriting class Shape

class Triangle : public Shape

{

public:

//redefining function display_area()

void display_area()

{

cout<<height;

cout<<"\nArea of Triangle = "<<(height*base)/2;

}

};

//class Rectangle inheriting class Shape

class Rectangle : public Shape

{

public:

/redefining function display_area()

void display_area()

{

cout<<"\nArea of Rectangle = "<<height*base;

}

};

void main()

{

clrscr();

Shape *s;

Triangle t;

t.get_data();

s=&t;

s->display_area();

Rectangle r;

r.get_data();

s=&r;

s->display_area();

getch();

}

To know more about Programming in C++, visit: https://brainly.com/question/13441075

#SPJ4

a user receives a phone call from a person who claims to represent it services and then asks that user for confirmation of username and password for auditing purposes. which security threat does this phone call represent?

Answers

Answer:

Social engineering

what can a blueprint slide with three main points be used for? check all that apply. an overview of your points a clear explanation of one main point a template for your presentation outline a transition as you move from point to point a review of your key points near the end of your presentation

Answers

The thing that a blueprint slide with three main points be used for is options A, B and D:

An overview of your pointsAn  outline a transition as you move from point to point A review of your key points near the end of your presentation

What is a blueprint slide?

The fourth and final slide in your introduction is the blueprint slide in the model. What you're going to talk about and why you're going to talk about it were made abundantly clear in the earlier slides. The blueprint slide lays out HOW you're going to be able to discuss it.

Note that using a blueprint PowerPoint theme, Blueprint Flowchart PowerPoint Diagram creates a  kind of polished presentation.

Therefore, in the context of the above, A blueprint presentation has a consistent appearance and can even be used in a variety of ways throughout the presentation. A visually appealing blueprint slide show might, for instance, have clear transitions that let you move from one element to the next, or it might even include a summary of your key elements at the session's conclusion.

Learn more about blueprint slide from
https://brainly.com/question/14645056
#SPJ1

Other Questions
consider the production of copper pipes that can be represented by a production function that is cobb-douglas. such a production function represents production where capital and labor Consider atoms of oxygen and fluorine. Which atom will be the least likely to lose an electron to form an ion and why? PLEASE HELP ME!! I NEED THIS NOW U DONT HAVE TO DO ALL OF IT BUT HELP ME GET STARTED PLEASE THANK YOU Immigrants played a vital role in the economic growth of the United States following the Civil War. Write a three-paragraph essay discussing immigration in the United States after 1860. A company manufactures and sells shirts. The daily profit the company makes depends on how many shirts they sell. The profit, in dollars, when the company sells xx shirts can be found using the function f(x) = 6x - 70. Find and interpret the given function values and determine an appropriate domain for the function. c. calculate the instantaneous decay and neutron absorption rates for 239u nuclei and determine their fraction of the combined loss rate. help me rq pls it wont take long a vaginal swab for anaerobic culture is received in the laboratory. how should this specimen be handled? An office building which generates $260,000 in Net Operating Income is advertised for sale at a price of $3,250,000. After meeting with your lender they offer agreed to originate a loan of $2,600,000 which carries a 7% interest rate and a 30-year amortization period. Your lender confirms the annual debt service for your loan will be $209,525.(a). Calculate the Cash Throw-Off for this investment. What is the significance of the Cash Throw-off to an investor (i.e. what does it mean to them)? Show your work and briefly explain your reasoning(b). Calculate the Equity Analysis as shown in Lecture for this investment. What does the equity analysis tell an investor? Show your work and briefly explain your reasoning.(c). Calculate the Cash-on-Cash Return for this investment. What is the significance of the Cash-on-Cash Return to an investor (i.e. what does it mean to them)? Show your work and briefly explain your reasoning. the physical fitness test extends the fitnessgram approach to students with selected disabilities. refusing to raise the pay of good workers just because they are black or hispanic is an example of a. racial discrimination. b. sexism. c. affirmative action. d. reverse discrimination. Why is the femur of a whale considered tobe a vestigial structure?It no longer serves a function in the animal. This is the answerIt is the most useful structure in the animal. as much as 80 percent of the risk for cancer is related to lifestyle or environmental factors. group of answer choices true false depression complicates treatment adherence and medical decision making and also interferes with patients adopting a managerial role, which leads to a(n) . multiple choice question. when max weber envisioned an evolution of rationalization in religion, what did he predict as the final stage? How did the British Parliament react to the Boston Tea Party? How did brice marden interpret the spiritual reverence for nature that he found in the buddhist poems of cold mountain?. When did scientists first begin transferring mrna from one species into the cells of a different species?. behavior is determined by the interaction of the environment and the personal makeup of the performer. this is an example of a Which line is the graph of the function y = x + 6?line Aline Dline Bline C a constructor is a method that: question 22 options: a) with the name classname.constructor. b) never receives any arguments. c) performs initialization or setup operations. d) returns an object of the class.