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
A polyethylene rod exactly 10 inches long with a cross-sectional area of 0.04 in2 is used to suspend a weight of 358 lbs-f (poun
Nadya [2.5K]

Answer:

Final length of the rod = 13.90 in

Explanation:

Cross Sectional Area of the polythene rod, A = 0.04 in²

Original length of the polythene rod, l = 10 inches

Tensile modulus for the polymer, E = 25,000 psi

Viscosity, \eta = 1*10^{9} psi -sec

Weight = 358 lbs - f

time, t = 1 hr = 3600 sec

Stress is given by:

\sigma = \frac{Force}{Area} \\\sigma = \frac{358}{0.04} \\\sigma = 8950 psi

Based on Maxwell's equation, the strain is given by:

strain = \sigma ( \frac{1}{E} + \frac{t}{\eta} )\\Strain = 8950 ( \frac{1}{25000} + \frac{3600}{10^{9} } )\\Strain = 0.39022

Strain = Extension/(original Length)

0.39022 = Extension/10

Extension = 0.39022 * 10

Extension = 3.9022 in

Extension = Final length - Original length

3.9022 =  Final length - 10

Final length = 10 + 3.9022

Final length = 13.9022 in

Final length = 13.90 in

7 0
3 years ago
Which of the following devices would you expect to consume the most energy for each hour that it operates?
Gennadij [26K]
An electric space heater
4 0
3 years ago
A dice is thrown 420 times and the number 6 is obtained 63 times; express the frequency of obtaining
STatiana [176]

Answer: 15%

Explanation:

Frequency of obtaining = 63/420 = 0.15 = 15%

6 0
2 years ago
I don’t understand this
blondinia [14]

Answer:

Sorry for the delayed response- Right now I don't have time to give you the answer, but I really want to help so I'll try to phrase it in a easier way to understand things: Basically what you need to do for this problem is find the area of the base of the figure (which means length x width) and then you would simply find the volume of 160cm^{2} by finding the length of each side of the figure, find the length of the figure, find the height of the figure and then find the radius.

Have an amazing day and I hope this can somewhat help :)

7 0
3 years ago
Convert 10.25 degrees into radians; and π, π/2 and π/3 radians into degrees.
enot [183]

Answer:

0.1788 ,180°,90°,60°

Explanation:

CONVERSION FROM DEGREE TO RADIANS: For converting degree to radian we have to multiply with \frac{\pi}{180}

using this concept 10.25°=10.25×\frac{\pi}{180}=0.1788

CONVERSION FROM RADIAN TO DEGREE: For converting radian to degree we have to multiply with\frac{180}{\pi}

using this concept π=π×\frac{180}{\pi}

                                  =180°

  \frac{\pi}{2}= \frac{\pi}{2}[/tex×[tex]\frac{180}{\pi}

                                    =90°

  \frac{\pi}{3}= \frac{\pi}{3}×\frac{180}{\pi}

                                    =60°

3 0
3 years ago
Read 2 more answers
Other questions:
  • A high molecular weight hydrocarbon gas A is fed continuously into a heated mixed flow reactor (0.1liter) where it is thermally
    6·1 answer
  • What is meant by the thickness to chord ratio of an aerofoil?
    12·1 answer
  • What’s the population in the world and why does it keep increasing in bad areas.
    8·1 answer
  • As an engineer which types of ethical issues or problem you can face in industrial environment.
    8·1 answer
  • What is the metal removal rate when a 2 in-diameter hole 3.5 in deep is drilled in 1020 steel at cutting speed of 120 fpm with a
    10·1 answer
  • A. A compound gear train is composed of four gears: E,F,G,H. Gear E has 15 teeth and is meshed with gear F. Gear F has 25 teeth
    11·1 answer
  • What is the scope of hazard review in a worksite analysis
    7·1 answer
  • The design-bid-build model is prons to abuse because separation of phases facilitates the hiding of corrupt practices.
    7·2 answers
  • 12. Never spray brakes with a high-pressure stream of water or air because it could blow asbestos fibers into the air.
    8·1 answer
  • Which band has an average of $3.58 per hour of parking?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!