Computers and Technology
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..

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 14:30, officialrogerfp3gf2s
Select the correct answer. a company wants to use online methods to target more customers. it decides to conduct a market research by collecting the data of a few customers with their consent. they want to track data of the sites that their customers frequently visit. which software can the company? a. spyware b. bots c. adware d. trojan horse e. rootkits
Answers: 1
image
Computers and Technology, 23.06.2019 16:00, lokaranjan5736
Write a grading program for a class with the following grading policies: a. there are two quizzes, each graded on the basis of 10 points. b. there is one midterm exam and one final exam, each graded on the basis of 100 points. c. the final exam counts for 50% of the grade, the midterm counts for 25%, and the two quizzes together count for a total of 25%. (do not forget to normalize the quiz scores. they should be converted to a percentage before they are averaged in.) any grade of 90 or more is an a, any grade of 80 or more (but less than 90) is a b, any grade of 70 or more (but less than 80) is a c, any grade of 60 or more (but less than 70) is a d, and any grade below 60 is an f. the program will read in the student’s scores and output the student’s record, which consists of two quiz and two exam scores as well as the student’s average numeric score for the entire course and final letter grade. define and use a structure for the student reco
Answers: 2
image
Computers and Technology, 24.06.2019 01:30, shonnybenskin8
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
image
Computers and Technology, 24.06.2019 10:00, shrafe
Which two technologies support the building of single-page applications?
Answers: 2
Do you know the correct answer?
Create a class template for a class named GeneralStack that holds • A single data member as an arra...

Questions in other subjects:

Konu
Mathematics, 05.03.2021 08:00
Konu
Business, 05.03.2021 08:00
Konu
History, 05.03.2021 08:00
Konu
Mathematics, 05.03.2021 08:00