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 car is about to start but it blows up. what is the problem with the car<br> ?
ratelena [41]

Answer:

because there is a bomb

6 0
3 years ago
Read 2 more answers
Holmes owns two suits: one black and one tweed. He always wears either a tweed suit or sandals. Whenever he wears his tweed suit
vazorg [7]

Answer:

He wore his black suit, another color of shirt (not purple) and shoes

Explanation:

Holmes owns two suits: one black and one tweed.

Whenever he wears his tweed suit and a purple shirt, he chooses not to wear a tie and whenever he wears sandals, he always wears a purple shirt.

So, if he wore a bow tie yesterday, it means he wore his black suit, another color of shirt (not purple) and shoes because the shirt color is not purple

4 0
3 years ago
Small droplets of carbon tetrachloride at 68 °F are formed with a spray nozzle. If the average diameter of the droplets is 200 u
Licemer1 [7]

Answer:

the difference in pressure between the inside and outside of the droplets is 538 Pa

Explanation:

given data

temperature = 68 °F

average diameter = 200 µm

to find out

what is the difference in pressure between the inside and outside of the droplets

solution

we know here surface tension of carbon tetra chloride at 68 °F is get from table 1.6 physical properties of liquid that is

σ = 2.69 × 10^{-2} N/m

so average radius = \frac{diameter}{2} =  100 µm = 100 ×10^{-6} m

now here we know relation between pressure difference and surface tension

so we can derive difference pressure as

2π×σ×r = Δp×π×r²    .....................1

here r is radius and  Δp pressure difference and σ surface tension

Δp = \frac{2 \sigma }{r}    

put here value

Δp = \frac{2*2.69*10^{-2}}{100*10^{-6}}  

Δp = 538

so the difference in pressure between the inside and outside of the droplets is 538 Pa

7 0
3 years ago
10–25. The 45° strain rosette is mounted on the surface of a shell. The following readings are obtained for each gage: ε a = −20
vazorg [7]

Answer:

The answer is 380.32×10^-6

Refer below for the explanation.

Explanation:

Refer to the picture for brief explanation.

7 0
3 years ago
Fuel filters are being replaced on a HPCR diesel
saw5 [17]

Answer:) The correct answer is B. at the end of the fuel rail.

2) The one who is correct is the Technician A.

Explanation:

7 0
3 years ago
Other questions:
  • Select the properties and typical applications for the high carbon steels.
    12·1 answer
  • Rain falls on a 1346 acre urban watershed at an intensity of 1.75 in/hr for a duration of 1 hour. The catchment land use is 20%
    10·1 answer
  • Which is the required type of fire extinguisher for standard naval vessels
    9·1 answer
  • The number of pulses per second from IGBTs is referred to as
    10·1 answer
  • The complexity of bfs and dfs
    11·1 answer
  • Which of the following is MOST likely to be true about a service manager?
    8·1 answer
  • Water flow enters a pipe at a velocity of 1m/s. The pipe inlet is 10cm. The pipe outlet is 6cm. 1. Determine the velocity of the
    9·1 answer
  • A person has driven a car 180 m in 40 seconds. What is the car’s speed?
    12·1 answer
  • Risks are Not Perceived Differently from What is Happening<br> False<br> True
    14·1 answer
  • You are coming to this intersection, and are planning on turningright. There is a vehicle close behind you. You should?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!