Write a class with name shares shares( ) constructor to initialize the object shares(String , int , int ) constructor to initialize the object void buy( ) for buying the shares void sell( ) for selling the shares calc( ) to calculate the total value of shares show( ) to show the details. Note : buy( ) and sell( ) functions will increase or decrease the number of shares, and accordingly the Total value of shares will change. Create another class and write main( ) function and use the above functions....use : string nm(name of buyer)
int no(no. of shares)
int unitprc(price of 1 share)
int totalval (total value of all shares)

Answers

Answer 1

Explanation:

What is constructor?

Constructor is a member function of class, whose name is same as the class.

A constructor is a special type of member function of a class which initializes objects of a class. In C++, Constructor is automatically called when object(instance of class) is created.

Constructor is invoked at the time of object creation. It constructs the values i.e. provides data for the object that is why it is known as constructors.

Constructor does not have a return value, hence they do not have a return type.


Related Questions

What key advantage does a virtual router have over a physical router?

Answers

The key advantage that a virtual router have over a physical router is that it van support multiple networks over a single interface.

What is a router?

It should be noted that a router simply means a device that forwards data packets between the computer networks.

In this case, the key advantage that a virtual router have over a physical router is that it van support multiple networks over a single interface.

Learn more about router on:

brainly.com/question/24812743

#SPJ12

impact of science in the world ​

Answers

Answer:

scientific impact reflection that finding all publication has on science or on society

Explanation:

such impact can be short term or long term and it is important not be imprise 1 over the other to great extent

types of computer analogue, digital, hybrid computer

Answers

Explanation:

Analog computers:

An Analog computer is a computing device that works on a continuous range of values. The results given by the analog computers will only be approximate since they deal with quantities that vary continuously. It generally deals with physical variables such as voltage, pressure, temperature, speed, etc. Results generated by these computers are not complete, there may be any fractions values involve with the results of these computers, wall clocks are the main example of this computer.

Digital computer:

On the other hand, a digital computer operates on digital data such as numbers. It uses binary number system in which there are only two digits 0 and 1 each one is called a bit.

The digital computer is designed using digital circuits in which there are two levels for an input or output signal. These two levels are known as logic 0 and logic 1. Digital computers can give more accurate and faster results. A digital computer is well suited for solving complex problems in engineering and technology. Hence digital computers have increasing use in the field of design research and data processing. Based on the purpose, digital computers can be further classified into two main categories

General purpose computers

Special purpose computers

Hybrid computer:

A hybrid computer combines the desirable features of analog and digital computers. It is mostly used for automatic operations of complicated physical processes and machines. Now a day’s analog to digital and digital to analog converters are used for transforming the data into suitable form for either type of computation

For example, in hospital ICU analog devices might measure the patients temperature, blood pressure, and other vital signs. These measurements which are in analog might then be converted into numbers and supplied to digital components. In the system these components are used to monitor the patients vital sign and send signals if any abnormal readings are detected, hybrid computers are mainly used for specialized tasks.

Many things can happen when a large neo strikes earth. Consider only ejecta for a moment. How and why would ejecta affect short term climate (over a few months)?

Answers

The reason and why ejecta can affect short term climate is that Lower global temperatures by blocking incoming energy from the sun.

Why is it vital to decrease global temperature?

A warmer climate is known to often increases public health issues like heat  illnesses and as such, it is vital to lower temperature.

Therefore, in the case above, The reason and why ejecta can affect short term climate is that Lower global temperatures by blocking incoming energy from the sun.

Learn more about ejecta from

https://brainly.com/question/9928957

#SPJ12

_____ is a model in which application service providers (asps) deliver software to users for a fee

Answers

Software as a service  is known to be  a model in which application service providers (asps) deliver software to users for a fee.

What is software as a service?

Software as a service (or SaaS) is known to be a kind of method of sending applications over with the use of Internet—as a service.

Note that Software as a service  is known to be  a model in which application service providers (asps) deliver software to users for a small fee.

Learn more about Software as a service from

https://brainly.com/question/14596532

#SPJ2

How do economists use data? check all that apply

Answers

Economists use data:

To explain trends in production and shipping.To follow and predict unemployment rates.

How do economists make predictions?

Economists  often uses data to make forecast and it is where there is the use of sample data from a population that brings about uncertainty.

Note that Economists use data:

To explain trends in production and shipping.To follow and predict unemployment rates.

See options below

How do economists use data? Check all that apply.

to follow and predict unemployment rates

to communicate with customers instantly

to ship goods to countries all over the world

to explain trends in production and shipping

to apply automation to reduce production costs

Learn more about economists from

https://brainly.com/question/9913581#SPJ12

In order for a computer to perform a set of instructions

Answers

It must first be turn on

If an error occurs, each of the numeric functions returns a/an ____________ value.

Answers

If an error occurs within a program, each of the numeric functions would return a null value.

What is a function?

A function refers to a named portion of a block of executable code that is written to perform a specific task, which is usually a single, related action.

Thus, a function comprises a group of related statements (block of code) that would only run and returns a data when it is called.

In Computer programming, if an error occurs within a program, each of the numeric functions would return a null value.

Read more on a function here: https://brainly.com/question/19181382

#SPJ12

Read comments please!!

Answers

Answer:

Please explain your question/problem in more detail.

Explanation:

I do not see your issue and therefore it is uninterruptible and invalid.

Please rephrase the question OR Redo the description, Update me via commenting, and I will update my answer to what you need

What is the basic body structure of html.

Answers

Answer:

A line holding HTML version information, a declarative header section (separated by the HEAD element), and a body containing the document's actual content make up an HTML 4 page.

Answer:

introduction to the structure of HTML document and HTML for document is composed of 3 parts a line containing HTML version information a declarative had your section the limited by the head element a body which contains the documents actual continent

Explanation:

helpful for you

Which technique is used with network address translation (nat) where a source port chosen by a client is the same port used by a router?

Answers

The technique that is used with network address translation (nat) where a source port chosen by a client is the same port used by a router is port preservation.

What is port preservation?

It should be noted that port preservation simply means using the port number chosen by the client initially.

In this case, the technique that is used with network address translation (nat) where a source port chosen by a client is the same port used by a router is port preservation.

Learn more about port on:

brainly.com/question/4804932

#SPJ12

how do you get your winkey wet??

Answers

Answer:

what

Explanation:

what

sorry but what

Answer:

what is a winkey.

Explanation:

Question 3 of 20
All of the following are examples of associate's degrees except.
O A. Associate of Medicine.
OB. Associate of Science.
OC. Associate of Arts.
OD. Associate of Applied Science.

Answers

Answer:

A. Associate of Medicine

Explanation:

If it is wrong, sorry but I think its that one

What process sends ones and zeroes across network cables

Answers

Answer:

modulation

Explanation:

Modulation is the procedure of encoding data into electrical signals for transmission through a media. For transmission, binary information, denoted by a sequence of ones and zeros, should be translated to analog or digital electrical signals. The method converts data into electrical signals suited for transmission is known as modulation.  Digital modulation is the transmission of binary signals zeroes and ones.

The process that sends ones and zeroes across network cables is modulation.

What is modulation?

Modulation is the process of encoding information from a message source in a way that is suitable for transmission

In other words,  the process by which information is encoded into electrical signals for transmission over a medium.

Binary information, are represented by a series of 1s and 0s and must be converted to analogue or digital electrical signals for transmission.

learn more on modulation here: https://brainly.com/question/14592357

#SPJ12

which operation is not efficiently supported by heaps?

Answers

In the case above, the operation is not efficiently supported by heaps is Find.

What are heap operations?

The operation that are known to often use heaps are:

Heapify Find-max (or Find-min) Insertion, etc.

Therefore, In the case above, the operation is not efficiently supported by heaps is Find.

See full question below

Which operation is not efficiently supported by heaps?

a. DeleteMin

b. Find

c. FindMin

d. Insert

e. all of the above are sufficiently supported

Learn more about operation from

https://brainly.com/question/24214198

#SPJ11

Cisco cyber security would classify this email?

Answers

Cisco cyber security would classify this email as security threats.

How do Cisco cyber security classify email security threats?

They classify them as:

Malware Delivery via Spam. Credential TheftBusiness Email Compromise, etc.

Note that in the case above, Cisco cyber security would classify this email as security threats

Learn more about Cisco from

https://brainly.com/question/23388335

#SPJ12

In what order will the transmission control protocol (tcp) generally send all segments

Answers

The order that the transmission control protocol (tcp) generally send all segments is a sequential order.

What is a transmission control protocol?

It should be noted that the transmission contol protocol simply means a communication standard that enables application programs to exchange messages over a network

In this case, the order that the transmission control protocol (tcp) generally send all segments is a sequential order.

Learn more about transmission contol protocol on:

brainly.com/question/14219758

#SPJ12

_______ is used to transmit high-bandwidth digital data over telephone lines.

Answers

A DSL is used to transmit high-bandwidth digital data over telephone lines.

What device is used to transmit data over telephone line?

DSL is known to be a kind of a technology that is made for high-speed network or is one that is used via Internet access over voice lines.

Therefore, A DSL is used to transmit high-bandwidth digital data over telephone lines.

Learn more about modem from

https://brainly.com/question/7320816

#SPJ11

What are the three computer components that hold a dangerous amounts of electricity? Even when it’s unplugged.

Answers

The components of a computer that hold a dangerous amount of energy even when it's unplugged are capacitors, and inductor.

What is electricity?

Electricity is the flow of charges in a closed system. Electricity is very important to run electronic devices, but electricity can damage the tissues of human body and cause heart attack if touch it with hands.

Thus, the components of a computer that hold a dangerous amount of energy even when it's unplugged are capacitors, and inductor.

Learn more about electricity

https://brainly.com/question/12791045

#SPJ1

Edra kinsman is the sales manager for narbonne suites hotel chain, which has locations in washington, oregon, idaho, and montana. edra is using multiple worksheets to summarize sales data by state. break the external link in the worksheet, so that the formulas in the range b4:b7 of the manager information worksheet are replaced with static values. then switch to the manager information worksheet.

Answers

To summarize and present the findings from multiple worksheets, combine the data from each worksheet into a single worksheet.

Describe a worksheet?

In Excel documents, a "worksheet" is a collection of cells organised into rows and columns. Data consolidation enables the fusion of data from multiple worksheets into a single master worksheet.

In other words, you can quickly update a single worksheet by using the Data Consolidation tool to combine data from multiple worksheets or workbooks.

Thus, To summarize and present the findings from multiple worksheets

For more details about worksheet, click here:

https://brainly.com/question/27957051

#SPJ1

What are good reasons to do yearly disaster recovery testing? check all that apply

Answers

The good reasons to do yearly disaster recovery testing are:

To be prepared for all possible snags or problemsTo identify additional vulnerabilitiesTo allow others with the right access to restore operations.

Why is the plan important?

The Yearly recovery scenario testing will help pinpoint potential problems. It's easy to miss things. If you discover a potential problem that could lead to data loss during recovery scenario testing, you will have the chance to fix the problem before any data is actually lost.

Restoration procedures should be documented and accessible, so that anyone with the right access can restore operations when needed. If you aren't available, someone will have to restore operations.

Learn more about disaster on:

https://brainly.com/question/2916834

#SPJ12

You'd like to change the minimum password length policy in the default domain policy group policy preference (gpo). What's the best way to go about doing this?

Answers

The best way to change the minimum password length policy is to open the Group Policy Management Console by running gpmc.msc from CLI.

What is a password policy?

A password policy refers to a set of rules and standard that are designed and developed by the data security of an organization, so as to enhance computer security and ensure all password meet the minimum requirements such as:

Password lengthPassword maximum age.Password combination

In this scenario, the best way to change the minimum password length policy is to open the Group Policy Management Console by running gpmc.msc from CLI.

Read more on password here: https://brainly.com/question/3404286

#SPJ12

How to achieve competitive advantage using information systems models

Answers

Information systems can achieve competitive advantage by engaging in:

Lowering costing.Boasting differentiation of their product.Changing Their competitive scope.

What is competitive advantage?

Competitive advantage is known to be that  factors that helps a firm to produce goods or services better or relatively more cheaply than their counterparts.

Note that in the case above, Information systems can achieve competitive advantage by engaging in:

Lowering costing.Boasting differentiation of their product.Changing Their competitive scope.

Learn more about competitive advantage from

https://brainly.com/question/14030554

#SPJ12

how do you determine if a name is a variable holding a value or if it is a function call?

Answers

The way to determine if a name is a variable holding a value or if it is a function call is by:

Instance variables are prefixed with self.

What is this call about?

A function call is known to be a kind of an expression that has the function name which is said to be accompanied by the function call operator, () .

Note that The way to determine if a name is a variable holding a value or if it is a function call is by:

Instance variables are prefixed with self.

See full question below

How do you determine if a variable in a method is an instance variable for the class?

a) Instance variables have leading underscores in their names.

b) Instance variables are prefixed with self..

c) Instance variables start with a capital letter.

d) all of the above

e) none of the above

Learn more about function call from

https://brainly.com/question/15071685

#SPJ11

A technician is replacing a SOHO router and has configured DHCP to assign private IP addresses to hosts on the local network. These hosts can communicate with each other, but users can't browse the internet. Which of the following changes to the SOHO router is MOST likely to restore internet connectivity

Answers

Answer:

Configure the SOHO router for NAT.

The MOST likely way to restore internet connectivity is to Configure the SOHO router for NAT.

What function does enabling NAT do?

The act of enabling NAT on the router gives SOHO network the power to have all devices linked or connected to that network.

Therefore, The MOST likely way to restore internet connectivity is to Configure the SOHO router for NAT.

Learn more about technician from

https://brainly.com/question/2328085

#SPJ11

Which device allows users to directly hear data from a computer

Answers

Output Device are known to be device that allows users to directly hear data from a computer.

What is an output device?

This is known to be any piece of computer hardware tools that helps in changing of information into a human perceptible ways such as graphics, tactile, audio, etc.

Therefore, Output Device are known to be device that allows users to directly hear data from a computer.

Learn more about Output Device from

https://brainly.com/question/13014449

#SPJ1

The _____ is the part of a computer that executes the instructions of a computer program.

Answers

Answer:

Central processing unit (CPU)

Hope you have a great day :)

Which printer management components would you use to view the port a printer uses? (select two. )

Answers

The printer management components one would use to view the port a printer uses are as follows;

Printer propertiesPrinter server properties

What is Printer management components?

The print management component provides a single interface where a user can open the print management utility and view all printers and print servers in the enterprise.

The port of a printer is the connector usually on the computer that allow communication with the printer.

Therefore, the printer management components one would use to view the port a printer uses are as follows;

Printer propertiesPrinter server properties

learn more on printers port here: https://brainly.com/question/17157651

#SPJ12

Which blu-ray standard defines rewritable disks?

Answers

The blu-ray standard that defines rewritable disks is BD-RE.

What is a rewritable disk?

It should be noted that a rewritable disk simply means an erasable disk that can be reused.

In this case, the blu-ray standard that defines rewritable disks is BD-RE. It is the recordable standard.

Learn more about disks on:

brainly.com/question/20381259

#SPJ12

How can file signature in headers be used to reinforce the identification of files with different extension names in forensic audit.

Answers

Answer:

A file header is a 'signature' placed at the beginning of a file, so the operating system and other software know what to do with the following contents. Many electronic discovery applications will use the file header as a means to verify file types.

Explanation:

Other Questions
Which group within the United States would most likely have supported theworldview represented in the diagram?OA. SuffragistsB. NativistsOC. PopulistsD. Settlers What is the slope of this line? 4 34 34 3 Number graph ranging from negative 5 to 5 on both the x and y axis. A line passes through the point begin ordered pair 0 comma 2 end ordered pair and the point begin ordered pair 4 comma negative 1 end ordered pair Why was the Persia ultimately unsuccessful in conquering Greece at the battle of marathon Question 9 of 20Which action would the Enlightenment philosopher Baron Charles deMontesquieu most strongly support?A. A country adopts a constitution that divides its government intobranches with equal power.B. A government places high taxes on wealthy citizens andredistributes the money to the poor.C. A political leader serves as both a legislator and a judge for acountry's highest court.D. A president implements several popular laws after the legislaturerefuses to approve them.SUBMIT submit Can someone help me out with this, its urgent. Its geometry Are the equations -11(x-2)=8 and x-2=8+11 equivalent? PLEASE HELP WITH THIS PROBLEM! Robin thicke and pharrell williams were ordered to pay $5 million for copying part of which marvin gaye song in their hit blurred lines?. What statement do you begin with when writing the first draft? a. a main idea statement b. a summary statement c. a closing statement d. an ending statement Read these sentences.Laurel said, "John, it's time to come clean. We all want to know what really happened to the ice cream that disappeared fromthe refrigerator."What is the connotative meaning of the phrase come clean as it is used in this sentence?take a showerO help outwalk awaytell the truthSubmitPasshpSave and close Help asap ! please help fast grade 5 math extra points to those who explain and giving brainliest find the range for the given domain: {-3,-1 and 3} and the function is y=3x^2-2x+1. What is the correct answer For which writing prompt would you use an evaluative thesis? a) analyze the differences and similarities between burning coal and burning natural gas, including costs and environmental impacts. b) analyze the differences and similarities between summer sports and winter sports, including equipment, physical exertion, and accessibility. c) compare and contrast honeybees and wasps, and use the details to determine which insect is more important to farmers and why. d) compare and contrast bus travel with train travel, including the advantages and disadvantages of each. Find the domain and range of the following graphWrite your answer as an interval. What is the frequency in hertz of the UKmains electricity supply? Which of the following describes a process of succession after a forest fire? A. Two types of plants grow side by side. B. Small plants grow but are eventually replaced by larger plants. 0 C. Small plants and trees grow back at the same time. D. Animals and plants both grow in the area. What is the equation of the quadratic function shown in the graph? What is the global goal zero hunger trying to do to improve the quality of life for others