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 total of 245 kip force is applied to a set of 10 similar bolts. If the spring constant of each bolt is 0.4 Mlb/in and that of
zubka84 [21]

Answer: The net force in every bolt is 44.9 kip

Explanation:

Given that;

External load applied = 245 kip

number of bolts n = 10

External Load shared by each bolt (P_E) = 245/10 = 24.5 kip

spring constant of the bolt Kb = 0.4 Mlb/in

spring constant of members Kc = 1.6 Mlb/in

combined stiffness factor C = Kb / (kb+kc) = 0.4 / ( 0.4 + 1.6)  = 0.4 / 2 = 0.2 Mlb/in

Initial pre load Pi = 40 kip

now for Bolts; both pre load Pi and external load P_E are tensile in nature, therefore we add both of them

External Load on each bolt P_Eb = C × PE = 0.2 × 24.5 = 4.9 kip

So Total net Force on each bolt Fb = P_Eb + Pi

Fb = 4.9 kip + 40 kip

Fb = 44.9 kip

Therefore the net force in every bolt is 44.9 kip

4 0
3 years ago
What is the difference between filler and electrode in Welding? Can a filler be an electrode? Can an electrode be a filler? Why?
Vlada [557]

Explanation:

<u>Filler:</u>

  Filler is the material rod is used when we are joining two material by using welding process.If thickness of work piece is more so it will become compulsory to provide some filler material for making the welding join to withstand high stresses.

<u>Electrode:</u>

  Electrode is the element which is used to complete the electric circuit in welding .Some time electrode is connected with positive terminal and some time with negative terminal ,it depends on the requirement of welding process.In Tungsten inert gas welding electrode is connected negative terminal but on the other hand Metal inert gas welding electrode is connected with positive terminal.Electrode can be consumable non-consumable depends on the condition.

Yes electrode can be work as filler material ,in Metal inert gas welding wire is used as electrode as well as filler material.In Metal inert gas welding consumable electrode is used on the other hand Tungsten inert gas welding non-consumable electrode is used.In Tungsten inert gas welding if thickness of work pieces is less than 5 mm then no need to used any filler material but if thickness is more than 5 mm then we have to use filler material.

8 0
3 years ago
A horizontal curve of a two-lane undivided highway (12-foot lanes) has a radius of 678 feet to the center line of the roadway. A
OLEGan [10]

Answer:

maximum speed for safe vehicle operation = 55mph

Explanation:

Given data :

radius ( R ) = 678 ft

old building located ( m )= 30 ft

super elevation = 0.06

<u>Determine the maximum speed for safe vehicle operation </u>

firstly calculate the stopping sight distance

m = R ( 1 - cos \frac{28.655*S}{R} )  ----  ( 1 )

R = 678  

m ( horizontal sightline ) = 30 ft

back to equation 1

30 = 678 ( 1 - cos (28.655 *s / 678 ) )

( 1 - cos (28.655 *s / 678 ) )  = 30 / 678 = 0.044

cos \frac{28.65 *s }{678}  = 1.044

hence ; 28.65 * s = 678 * 0.2956

s = 6.99 ≈ 7 ft

next we will calculate the design speed ( u ) using the formula below

S = 1.47 ut  + \frac{u^2}{30(\frac{a}{3.2} )-G1}  ----  ( 2 )

t = reaction time,  a = vehicle acceleration, G1 = grade percentage

assuming ; t = 2.5 sec , a = 11.2 ft/sec^2, G1 = 0

back to equation 2

6.99 = 1.47 * u * 2.5 + \frac{u^2}{30[(11.2/32.2)-0 ]}

3.675 u  + 0.0958 u^2 - 6.99 = 0

u ( 3.675 + 0.0958 u ) = 6.99

5 0
2 years ago
2) The switch in the circuit below has been closed a long time. At t=0, it is opened.
saul85 [17]

Answer:

  il(t) = e^(-100t)

Explanation:

The current from the source when the switch is closed is the current through an equivalent load of 15 + 50║50 = 15+25 = 40 ohms. That is, it is 80/40 = 2 amperes. That current is split evenly between the two parallel 50-ohm resistors, so the initial inductor current is 2/2 = 1 ampere.

The time constant is L/R = 0.20/20 = 0.01 seconds. Then the decaying current is described by ...

  il(t) = e^(-t/.01)

  il(t) = e^(-100t) . . . amperes

8 0
2 years ago
What type of foundation do engineers use for a small and light building and when the load of the building is borne by columns? A
ikadub [295]

Answer:

A.

Explanation:

Individual footings are the commonest, and they are often used if the load of the building is borne by columns. Typically, every column will have an own footing. The footing is usually only a rectangular or square pad of concrete on which the column is erected

8 0
2 years ago
Other questions:
  • A satellite orbits the Earth every 2 hours at an average distance from the Earth's centre of 8000km. (i) What is the average ang
    7·1 answer
  • Explain what entropy is in relation to the second law of thermodynamics?
    9·1 answer
  • A hydrogen-filled balloon to be used in high altitude atmosphere studies will eventually be 100 ft in diameter. At 150,000 ft, t
    7·1 answer
  • From the information generated in Prob. 6.4 (from your previous Aero HW#1), calculate the maximum rate of climb for the single-e
    13·1 answer
  • What is a core self-evaluation, include identifying and explaining the components of core self-evaluation. And, how a group lead
    8·2 answers
  • Why does an aeroplane smoke in the air​
    14·1 answer
  • An article gave a scatter plot along with the least squares line of x = rainfall volume (m3) and y = runoff volume (m3) for a pa
    6·1 answer
  • Who else hates this because i do
    12·2 answers
  • HELP ME PLEASE RN
    8·1 answer
  • Which of the following sensors is used to provide suspension control module with feedback regarding vehicle cornering​ forces?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!