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
liq [111]
3 years ago
14

For the bag class in Chapter 3 (using a fixed array and a typedef statement) what steps were necessary for changing from a bag o

f integers to a bag of double values?
A. Change the array declaration from int data[CAPACITY] to double data [CAPACITY and recompile.
B. Change the int to double in the typedef statement and recompile
C. Round each double value to an integer before putting it in the bag.
D. Round each double value to an integer after taking it out of the bag.
Computers and Technology
1 answer:
stiks02 [169]3 years ago
8 0

Answer:

B. Change the int to double in the typedef statement and recompile

Explanation:

A typedef declaration is used to assign names to database.

Syntax:

typedef data_type new_name;

For this case the initial deceleration was

typedef int bag;

To change it to double values we have to do following

typedef double bag;

Therefore, option B is correct change the int to double in the typedef statement and recompile.

You might be interested in
In a new blank word document you can typing where ?
djyliett [7]
In the document...? Not sure what the question is.
8 0
3 years ago
Which of the following is a good way to improve your credit score?
Ganezh [65]
The answer is chope this helps
6 0
3 years ago
What are the two types of modern wind turbines?
gulaghasi [49]
To be honest I'm not sure but I'd say B,C
7 0
3 years ago
Joe, an end-user, reports that the Windows PC he is using automatically locks when he leaves his desk and walks to a printer to
ivann1987 [24]

Answer:

A. Domain-level group policies

Explanation:

Because domain-level polices are automatically implement all users that are login on the PC and PC is connect to the domain. From domain polices you can set what user can open and what can not open, Joe Windows PC he is using automatically locks also through domain policy, Administrator set the time when any end-user leave their PC automatically after the time set administrator screen saver run and asked password of that user to return back in the windows.

6 0
3 years ago
Which planet are the most dense
Slav-nsk [51]
The answer is Earth. It says that Earth has a density<span> of 5.51 grams per cubic centimeter on Google, so I am just letting you know, this is from Google. Hope this helps, and good luck!!</span>
5 0
4 years ago
Read 2 more answers
Other questions:
  • If you combine two cells into one, what action are you performing?
    12·2 answers
  • What is displayed in the alert dialog box after the following code is executed? var items = 3; for (var i = 1; i &lt;= items; i+
    8·1 answer
  • Which kind of software allows users to draw pictures, shapes, and other graphical images with various on-screen tools such as a
    14·1 answer
  • Write a recursive method to return the number of uppercase letters in a String. You need to define the following two methods. Th
    7·1 answer
  • Discuss the 21 st century competencies or skills required in the information society and 4 ways you can apply it during supporte
    6·1 answer
  • For each of the descriptions below, perform the following tasks:
    11·1 answer
  • Which tool should be used to verify the compatibility of an application run on Windows 10?
    7·1 answer
  • In the sentence below, identify the proofreader's marks used.<br><br>Check my answer please :)
    14·1 answer
  • Subscribe to Markiplier
    15·2 answers
  • How can aspiring illustrators hone their skills?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!