1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Svetach [21]
3 years ago
6

You are given a partial implementation of one header file, GildedRose.hpp. Item is a class that holds the information for each i

tem in the store. GildedRose is a class that holds a listing of Item objects. This inventory should hold at least 10 items. For this you should use C containers. You should use a container from the ones you have studied so far such as the vector or the array. Complete the implementation of GildedRose class, adding public/private member variables and functions as needed. The implementation of Item class is already done for you. You should choose an appropriate data structure to maintain this inventory with an unknown size, known only at runtime. Your code is tested in the provided main.cpp. You will need to implement the following functions: Constructors/Destructors - Initialize your data. Allocate memory where necessary. The destructor should deallocate memory where necessary. size() - This should return the number of items currently for sale (this is different from the capacity). get(size_t) - This should return the item with the matching index. For example if given an index of 3, you should return the item at index 3 in the list. add(Item) - This should add another item for sale in the Gilded Rose by adding it to your inventory. operator[](size_t) - This should perform identical to the get(size_t) function. Initially the given code will not compile. As you complete the code, the tests should start to pass in main.cpp.

Engineering
1 answer:
devlian [24]3 years ago
3 0

Answer:

The answer is attached below

Explanation:

You might be interested in
What are the horizontal structures beneath a slab that help transfer the load from the slab to the columns?
Delicious77 [7]

Answer: D) Beams

Explanation:

3 0
2 years ago
Read 2 more answers
If 1 uF capacitor is fully charged with 120 V across it, how much energy is stored in it? (a) 7.2 kJ (b) 7.2 mJ (c) 0.12 mJ (d)
jeyben [28]

Answer:

(b) 7.2 mJ

Explanation:

ENERGY STORED IN CAPACITOR: the energy is stored in capacitor in electric field

which can be calculated by expressions

E=\frac{1}{2} c v{^2}

=\frac{1}{2} 10^{-6}120^{2}

=7200×10^{-6} J

= 7.2×10^{-3} J

=7.2 mJ

4 0
3 years ago
while performing a running compression test how should running compression compare to static compression
algol [13]

Answer:

The idle speed of a running compression should be between 50-75 PSI and that is about half of the static compression.

Explanation:

The Running or Dynamic compression is used to determine how well the cylinder in an engine  is absorbing air, reserving it for the proper length of time, and releasing it to the exhaust. The static or cranking compression test is used to check the sealing of the cylinder. Before performing the running compression test, the static compression test is first performed to rule out other issues like bent valves.

The standard value for the static compression is given by;

Compression ratio * 14.7 = Manufacturers Specification

The running compression should always be half of the static compression.

5 0
3 years ago
Please help, Artificial Intelligence class test
MrRissso [65]

The answer to your quesition is b

4 0
3 years ago
A teenage brain is already fully developed to enable us to manage risks effectively.
Kisachek [45]

Answer:

false

Explanation:

the brain is only really fully devolved by age 26

3 0
2 years ago
Read 2 more answers
Other questions:
  • The following laboratory tests are performed on aggregate samples:a. Specific gravity and absorptionb. Soundnessc. Sieve analysi
    13·1 answer
  • The ratio of the weight of a substance to the weight of equal volume of water is known as a) Density b) specific gravity c) spec
    8·1 answer
  • Air enters a horizontal, constant-diameter heating duct operating at steady state at 290 K, 1 bar, with a volumetric flow rate o
    15·2 answers
  • A fluid flows steadily through a pipe with a uniform cross sectional area. The density of the fluid decreases to half its initia
    6·1 answer
  • Question 11 (1 point)
    12·1 answer
  • QUESTIONS
    12·1 answer
  • Compute the thermal efficiency for an ideal gas turbine cycle that operates with a pressure ratio of 6.75 and uses helium gas.
    12·1 answer
  • (30 pts) A simply supported beam with a span L=20 ft and cross sectional dimensions: b=14 in; h=20 in; d=17.5 in. is reinforced
    13·1 answer
  • Provide two programming examples in which multithreading provides better performance than a single-threaded solution. Provide on
    11·1 answer
  • How to clean a snowblower carburetor without removing it.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!