Questions: 9 913

Answers by our Experts: 9 913

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Note: Use Linked List to implement stack.

A stack is an object that allows the following operations:

 Push: Add an element to the top of a stack

 Pop: Remove an element from the top of a stack

 IsEmpty: Check if the stack is empty

 Peek: Get the value of the top element without removing it

Create a class to define above mention operations of stack along with some addition functionality:

i. Copy a stack to another one.

ii. Delete an element at a specified location.

iii. Returns the count of elements in a stack.

iv. Insert an element at a specified location.

Write a main function to test the functionality of above class.

Remember: To access any element that is not at top, you have to first pop all other elements on the top of that.

Note: Use Linked List to implement stack.


A C++ program to print the members of a structure using dot operators


Create a file named “Circle.txt” and write the following data:


Circle 1, 5

Circle 2,10

Circle 3,4

Each Line has a Circle Name(Circle 1 as in example in 1st line above) and its radius separated by a comma. You have to calculate the Area of

each circle using (pi*r*r) and write it at the end of every line. (5+ 10)

e.g.

Circle 1 , 5, 78.5

Circle 2, 10, 314

Circle 3, 4, 50.24


Objective: 

Design a class called NumDays. The class’s purpose is to store a value that represents a number 

of work hours and convert it to a number of days. For example, 8 hours would be converted to 

1 day, 12 hours would be converted to 1.5 days, and 18 hours would be converted to 2.25 days. 

The class should have a constructor that accepts a number of hours, as well as member 

functions for storing and retrieving the hours and days. 

The class should also have the following overloaded operators: 

• + Addition operator. When two NumDays objects are added together, the 

overloaded + operator should return the sum of the two objects’ hours members. 

• − Subtraction operator. When one NumDays object is subtracted from another, 

the overloaded − operator should return the difference of the two objects’ hours 

members.


We are going to create class of Matrix. You have to write the definition of the following function given below in the Matrix class. class Matrix{ private: int noOfRows ; int noOfColumns; int ** data; public: Matrix(int noOfRows, int noOfColums); void displayData(); -Matrix(); Matrix(const Matrix & ref);You have to write down the definition of following functions. 1. Matrix(int noOfRows, int noOfColums) 2. void displayData0; 3. -Matrix(); 4.Matrix(const Matrix & ref)

Create a calculator for the complex number by creating a class of complex number (with two member variables, required constructor(s) and functions) with overloading all operators in it.(Operators: ++,--,+,-,/,*).

2. We want to keep track of Students studying in university. To do so create a class Students that has the following instance variables Reg_no, Name, Age, Address, Semester, CGPA and Fee. Where address is the object of address class and fee is same for all students.


The Student Class should have default constructor and augmented constructor. You need to write set() method to assign values to the instance variables and a method which can return grade using CGPA. You are required to create two objects of Student class and then display his Data along with grade.



     Write a class Box with three variables length, width and height. Design suitable constructors, set and get functions. Write the main function and create the different objects of Box class. We want to count the objects of Box class what more you can add in your class to achieve the counting facility. Write the code and display the number of object created so far.



The following expression has a mistake

if{ x <= 0 }

Please provide the corrected version






Implement a program of maintaining banking account information system using multiple inheritance in C++ Programming. Here class savings derived from class account and class user. Use appropriate functions and variables

LATEST TUTORIALS
APPROVED BY CLIENTS