Questions: 11 448

Answers by our Experts: 10 707

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

Consider the myString class, which is having only one privately declared data item: string str; OR char str[MAX]; and publically declared constructors and required member functions. Write down a member function that subtracts one object’s string from another object’s string. Sample calling statements are given as under. myString S1, S2, S3; S1.readd(); S2.readd(); S3 = S1 – S2;


1) Create a class phoneUser. The class should have the following private data members. The class prototype should be stored in the header file phoneUser.h

• Name of phone user (string type)

• Surname of phone user (string type)

• Number of phone user (string type)


Write public getters and setters to modify these data members. Write the function implementation in the source file phoneUser.cpp. There should be three constructors, with no argument (default constructor), with 2 arguments (Name and Surname), with three arguments (Name, Surname, and Number).




Implement a Stack to store a character in the node. Implement the following operations

push, pop and peek:.

void push (char c);

char pop();

char peek();

int isEmpty();

void printStack();




Implement a Stack to store a character in the node. Implement the following operations

push, pop and peek:.

void push (char c);

char pop();

char peek();

int isEmpty();

void printStack();



Complete class implementation

Create a class HugeInteger that uses a 40-element array of digits to store integers as large as 40 digits each. Hint: int num[40] is not smart since each element in this array is of integer type and the maximum integer that can be stored is 10 digit long.

Provide member functions

Input

Output

convert to integer

print

Overload arithmetic operators to

+ Add

- substract

* multiply

/ divide

Overloaded relational operators function that simply returns True if the relationship holds between the two HugeIntegers and returns false if the relationship does not hold.

==

!=

>

<

>=

<=

^ (checks if huge integer is zero)


A small store only sells Coke 1.5 liters and San Miguel 1 liter, Make a program that will input type of item and number of item, C-for Coke with a price of 65.00 and S- for San Miguel with a price of 120.00. Compute and display the total amount, and your program will be terminated if you input T in the type of item.


Make a program that will input type of network provider. A – for Smart and Display “SMART USER”. B- for Globe Display “GLOBE USER” and C-for Sun Display “SUN USER”. Your program will be terminated when you input Z.


C++ program which demonstrates virtual destructor.


C++ program which demonstrates static binding and dynamic binding.


what is the difference between link list


and array ?



LATEST TUTORIALS
APPROVED BY CLIENTS