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
Fantom [35]
3 years ago
8

Suppose that the bag class is efficiently implemented with a fixed array with a capacity of 4000, as in Chapter 3 of the class t

ext. We execute these statements: bag b; b.insert(5); b.insert(4); b.insert(6); b.erase_one(5);
Computers and Technology
1 answer:
Phoenix [80]3 years ago
6 0

Answer:

b.used is 2, b.data[0] is 4, b.data[1] is 6

Explanation:

bag b;

b.insert(5); // b has 5

b.insert(4); // b has 5,4

b.insert(6); // b has 5,4,6

b.erase_one(5); // now 5 is removed , b has 4,6

so no:of elements b.used is 2

b[0]=4;

b[1]=6;

You might be interested in
U GET BRAINLIEST HELP PLZ
Art [367]
BOTH OF THEM ARE C : )
3 0
3 years ago
A network administrator enters the service password-encryption command into the configuration mode of a router. What does this c
Ad libitum [116K]

Answer:

A network administrator enters the service password-encryption command into the configuration mode of a router. What does this command accomplish? This command prevents someone from viewing the running configuration passwords. You just studied 28 terms!

3 0
3 years ago
Have you ever used a device that relies solely on the cloud?
Morgarella [4.7K]
Yeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeesss i have
8 0
3 years ago
There are 3 parts to an osha inspection. What are they
vovikov84 [41]

1)<u> </u><u>An opening conference. The opening conference is a brief meeting during which the OSHA inspector will explain the purpose of the inspection.</u>


2) <u>A worksite “walkaround” The walkaround is the actual inspection.</u>


3) <u>A closing conference.</u>

6 0
3 years ago
What is the best way to move up and down on a computer screen
Misha Larkins [42]

Answer: 1. Using your mouse or laptop trackpad, move your cursor to the scroll bar.

2. Then click and hold your mouse; you can now move the scroll bar up and down.

3. Release the mouse button once you reach the place on your screen you would like to go.

4 0
3 years ago
Other questions:
  • What is the best overall approach to education and career development for IT professionals?
    14·1 answer
  • A specific remote device with a fixed IP address must be able to access your computer across the network. It must be able to acc
    15·2 answers
  • According to the order of operation in Excel: a. Excel performs exponentiation, then multiplication, then division, then subtrac
    10·1 answer
  • Brent is using customer reviews from a reputable online store to help him determine whether or not he should buy a particular la
    10·1 answer
  • Which of the following is NOT a MySQL table storage engine?
    6·1 answer
  • ____________________ software is a type of security software designed to identify and neutralize web bugs, ad-serving cookies, a
    8·1 answer
  • Write a function (funception) that takes in another function func_a and a number start and returns a function (func_b) that will
    7·1 answer
  • You are evaluating the bounce rate of your overall website traffic and find that users with a social media referral source have
    6·1 answer
  • _____________ helps to control and limit the number of consecutive request failures that cross a threshold. Review breaker Micro
    7·1 answer
  • What is an important theme in "Once Upon a Time"?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!