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
butalik [34]
3 years ago
15

For each of the following data storage needs, describe which abstract data types you would suggest using. Natural choices would

include list, set, map, but also any simpler data types (string, int, double) that you may have learned about before.
Try to be specific, e.g., rather than just saying "a list", say "a list of integers" or "a list of names (strings) and a GPA (double)". If you specify a map please describe what the key and value will be. Also, please give a brief explanation for your choice: we are grading you at least as much on your justification as on the correctness of the answer. Also, if you give a wrong answer when you include an explanation, we'll know whether it was a minor error or a major one, and can give you appropriate partial credit. Also, there may be multiple equally good options, so your justification may get you full credit.
a. a data type that allows quick retrieval of the name of a song given the name of a playlist (or album) and the track number
b. a data type to store the text of the steps of a recipe for how to bake a cake
c. a data type that associates a file extension with the possible programs that are able to read/open that kind of file
d. a data type that stores all the TV station identifications (e.g. KABC, KNBC, etc.)
Computers and Technology
1 answer:
timofeeve [1]3 years ago
8 0

Answer:

Explanation:

1. data type which allows quick retrieval of the name of a song given the name of a playlist(or album) and the track number would be :

map

It can be defined as a key-value pair where combination of playlist-track number would be the the key and song name/details would be the value for that corresponding key

2. data type to store the text of the steps of a recipe for how to bake a cake would be :

list

list of string datatype can be used : each item in the list will have recipe in the data part of the node

3. data type for storing file extension with the possible programs that are able to read/open that kind of file wold be

set

It can be defined as a key-value pair where file extension would be the the key and possible program list would be the value for that corresponding key

4. data type that stores all the TV station identifications (e.g. KABC, KNBC, etc..) would be :

map

as there is no duplication in the names of TV station so map with key/value pair of TV station name /details would be appropriate to be used

You might be interested in
What is this computer​
Salsk061 [2.6K]

Answer:

A Macintosh

Explanation:

6 0
3 years ago
After the following code runs, what will be the value of result? var x = 30; function get () { return x; } function set (value)
PilotLPTM [1.2K]

Answer:

Null

Explanation:

It entirely depends on the language you are using to implement this.

But generally by the rule of scope, "result" will return null since get() was not defined to accept any argument, and it neither know the global "x" not defined it's own x in the function.

5 0
4 years ago
What is the equivalent of film speed in digital cameras?
elena55 [62]
The equivalent of film speed in a digital camera is going to be sensitivity. This will make the correct answer B. 
3 0
4 years ago
Read 2 more answers
I need the code for Assignment 5 Animation in Edhesive, its in python code.
insens350 [35]

Answer:116596

Explanation:

4 0
3 years ago
A hierarchical topology is also called a _____ topology.
Vedmedyk [2.9K]
It is also called a tree topology.it combines computers with different strengths in different organizational levels.<span />
5 0
4 years ago
Other questions:
  • The chief architect now needs to design a memory with an addressability of 32 bits. Suppose the architect can only use the same
    6·1 answer
  • What is plagiarism?<br> EXPLAIN IT
    15·2 answers
  • Print person1's kids, apply the IncNumKids() function, and print again, outputting text as below. End each line with a newline.
    12·1 answer
  • Which leadership function involves keeping group members focused on the issue at hand?
    6·1 answer
  • The ____ layer protocols are the rules for implementing end-user services provided by a network. Transport Application Physical
    11·1 answer
  • List and describe four communication tools that are currently popular.
    9·1 answer
  • Help with prg 140 class it is really giving me a hard time understanding it<br>​
    10·1 answer
  • Which can be used to plan a program?
    13·2 answers
  • When streaming video, data is temporarily stored in a
    5·2 answers
  • Which two devices are paired to create a memory cell? what term is used to describe this common form of computer memory? (2 poin
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!