subject
Computers and Technology, 08.02.2021 17:10 u8p4

Create a class template for a class named GeneralStack that holds • A single data member as an array named stack of size 50 to store certain elements
• A constructor to initialize stack with value 0 or 0.0 at all its indexes
• Three member functions i. e. push(type) to add elements in the Stack, pop() to remove elements
from the stack, and currentStatus() to check whether the array is filled or not. (A filled array is
an array that has non-zero value at all of its indexes).
In the main() function, create three objects with different data types of class GeneralStack and test the
functionality of member functions for various values of data members for these objects.

in C++ language..
object oriented programing..

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 18:30, Akkenson17871
The "instance" relationship shows that something is an object of a
Answers: 1
image
Computers and Technology, 22.06.2019 20:10, yqui8767
Assume the existence of a bankaccount class. define a derived class, savingsaccount that contains two instance variables: the first a double, named interestrate, and the second an integer named interesttype. the value of the interesttype variable can be 1 for simple interest and 2 for compound interest. there is also a constructor that accepts two parameters: a double that is used to initialize the interestrate variable, and a string that you may assume will contain either "simple", or "compound", and which should be used to initialize the interesttype variable appropriately. there should also be a pair of functions getinterestrate and getinteresttype that return the values of the corresponding data members (as double and int respectively).
Answers: 2
image
Computers and Technology, 23.06.2019 11:20, 1tzM3
Http is the protocol that governs communications between web servers and web clients (i. e. browsers). part of the protocol includes a status code returned by the server to tell the browser the status of its most recent page request. some of the codes and their meanings are listed below: 200, ok (fulfilled)403, forbidden404, not found500, server errorgiven an int variable status, write a switch statement that prints out the appropriate label from the above list based on status.
Answers: 2
image
Computers and Technology, 24.06.2019 05:30, MegRasmussen31
Hey i really need some solving this problem: 1. encrypt this binary string into cipher text: 110000. include in your answer the formula the decoder would use to decrypt your cipher text in the format (coded answer) x n mod (m) = y & 2. decrypt this cipher text into a binary string: 106 you.
Answers: 2
You know the right answer?
Create a class template for a class named GeneralStack that holds • A single data member as an arra...

Questions in other subjects:

Konu
English, 12.02.2021 03:10
Konu
Mathematics, 12.02.2021 03:10