Donna makes a website feature that will recommend books to users by asking questions about their likes and dislikes. There's a bug in the program, so she decides to ask her friend Martha to look over her code. Before Martha looks at the code, she asks Donna to describe it. Which of the following parts of Donna's description is an abstraction? Select TWO answers. A "The ask method prints out a multiple choice question to the user and then records the user's answer in a list." B "After all the questions have been asked, the match method retrieves three book recommendations for each answer selected and puts them in a new list." С "From there, the match method uses the selection sort algorithm to sort the list of recommendations D "Finally, the match method uses a loop to compare each item in the list to the previous item. If there are two items that are the same, that item is printed out for the user to see."

Answers

Answer 1

The "ask method" prints a multiple-choice question to the user, who subsequently enters a response, which is then listed.The match approach "retrieves three reading material for each response picked and adds them to a new list after all questions have been answered."

Explanation: Without going into great depth on how the code works, each of these descriptions provide Martha a general understanding of what the code accomplishes.

Which one of the following procedural abstraction qualities is desired?

Code that is more understandable and reusable is one of procedural abstraction's desirable qualities.Choice "A" suggests that the software is more reusable because it is only confined to the extent that the users' needs dictate.

To know more about reading material visit:

https://brainly.com/question/6594426

#SPJ4


Related Questions

which of the following is the correct formula for the unweighted center of gravity method for evaluating location alternatives?

Answers

X-bar = sigma(Xi) / n, Y-bar = sigma(Yi) / n.

A center de gravity method is what?

The center of gravity approach is a way to choose a distribution center where the cost of distribution is kept to a minimum.It is a technique for locating a facility such that transportation expenses or transit time to different locations are kept to a minimum.Clustering is the term used to describe when businesses locate close to other comparable businesses.

How is the centre of gravity is the point determined?

The gravity center is determined by adding the weight/volume average value times this same distance times that volume segment multiplied by the weight.

To know more about evaluating location visit:

https://brainly.com/question/13967427

#SPJ4

when not air cooled, the heat generated by the motor in a hermetic motor compressor assembly is removed by what?

Answers

When not air-cooled, the heat produced by the motor in a hermetic motor compressor assembly is eliminated by refrigerant gas.

A compressor in the refrigerant is said to be a hermetically sealed compressor when both the compressor and motor operate on the same shaft and both are enclosed in a common casing. These kinds of compressors eliminate the use of a crankshaft seal, which is vital in open-type compressors to prevent leakage of refrigerant.

Typical refrigerants include gases such as fluorocarbons, which are chemical compounds of fluorine and carbon. They were formed mainly as refrigerant gases to be used for air conditioners and refrigerators.

You can learn more about refrigerant gases at

https://brainly.com/question/10812146

#SPJ4

When a dielectric is inserted between plates of capacitor stored energy, will it increase or decrease?

Answers

When the charge on a capacitor plate increases while it is still connected to the battery, or when a dielectric slab is inserted between the plates, the capacitance (C) increases, the potential difference (V) between the plates stays constant, and the amount of energy stored in the capacitor increases.

Does a capacitor's dielectric improve the amount of energy stored?

The dielectric is attracted towards the capacitor's plates by the charges on its surface, so it tends to stay inside the device. The capacitor reduces the quantity of energy retained by lowering the dielectric between the plates.

Does including a dielectric result in more energy?

Similar to C, the capacitor's potential energy reacts to changes. With the addition of a dielectric, C rises in direct proportion to K. Additionally, as the dielectric constant, K, rises, Q and stored potential energy do as well.

To know more about dielectric  visit:-

https://brainly.com/question/29314938

#SPJ4

Which of the following statements is valid? Assume that variable arr is an array of i integers and that the following is true:
arr[0] != arr[i] for all values from 1 through i - 1

Answers

The correct answer is there is no need for a prerequisite; the method will always function as intended.

There is no need for a prerequisite; the method will always function as intended. An array with 10 entries is created by the declaration that follows: values for double[] = new double[10]; Any integer between 0 and 9 can serve as an index. Instead of creating many variables to represent different values, array variables are an option. An array variable's format can either be a collection of one or more name-value pairs or a list of distinct values (an array list) (a JSON array ). Just include the assignment operator (=), the variable name to which the value should be transferred, the array name, and the element index in parentheses. Two-dimensional arrays can be used to hold many records and various fields.

To learn more about function click the link below:

brainly.com/question/12431044

#SPJ4

Other Questions
What are key action plans?. a blank is a relation in which each member In the United States, recording business transactions in dollars is an application of the accounting concept ____. What do you call the song composed to represent the theme or the subject matter of the drama?. Write an informal negation for each of the following statements. Be careful to avoid negations that are ambiguous.a. All dogs are friendly.b. All people are happy.c. Some suspicions were substantiated.d. Some estimates are accurate. _____ writers were deeply influenced by the devastation of World War I and experimented andinnovated, seeking new ways to tell stories.RealistModernistRomanticEarly American 41. Give any five document formatting features of aword processor. when ordering the kids' lunch at burger universe, the customer must choose a size, whether or not to have cheese, a type of bun, a side order, and a type of fruit drink. here are the possibilities for each choice. What can we learn from the journal "Chromatin domain changes related to 3d genome organization in large cohorts of schizophrenia and bipolar disorder brains"? a research study compared the memory retention of subjects when a learning activity was followed by a brief period of wakeful rest and when a learning activity was followed by a brief period of distractio Julia had a bag filled with gumballs. There were 1 lemon-lime, 2 watermelon, and 3 grape gumballs. What is the correct sample space for the gumballs in her bag? A. Sample space = 1, 2, 3 B. Sample space = 1, 2, 3, 4, 5, 6 C. Sample space = lemon-lime, watermelon, grape D. Sample space = lemon-lime, watermelon, watermelon, grape, grape, grape Why is the West Egg less fashionable?. 9.19.1.19.1.2Give a deDiscuss TWO reasons why part of the money raised by the formerpresidents should be spent on tourism infrastructure in areasaffected by the hurricanes. which of the following is the correct formula for the unweighted center of gravity method for evaluating location alternatives? 1. What is the sum of the coefficients when the following equation is balanced using the lowest, whole numbered coefficients?NH3(g) + O2(g) => NO (g) + H2O(g)Group of answer choicesa, 19b, 17c, 15d, 13e, 21 The point P is on the unit circle. If the y-coordinate of P is 3/5 and PP is in quadrant IV , then X= ? choose a process and system that match the following energy description: the kinetic energy of an object becomes gravitational potential energy of the system\ If I have 15.28 and I need 399.99 how much money will I need to save if I get 7.00 every Friday? And what day/date would that be? on jan. 8, supporters of former president jair bolsonaro stormed government buildings in brazils capital, braslia. what were they protesting? What is the first amendment, and what is its purpose? ( ANSWER ASAP PLSS)