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
What steps will change an existing macro? Use the drop-down menu to complete the steps.
Aneli [31]

Answer:

1. View

2. View macros

3. Edit

Explanation: completed on edge

6 0
3 years ago
Read 2 more answers
Why do you think viruses are called “viruses”? What do they have in common with the living viruses that cause diseases in humans
Vinvika [58]

Answer:

Computer viruses are referred to living viruses as they both have similar effects.

Explanation:

While living viruses invade cells and cause harmful effects on the body, computer viruses basically do the same thing. Computer viruses are a malicious code that inserts itself into a computer. It's designed to spread to one computer to another, just like a living virus.

Similarities:

  • Spreads from one host to another.
  • They both alter/harm the host.
  • Both can replicate itself.

Differences:

  • A computer virus is manmade, while living viruses aren't.
  • A computer virus needs to be removed manually through an app or software while living viruses are almost curable medicine.
  • A computer virus effects machines and software while living viruses only infect living organisms.
5 0
3 years ago
Read 2 more answers
A scale model that proves the initial concept is called a
vlabodo [156]

Answer:

Domain model.

Explanation:

A domain model is a type of conceptual model used to show the structural elements and their conceptual constraints within a domain of interest. A domain model will include the various entities, their attributes and relationships, plus the constraints governing the conceptual integrity of the structural model elements comprising that problem domain.

7 0
3 years ago
Write a short note on pen drive​
lbvjy [14]

Answer:

They are called "flash drive" because they use flash memory to store files. Other common names for a flash drive include pendrive, thumbdrive or simply USB. USB flash drives have some advantages over other portable storage devices.A pen drive is a portable Universal Serial Bus (USB) flash memory device for storing and transferring audio, video, and data files from a computer. A pen drive usually has a large storage capacity and provides quick data transfers.

8 0
4 years ago
When is it not a good idea to remove a program from your computer by simply deleting its directory?
hodyreva [135]

Hi!

Usually computer programs have a lot of settings that, if not standardized, would make it super difficult to communicate with the operating system or other programs. Because of this, programs and the Windows Operating System use a special Registry system in order to standardize crucial settings for both applications and the operating system itself.

If you were to remove a directory to try to uninstall a program, you're leaving behind the files in the registry (don't worry though, it won't affect anything in terms of what your computer does) which can sometimes eat up space if there's enough of them.

Therefore, I would say your best bet is C. If the program adds information to the operating system.

I hope my answer helped!

5 0
3 years ago
Other questions:
  • Quote one of morrie's aphorisms and explain what you think it means (page 18).
    14·1 answer
  • An employee who interacts with customers regarding the nature of their car problems, rather than actually working on the vehicle
    12·2 answers
  • When you move a paragraph in a document that includes text with a footnote, what happens to the footnote reference?
    7·2 answers
  • Advantage of realtime processing​
    14·1 answer
  • The data type of 17.3 should be ________________.
    12·2 answers
  • What is the value of numX when this program is executed? if 3 &lt; 5 and 8 != 3: numX = 3 else: numX = 7
    13·2 answers
  • 35 POINTS
    10·1 answer
  • What percentage of teens say they have witnessed cyberbullying?
    6·2 answers
  • If you delete search results, you will a. clear the history on the computer. b. delete files from our computer. c. modify the re
    14·1 answer
  • Which step of the problem-solving process did the farmer use in order to figure out what success would look like?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!