subject
Engineering, 02.06.2021 16:50 keegs40

Containers are used to store objects of the same type and provide operations with which these objects can be managed. These operations include object insertion, deletion, and retrieval. Memory is allocated for containers dynamically at runtime.
Containers thus provide a safe and easy way to manage collections of objects. The C++ standard library provides various
class templates for container management in the Containers Library. These classes can be categorized as follows:
ï‚· Sequential containers, where the objects are arranged sequentially and access to an object can either be direct or
sequential.
ï‚· Associative containers, where the objects are generally organized and managed in a tree structure and can be referenced
using keys.
Sequential Containers
Sequential containers are distinguished by the operations defined for them, which are either generic or restricted. Restricted
operations, such as appending at the end of a container, have constant runtimes. That is, the runtime is proportional to a
fixed period of time and does not depend on the number of objects in the container.
The following are examples of sequential containers:
ï‚· Queues, which are managed on the First-In-First-Out principle. The first element to be inserted is also removed first.
ï‚· Stacks, which are managed on the Last-In-First-Out principle. The last element to be inserted is removed first.
ï‚· Vectors, which are basically a flexible-size array that supports fast random access.
Thus, in this programming assignment, you are going to create a general Vector class without using the utilities of the
standard vector class and the template feature of C++. The design should let its users to use a vector of integers or
characters. You should review the standard vector class for learning what to include as data members and member functions.
OOP principles such as encapsulation, inheritance, and polymorphism should be taken into account in the class design.
Partial grading will be in use in case there is no full implementation.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Air is to be cooled in the evaporator section of a refrigerator by passing it over a bank of 0.8-cm-outer-diameter and 0.4-m-long tubes inside which the refrigerant is evaporating at -20°c. air approaches the tube bank in the normal direction at 0°c and 1 atm with a mean velocity of 4 m/s. the tubes are arranged in-line with longitudinal and transverse pitches of sl- st 1.5 cm. there are 30 rows in the flow direction with 15 tubes in each row. determine (a) the refrigeration capacity of this system and (b) pressure drop across the tube bank. evaluate the air properties at an assumed mean temperature of -5°c and 1 atm. is this a good assumption?
Answers: 1
question
Engineering, 06.07.2019 02:30
Around steel bar, made from material with a yield stress of 750mpa, is loaded so that it has stresses co locations of maximum normal stress and maximum shear stress. use maximum shear stress and maximum distortion energy theories to calculate the safety factors for initial yielding failures.
Answers: 3
question
Engineering, 06.07.2019 03:30
The load on a bolt consists of an axial pull of 10 kn together with a transverse shear force of 5 kn. the bolt material has a yield strength of syt syc 100 mpa. find the diameter of the bolt at factor of safety n-0.5, n 1 and n-2 using maximum shear stress theory
Answers: 3
question
Engineering, 06.07.2019 04:10
Aheat pump with refrigerant-134a as the working fluid is used to keep a space at 25°c by absorbing heat from geothermal water that enters the evaporator at 500c at a rate of 0.065 kg/s and leaves at 40°c. the refrigerant enters the evaporator at 20°c with a quality of 23 percent and leaves at the inlet pressure as saturated vapor. the refrigerant loses 300 w of heat to the surroundings as it flows through the compressor and the refrigerant leaves the compressor at 1.4 mpa at the same entropy as the inlet. determine: (a) the degrees of subcooling of the refrigerant in the condenser, b)-the mass flow rate of the refrigerant . (c) the heating load and the cop of the pump, and d)-the theoretical minimum power input to the compressor for the same heating load.
Answers: 3
You know the right answer?
Containers are used to store objects of the same type and provide operations with which these object...
Questions
question
Mathematics, 20.09.2020 01:01
question
English, 20.09.2020 01:01
question
Mathematics, 20.09.2020 01:01
Questions on the website: 13722367