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
Which of the following types of protection is an employer required to pay for?
77julia77 [94]

Answer:

Hearing protection would be your answer!

Explanation:

This includes earplugs,muffs etc.

Hope it helps!

7 0
3 years ago
Read 2 more answers
A rod that was originally 100-cm-long experiences a strain of 82%. What is the new length of the rod?
Ierofanga [76]

Answer: (b)

Explanation:

Given

Original length of the rod is L=100\ cm

Strain experienced is \epsilon=82\%=0.82

Strain is the ratio of the change in length to the original length

\Rightarrow \epsilon =\dfrac{\Delta L}{L}\\\\\Rightarrow 0.82=\dfrac{\Delta L}{100}\\\\\Rightarrow \Delta L=82\ cm

Therefore, new length is given by (Considering the load is tensile in nature)

\Rightarrow L'=\Delta L+L\\\Rightarrow L'=82+100=182\ cm

Thus, option (b) is correct.

8 0
3 years ago
Steam enters an adiabatic turbine at 10 MPa and 500°C and leaves at 10 kPa with a quality of 90 percent. Neglecting the changes
Anna35 [415]

Answer:

The mass flow rate of steam m=5.4 Kg/s

Explanation:

Given:

  At the inlet of turbine P=10 MPa  ,T=500 C

 AT the exit of turbine  P=10 KPa   ,x=0.9

 Required power=5 MW

From steam table

<u> At 10 MPa and 500 C:</u>

  h=3374 KJ/Kg  ,s=6.59 KJ/Kg-K  (Super heated steam table)

<u>At 10 KPa:</u>

h_g=2675.1 KJ/Kg, h_f=417.51  KJ/Kg

s_g= 7.3  KJ/Kg-K                ,s_f=1.3   KJ/Kg-K

So enthalpy of steam at the exit of turbine

h= h_f+x(h_g- h_f)

Now by putting the values

h= 417.51+0.9(2675.1- 417.51) KJ/Kg

h=2449.34  KJ/Kg

Lets take m is the mass flow rate of steam

So 5\times 10^3=m\times (3374-2449.34)

m=5.4 Kg/s

So the mass flow rate of steam m=5.4 Kg/s

8 0
3 years ago
4. In the Hyatt Regency walkway case study, it is reported that Jack Gillum stamps the 42 shop drawings, including the revised S
mario62 [17]

Answer:

Responsibility

Explanation:

By stamping the drawings that he was looking over, Jack Gillum conveys the fact that he is accepting responsibility for this work. The purpose of Gillum's stamp is to explain that such work has been under engineering review, and that it has fulfilled all the requirements that he watches our for. By putting his stamp in this work, Gillum accepts responsibility in case an error or a discrepancy is found in the drawings.

3 0
3 years ago
1. A loss of braking effectiveness due to too much heat in the brakes is called
motikmotik

Answer:

brake fade. loss of brake effectiveness due to overheating.

Explanation:

8 0
1 year ago
Other questions:
  • 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
  • What are cars manufactured with today that allows for quick stopping without the brakes locking up?
    5·1 answer
  • What is the difference Plastic vs elastic deformation.
    13·1 answer
  • What is an isentropic process?
    7·1 answer
  • A small pad subjected to a shearing force is deformed at the top of the pad 0.12 in. The heigfit of the pad is 1.15 in. What is
    7·1 answer
  • Given the circuit at the right in which the following values are used: R1 = 20 kΩ, R2 = 12 kΩ, C = 10 µ F, and ε = 25 V. You clo
    11·1 answer
  • An inventor tries to sell you his new heat engine that takes in 40 J of heat at 87°C on each cycle, expels 30 J at 27°C, and doe
    14·1 answer
  • 8. What is the purpose of the 300 Log?
    12·1 answer
  • 6) Describe the differences between the troposphere and stratosphere.
    14·1 answer
  • A master stud pattern is laid out somewhat<br> like a?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!