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
An air compressor of mass 120 kg is mounted on an elastic foundation. It has been observed that, when a harmonic force of amplit
kupik [55]

Answer:

equivalent stiffness is 136906.78 N/m

damping constant is 718.96 N.s/m

Explanation:

given data

mass = 120 kg

amplitude = 120 N

frequency = 320 r/min

displacement = 5 mm

to find out

equivalent stiffness and damping

solution

we will apply here frequency formula that is

frequency ω = ω(n) √(1-∈ ²)      ......................1

here  ω(n) is natural frequency i.e = √(k/m)

so from equation 1

320×2π/60 = √(k/120) × √(1-2∈²)

k × ( 1 - 2∈²) = 33.51² ×120

k × ( 1 - 2∈²) = 134752.99    .....................2

and here amplitude ( max ) of displacement is express as

displacement = force / k  ×  (  \frac{1}{2\varepsilon \sqrt{1-\varepsilon ^2}})

put here value

0.005 = 120/k   ×  (  \frac{1}{2\varepsilon \sqrt{1-\varepsilon ^2}})  

k ×∈ × √(1-2∈²) = 1200       ......................3

so by equation 3 and 2

\frac{k\varepsilon \sqrt{1-\varepsilon^2})}{k(1-2\varepsilon^2)} = \frac{12000}{134752.99}

\varepsilon^{2} - \varepsilon^{4}  = 7.929 * 10^{-3} - 0.01585 * \varepsilon^{2}

solve it and we get

∈ = 1.00396

and

∈ = 0.08869

here small value we will consider so

by equation 2 we get

k × ( 1 - 2(0.08869)²) = 134752.99

k  = 136906.78 N/m

so equivalent stiffness is 136906.78 N/m

and

damping is express as

damping = 2∈ √(mk)

put here all value

damping = 2(0.08869) √(120×136906.78)

so damping constant is 718.96 N.s/m

7 0
3 years ago
5) Calculate the LMC wal thickness of a pipe and tubing with OD as 35 + .05 and ID as 25 + .05 A) 4.95 B) 5.05 C) 10 D) 15.025
padilas [110]

Answer:

B) 5.05

Explanation:

The wall thickness of a pipe is the difference between the diameter of outer wall and the diameter of inner wall divided by 2. It is given by:

Thickness of pipe = (Outer wall diameter - Inner wall diameter) / 2

Given that:

Inner diameter = ID = 25 ± 0.05, Outer diameter = OD = 35 ± 0.05

Maximum outer diameter = 35 + 0.05 = 35.05

Minimum inner diameter = 25 - 0.05 = 24.95

Thickness of pipe = (maximum outer wall diameter - minimum inner wall diameter) / 2 = (35.05 - 24.95) / 2 = 5.05

or

Thickness = (35 - 25) / 2 + 0.05 = 10/2 + 0.05 = 5 + 0.05 = 5.05

Therefore the LMC wall thickness is 5.05

6 0
3 years ago
Read 2 more answers
What type of cartilage provides support and shock absorption?.
Katena32 [7]

Answer:

fibrocartilage

7 0
2 years ago
What’s the answer please help
irina1246 [14]

Answer:

It B

Explanation:

4 0
3 years ago
Question
Leto [7]

Answer:

True

Explanation:

The CNC is the primary interface between the machine operator and the machine.

4 0
2 years ago
Other questions:
  • Capitol Brewing Inc.'s management is very concerned with declining sales of their major product, a dark ale, and has asked for h
    14·1 answer
  • Which situation might cause potential hazards at a construction site?
    12·2 answers
  • Energy that causes a transfer of heat between marterials
    13·1 answer
  • Consider an area-source box model for air pollution above a peninsula of land. The length of the box is 15 km, its width is 80 k
    8·1 answer
  • In remote areas, your gps devices may lose reception. It’s a good idea to have a
    7·2 answers
  • A heat recovery system​ (HRS) is used to conserve heat from the surroundings and supply it to the Mars Rover. The HRS fluid loop
    12·1 answer
  • Storing parts outside doesn't cause any environmental risks as long as the items are covered.
    12·2 answers
  • Lets try to get to 100 sub before charismas day <br> Jordan Gracia 32 sub and 5 videos
    13·2 answers
  • Ppman2000 Aye Get On Treasure Quest and Join Masons Kingdom :D
    10·1 answer
  • 3. If nothing can ever be at absolute zero, why does the concept exist?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!