Following class definition

Assignment Help Basic Computer Science
Reference no: EM13163513

Given the following class definition, describe the type of variables used by the arguments and return values of the following member functions (values, pointers, or references):

Example: Node* read_next(){return next;} takes in nothing as argument and returns a pointer of type Node.

class Node {

private:

char element;

Node* next;

public:

Node(char e){element=e, next=NULL;}

Node(char e, Node* N){

{element=e, next=N;}

void set_element(char e) {element=e;}

char read_element() {return element;}

void set_next(Node* N) {next=N;}

char& ref_element() {return element;}

Node*& ref_next() {return next;}

};

a. Node(char e, Node* N){element=e, next=N;}

a. Arguments:

b. Return:

b. void set_element(char e) {element=e;}

a. Arguments:

b. Return:

c. void set_next(Node* N) {next=N;}

a. Arguments:

b. Return:

d. char& ref_element() {return element;}

a. Arguments:

b. Return:

e. Node*& ref_next() {return next;}

a. Arguments:

b. Return:

Reference no: EM13163513

Questions Cloud

What is the significance of the subjective data : What is the significance of the subjective and objective data provided with regard to follow-up diagnostic/laboratory testing, education, and future preventative care? Provide rationale for your answer.
Find calories and joules lost : find calories and joules lost when 75.0 g of water H20 cools from 86.4 degrees celsius to 2.1 degrees celsius.
Uses a 2-d array to store the highest and lowest temperature : Write a program that uses a 2-D array to store the highest and lowest temperatures for each montjh of the year. The program should output the average high, average low, and highest and lowest temperatures of the year. Your program must consist of ..
. write down each interaction with smartphone : Consider your smartphone as a system and use its calendar to set a calendar event with a reminder for your birthday. Write down each interaction between you and your smartphone as a scenario. Record all the interactions, including any feedback the sm..
Following class definition : Given the following class definition, describe the type of variables used by the arguments and return values of the following member functions (values, pointers, or references):
Primary comparative financial statements : Based upon your analysis in part a, does teh company's liquidity appear to have increased or decreased during the most recent fiscal year?
Ordering a burrito at a fast food mexican restaurant : Draw an activity diagram for ordering a burrito at a fast food mexican restaurant (e.g. Chipotle or Qdoba)
Vehicle in vehicle.java : Create a class called Vehicle in Vehicle.java with instance variables make (such as Ford, GM, Chrysler, Toyota, or Honda), year, and horsepower (200, 300, and 400). Add the necessary constructor and set and get methods.
State hydrocarbons are often reacted with steam : Hydrocarbons are often reacted with steam to form H2, as shown for propane: C3H8(g) + 6 H2O(g) 3 CO2(g) + 10 H2(g) Calculate Kp for this reaction at a particular temperature

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Nist criteria for selection of des and aes relate to shannon

How do the NIST criteria for selection of DES and AES relate to Shannon's original standards of a good cryptographic system?

  Which vulnerability be evaluated for extra controls first

If organization has three information assets to evaluate for risk management as shown in accompanying data, which vulnerability must be evaluated for additional controls first? Which one must be evaluated last?

  Create direct-mapped data cache for the byte offset

Create the 128KB direct-mapped data cache which uses a 32 bit address and 16 bytes per block. Compute the following: How many bits are utilized for the byte offset?

  Probability of heavy- normal and light snowfalls

Brenda evaluates the probability of heavy, normal, and light snowfalls as 0.25, 0.6, and 0.15, respectively. So what must be size of the order you would suggest to Brenda? Justify why.

  Recognize each dependency by type using code

Recognize each dependency by type; write the two instructions involved; recognize which instruction is dependent; and name storage location involved.

  Write a version of sum pairs i that sums each component

Using SML write a version of sumPairs that sums each component of the pairs separately, returning a pair consisting of the sumof the first components and the sum of the second components

  Computing requirements for dozen handbags

Leather-goods factory manufactures ?ve styles of handbags, whose variable contributions are $30, $40, $45, $25, and $60 per dozen, respectively.

  Give examples of 3 simple (scalar or primitive) data types

Give examples of 3 simple (scalar or primitive) data types commonly provided by programming languages, and identify the method used to represent each data type in the machine

  Design robot that can perform any function or activity

Design a robot that can perform any function or activity you choose from an automatic laundry robot to a customer service robot.

  M uses the average and maximum error of the two values. c.

A Atmega128 is being used to monitor humidity inside test chamber 03. The device uses two sensors to have some fault tolerance.

  Examples of emerging technologies

Assume you are an Information Systems educator, and you have been asked to make an article about emerging technologies and how important it is to be prepared to adapt to new technologies

  What is break -even point for upgrades

You have also learned that you can upgrade your CPU to make it 1.4 times as fast for $5,000. Which would you choose to yield the best performance improvemen tfor the least amount of money?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd