C++ Answers

Questions answered by 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


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 ?



Make a program that will input minutes, convert it into hour. Display the equivalent hour/s .


Your program will be terminated if you input zero in the hour.


Ex. Minutes = 120


Equivalent Hour is = 2

Make a program that will input hour, convert it into minutes and seconds. Display the minutes


and seconds respectively. Your program will be terminated if you input zero in the hour.


Ex. Hour = 2


Minutes = 120


Seconds = 7200

Make a program that will input Kilometer, convert it into meter and display the converted


meter. Your program will be terminated if you input zero in the kilometer.


Make a program that will input a number and identify if it is ODD or EVEN. Your program will have


an option to have another entry or not.

LATEST TUTORIALS
APPROVED BY CLIENTS