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 typical aircraft fuselage structure would be capable of carrying torsion moment. a)True b)- False
Taya2010 [7]

Answer:

True

Explanation:

An aircraft is subject to 3 primary rotations

1) About longitudinal axis known as rolling

2) About lateral axis known as known as pitching

3) About the vertical axis known as yawing

The rolling of the aircraft induces torsion in the body of the aircraft thus the fuselage structure should be capable of carrying torsion

8 0
3 years ago
1. What is the maximum value of the linear density in a crystalline solid (linear density defined as the fraction of the line le
insens350 [35]
Number three number three number three I’m not 100% sure though
4 0
3 years ago
A slab-milling operation is performed on a 0.7 m long, 30 mm-wide cast-iron block with a feed of 0.25 mm/tooth and depth of cut
denis23 [38]

Answer:

a)  T_m=1.787min

b)  MRR=35259.7mm^3/min

Explanation:

From the question we are told that:

Cast-iron block Dimension:

Lengthl=0.7m=>700mm

Width w=30mm

FeedF=0.25mm/tooth

Depth dp=3mm

Diameter d=75mm

Number of cutting teeth n=8

Rotation speed N=200rpm

Generally the equation for Approach is mathematically given by

x=\sqrt{Dd-d^2}

X=\sqrt{75*3-3^2}

X=14.69mm

Therefore

Effective length is given as

L_e=Approach +object Length

L_e=700+14.69

L_e=714.69mm

a)

Generally the equation for Machine Time is mathematically given by

T_m=\frac{L_e}{F_m}

Where

F_m=F*n*N

F_m=0.25*8*200

F_m=400

Therefore

T_m=\frac{714.69}{400}

T_m=1.787min

b)

Generally the equation for Material Removal Rate. is mathematically given by

MRR=\frac{L*B*d}{t_m}

MRR=\frac{700*30*3}{1.787}

MRR=35259.7mm^3/min

3 0
3 years ago
What is the name for a program based on the way your brain works?
xxMikexx [17]

Answer:

KAT

Explanation:

I believe this is what ur looking for

8 0
3 years ago
Read 2 more answers
I’m doing a project on renewable energy. There are 6 energy sources. Solar, wind, geothermal, hydroelectric, tidal, and biomass.
nalin [4]

Answer:

"Biofuels"

Explanation:

I don't know if this counts but I guess it's not one of those.

6 0
2 years ago
Read 2 more answers
Other questions:
  • An uncovered swimming pool loses 1.0 inch of water off its 1,000 ft^2 surface each week due to evaporation. The heat of vaporiza
    14·1 answer
  • What are significant figures​
    13·1 answer
  • Assume a steel pipe of inner radius r1= 20 mm and outer radius r2= 25 mm, which is exposed to natural convection at h = 50 W/m2.
    12·1 answer
  • Why won't Brainly let me make a account or log in? It's always telling me that it can't take my registration at this time or it
    9·1 answer
  • Define;<br>i) Voltage<br>ii) Current<br>iii) Electrical Power<br>iv) Electrical Energy​
    10·1 answer
  • T/f
    10·1 answer
  • For a small company it's usually best to keep the corporate and brand image as___ as possible​
    9·1 answer
  • The majority of adults now own smartphones or tablets, and most of them say they use them in part to get the news. From 2004 to
    7·1 answer
  • Why dose bob not let humans touch him one and only Ivan
    8·1 answer
  • In a typical American building, most modern lighting systems must use what voltage?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!