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
For which of 'water' flow velocities at 200C can we assume that the flow is incompressible ? a.1000 km per hour b. 500 km per ho
ad-work [718]

Answer:d

Explanation:

Given

Temperature=200^{\circ}\approc 473 K

Also \gamma for air=1.4

R=287 J/kg

Flow will be In-compressible when Mach no.<0.32

Mach no.=\frac{V}{\sqrt{\gamma RT}}

(a)1000 km/h\approx 277.78 m/s

Mach no.=\frac{277.78}{\sqrt{1.4\times 287\times 473}}

Mach no.=0.63

(b)500 km/h\approx 138.89 m/s

Mach no.=\frac{138.89}{\sqrt{1.4\times 287\times 473}}

Mach no.=0.31

(c)2000 km/h\approx 555.55 m/s

Mach no.=\frac{555.55}{\sqrt{1.4\times 287\times 473}}

Mach no.=1.27

(d)200 km/h\approx 55.55 m/s

Mach no.=\frac{55.55}{\sqrt{1.4\times 287\times 473}}

Mach no.=0.127

From above results it is clear that for Flow at velocity 200 km/h ,it will be incompressible.

5 0
3 years ago
Define the word vision statement​
Elena L [17]

Answer:

A vision statement describes what a company desires to achieve in the long-run, generally in a time frame of five to ten years, or sometimes even longer. It depicts a vision of what the company will look like in the future and sets a defined direction for the planning and execution of corporate-level strategies.

Explanation:

While companies should not be too ambitious in defining their long-term goals, it is critical to set a bigger and further target in a vision statement that communicates a company’s aspirations and motivates the audience. Below are the main elements of an effective vision statement:

-Forward-looking

-Motivating and inspirational

-Reflective of a company’s culture and core values

-Aimed at bringing benefits and improvements to the organization in the future

-Defines a company’s reason for existence and where it is heading

7 0
3 years ago
1.<br> se reception. It's<br> In remote areas, your GPS device<br> a good idea to have a _
marysya [2.9K]

GPS device  details are given below.

Explanation:

Even a simple GPS unit has a wide range of settings and features. Because every unit’s operation varies, this article won’t provide step-by-step details. Read the owner's manual to familiarize yourself with it.. If you’d like additional help, you can also sign up for a GPS navigation class at an REI store.

Though steps vary, all GPS receivers do the following basic functions:

Display position: A GPS tells you where you are by displaying your coordinates; it also shows your position on its base map or topo map.

Record tracks: When tracking is turned on, a GPS automatically lays down digital bread crumbs, called “track points,” at regular intervals. You use those later to retrace your steps or to evaluate the path you traveled.

Navigate point-to-point: A GPS directs you by giving you the direction and distance to a location, or “waypoint.” You can pre-mark waypoints by entering their coordinates at home. In the field you can have the unit mark a waypoint at a place you'd like to return to, such as the trailhead or your campsite. A GPS unit provides the bearing and distance “as the crow flies” to a waypoint. Because trails don’t follow a straight line, the bearing changes as you hike. The distance to travel also changes (decreasing, unless you’re heading the wrong direction) as you approach your goal.

Display trip data: This odometer-like function tells you cumulative stats like how far you’ve come and how high you’ve climbed.

GPS and your computer: GPS units come with a powerful software program that lets you manage maps, plan routes, analyze trips and more. Invest the time to learn it and to practice using all of its capabilities.

5 0
3 years ago
A six-lane freeway (three lanes in each direction) in rolling terrain has 10-ft lanes and obstructions 5 ft from the right edge.
Anon25 [30]
That is too hard but u got that cuz i believe in you!!!
3 0
3 years ago
The in-situ dry density of a sand is 1.72Mg/m3. The maximum and minimum drydensities, determined by standard laboratory tests, a
Stells [14]

Answer:

Relative density = 0.7 or 70%

Explanation:

The following information was provided by this question

Pd = 1.72mg/mg³

Pd max = 1.81 mg/mg³

Pd min = 1.54 mg/mg³

We substitute into the formula. This formula is contained in the attachment.

[(1/1.54)-(1/1.72)]/[1/1.54 - 1/1.81]

= 0.649350 - 0.581395 / 0.649350 - 0.552486

= 0.067955/0.096864

= 0.7015

= 0.7

The relative density is Therefore 0.7 or 70% when converted to percentage

8 0
2 years ago
Other questions:
  • In C++ the declaration of floating point variables starts with the type name float or double, followed by the name of the variab
    14·1 answer
  • One cylinder in the diesel engine of a truck has an initial volume of 650 cm3 . Air is admitted to the cylinder at 35 ∘C and a p
    7·1 answer
  • A common rule of thumb for controller discretization is to have "6 samples per rise time" in order to achieve a reasonable appro
    9·1 answer
  • A chemistry student accidentally drops a large mercury thermometer and it breaks. The thermometer contained 2 grams of mercury (
    13·1 answer
  • 4 Error-Correcting Polynomials (a) Alice has a length 8 message to Bob. There are 2 communication channels available. When n pac
    6·1 answer
  • What is the mechanical advantage of a pulley with 3 support ropes?
    6·1 answer
  • Chemical milling is used in an aircraft plant to create pockets in wing sections made of an aluminum alloy. The starting thickne
    5·1 answer
  • 4. Long term marijuana use can cause
    12·2 answers
  • Hello, so I have a watch and I don't know where the plugin for the charger is, or what brand it is. Please do help and please DO
    11·1 answer
  • Instructions: For each problem, identify the appropriate test statistic to be use (t test or z-test). Then compute z or t value.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!