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
mafiozo [28]
3 years ago
9

Assume that two parallel arrays have been declared and initialized: healthOption an array of type char that contains letter code

s for different healthcare options and annualCost an array of type int. The i-th element of annualCost indicates the annual cost of the i-th element of healthOption. In addition, there is an char variable, best2.Write the code necessary to assign to best2 the health option with the lower annual cost, considering only the first two healthcare options. Thus, if the values of healthOption are 'B', 'Q', 'W', 'Z' and the values of annualCost are 8430, 9400, 7050, 6400 your code would assign 'B' to best2 because 8430 is less than 9400 and is associated with 'B' in the parallel array. (We ignore 'W' and 'Z' because we are considering only the first two options.)
Computers and Technology
1 answer:
givi [52]3 years ago
4 0

Answer:

if (annualCost[0] < annualCost[1])

{

best2 = healthOption[0];

}

else

{best2 = healthOption[1];

}

Explanation:

The required code is given above.

You might be interested in
Throughout the lecture, the teacher speaks about the defintion of "Science"
Arlecino [84]

Answer:

I would say A. Since that is pretty much the Scientific Method.

Explanation:

Yeah

8 0
3 years ago
Read 2 more answers
What is the term that is used to describe a computer system that could store literary documents, link them according to logical
madreJ [45]

Answer:

hypertext

Explanation:

Based on the information provided within the question it can be said that the type of computer system function being described is known as hypertext. This displays text to the computer display that references other literary documents for immediate access to them. These are documents with a specific relation to the text that is being displayed and also allows readers to comment and annotate what they read on the documents.

5 0
3 years ago
What number system is the basis for all of the powerful computers and electronic devices in the world?
labwork [276]

Answer:

Binary

Explanation:

3 0
3 years ago
Which descriptions offer examples of Correction Services workers? Select all that apply.
lutik1710 [3]

B.) Doug supervises Jailers and makes sure their work meets standards.

E.) Rudy monitors people who are on probation and parole.

F.) Nancy guards inmates in a prison.

4 0
3 years ago
When an online company runs a special promotion on swimsuits during the summer, they are taking advantage of the concept of
LenaWriter [7]
<span>When an online company runs a special promotion on swimsuits during the summer, they are taking advantage of the concept of p</span>eople’s urge to go for swimming to beat the summer heat and keep themselves cool. As a result, they are very likely to buy more swimsuits to go swimming. 
With a special promotion on swimsuits, people are likely to buy the company’s merchandise. This is because they can get what they want by paying a lesser amount than usual. In turn, the company is able to benefit by making more sales than its online and retail competitors.

6 0
3 years ago
Read 2 more answers
Other questions:
  • ​_____ describes the process of using computer software to extract large amounts of data from websites. A. Sentiment analysis B.
    10·1 answer
  • Why people needs soft skills in the era of high technology.
    13·1 answer
  • Why is internet safety important
    14·2 answers
  • Hurry answerrrrrrr pleaseee
    11·2 answers
  • In a fully underwritten offering a firm sells 1 million shares of stock through a fully underwritten offering. Their banker char
    10·1 answer
  • How goes design again ones attention?
    6·1 answer
  • 3. Choose the right statement bellow: Excel can not import external data from
    9·1 answer
  • Why the computer is known as versatile and diligent device ? explain.<br>​
    15·1 answer
  • Which of the following is/are used in multimedia?
    14·1 answer
  • Computer always produces wrong output true or false<br>​
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!