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
The acceleration due to gravity at sea level is g=9.81 m/s^2. The radius of the earth is 6370 km. The universal gravitational co
solmaris [256]

Answer:

Mass of earth will be M=5.96\times 10^{24}kg

Explanation:

We have given acceleration due to gravity g=9.81m/sec^2

Radius of earth = 6370 km =6370\times 10^3m

Gravitational constant G=6.67\times 10^{-11}Nm^2/kg^2

We know that acceleration due to gravity is given by

g=\frac{GM}{R^2}, here G is gravitational constant, M is mass of earth and R is radius of earth

So 9.81=\frac{6.67\times 10^{-11}\times M}{(6370\times 10^3)^2}

M=5.96\times 10^{24}kg

So mass of earth will be M=5.96\times 10^{24}kg

3 0
3 years ago
Discuss the trends in reaction forces versus jet velocity. Is the trend consistent with the theory? Does it make sense?
Snowcat [4.5K]

Answer:

The rate of fluid motion(Jet Velocity) exert a force on the object in contact with it. This force is also knowns as reactions forces.

In theory, this is related to Newton Second of motion which States that:

The rate of change of momentum is directly proportional to impressed force.

This makes sense and it is consistent with theory. Detailed explanation below:

Explanation:

A jet which can be illustrated as a moving fluid, in natural or artificial systems, may exert forces on objects in contact with it.

To analyze fluid motion, a finite region of the fluid (control volume) is usually selected, and the gross effects of the flow, such as its force or torque on an object, is determined by calculating the net mass rate that flows into and out of the control volume.

These forces can be determined, as in solid mechanics, by the use of Newton’s second law, or by the momentum equation(Consistent with the theory). The force exerted by a jet of fluid on a flat or curve surface can be resolved by applying the momentum equation. The study of these forces is essential to the study of fluid mechanics and hydraulic machinery.

In practice, Engineers and designers use the momentum equation to accurately calculate the force that moving fluid may exert on a solid body. For example, in hydropower plants, turbines are utilized to generate electricity. Turbines rotate due to force exerted by one or more water jets that are directed tangentially onto the turbine’s vanes or buckets. The impact of the water on the vanes generates a torque on the wheel, causing it to rotate and to generate electricity.

3 0
4 years ago
All machines have three fundamental hazards: moving parts, point of operation, and?
OlgaM077 [116]

Answer:

All machines have three fundamental hazards: moving parts, point of operation, and the power transmission.

Explanation:

The unit that supplies power to the machine is a critical hazard due to high energy sources being potential fatal if proper protocols are not followed. This is why lockout tagout (LOTO) measures are put in place in order to protect people while they work on equipment.

3 0
2 years ago
4.In a hydroelectric power plant, 100 m3/s of water flows from an elevation of 120 m to a turbine, where electric power is gener
Dmitrij [34]

Answer:

The rate of irreversible loss will be "55.22 MW".

Explanation:

The given values are:

Elevation,

h = 120 m

Flow of water,

Q = 100 m³/s

Efficiency,

= 80%

i.e,

= 0.8

Efficiency turbine,

= 50 MW

Now,

Without any loss,

The power generated by turbine will be:

⇒ P=\delta gQh

On substituting the values, we get

⇒     =1000\times 9.8\times 100\times 120

⇒     =117.72 \ MW

Power generated in actual will be:

= \frac{50}{0.8}

= 62.5 \ MW

Hence,

Throughout the piping system,

The rate of irreversible loss is:

= Power \ generated \ by \ turbine-Power \ generated  \ in \ actual

= 117.72-62.5

= 55.22 \ MW

4 0
3 years ago
Interpret the Blame responsibility and causation in your own words in the light of Columbia Accident.
Licemer1 [7]

Answer:

Proposed Improvements and Generic Lessons

Within 2 h of losing the signal from the returning spacecraft, NASA’s Administrator established the Columbia Accident Investigation Board (CAIB) to uncover the conditions that had produced the disaster and to draw inferences that would help the US space program to emerge stronger than before (CAIB, 2003). Seven months later, the CAIB released a detailed report that included its recommendations (Starbuck and Farjoun, 2005).

The CAIB (2003) report attempted to seek answers to the following four crucial questions:

1.

Why did NASA continue to launch spacecraft despite many years of known foam debris problems?

2.

Why did NASA managers conclude, despite the concerns of their engineers, that the foam debris strike was not a threat to the safety of the mission?

3.

How could NASA have forgotten the lessons of Challenger?

4.

What should NASA do to minimize the likelihood of such accidents in the future?

Although the CAIB’s comprehensive report raised important questions and offered answers to some of them, it also left many major questions unanswered (Starbuck and Farjoun, 2005).

1.

Why did NASA consistently ignore the recommendations of several review committees that called for changes in safety organization and practices?

2.

Did managerial actions and reorganization efforts that took place after the Challenger disaster contribute, both directly and indirectly, to the Columbia disaster?

3.

Why did NASA’s leadership fail to secure more stable funding and to shield NASA’s operations from external pressures?

By examining, with respect to the Columbia disaster, the case of NASA as an organization, one can try to extract generalizations that could be useful for other organizations, especially those engaged in high-risk activities—such as nuclear power plants, oil and gas, hospitals, airlines, armies, and pharmaceutical companies—and such generic principles may also be salutary for any kind of organization.

The CAIB (2003) report recommended developing a plan to inspect the condition of all RCC systems, the investigation having found the existing inspection techniques to be inadequate. RCC panels are installed on parts of the shuttle, including the wing leading edges and nose cap, to protect against the excessive temperatures of reentry. They also recommended that taking images of each shuttle while in orbit should be standard procedure as well as upgrading the imaging system to provide three angles of view of the shuttle, from liftoff to at least SRB separation. “The existing camera sites suffer from a variety of readiness, obsolescence, and urban encroachment problems.” The board offered this suggestion because NASA had had no images of the Columbia shuttle clear enough to determine the extent of the damage to the wing. They also recommended conducting inspections of the TPS, including tiles and RCC panels, and developing action plans for repairing the system. The report included 29 recommendations, 15 of which the board specified must be completed before the shuttle returned to flight status, and also made 27 “observations” (CAIB, 2005).

7 0
3 years ago
Other questions:
  • Which description defines the mechanical advantage of a simple lever?
    12·1 answer
  • A square silicon chip (k = 152 W/m·K) is of width 7 mm on a side and of thickness 3 mm. The chip is mounted in a substrate such
    14·1 answer
  • The small washer is sliding down the cord OA. When it is at the midpoint, its speed is 28 m/s and its acceleration is 7 m/s 2 .
    13·1 answer
  • Select the correct statement(s) regarding frequency modulation (FM). a. baseband amplitude changes (information) are captured as
    6·1 answer
  • Name the seven physical qualities for which standards have been developed.
    7·1 answer
  • The slotted link is pinned at O, and as a result of rotation it drives the peg P along the horizontal guide. Compute the magnitu
    15·1 answer
  • In a flow over a flat plate, the Stanton number is 0.005: What is the approximate friction factor for this flow a)- 0.01 b)- 0.0
    8·1 answer
  • Exercise 1. (Sum of Integers) Implement the functions sum_iter() and sum_rec() in sum_of_ints.py that take an integer n as argum
    9·1 answer
  • The energy flux associated with solar radiation incident on the outer surface of the earth’s atmosphere has been accurately meas
    11·1 answer
  • ____________engineers build and test tools and machines, and they rely heavily on computer, math, and problem-solving skills.
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!