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
krok68 [10]
3 years ago
13

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.
Computers and Technology
1 answer:
eduard3 years ago
6 0

/*

Since we have to check the first two options only as mentioned in last part of question the loop will work 2 times only and will compare the cost of first element and second and assign the healthoption accordingly

*/

for(int i =0;i<=1;i++){

if(annualCost[i]<annualCost[i+1]

best2 = healthOption[i]

else

best2 = healthOption[i+1]

}

You might be interested in
The two principal catalysts for the Information Age have been:________.
jok3333 [9.3K]

Answer:

The two principal catalysts for the Information Age have been computers and communication networks.

Explanation:

Since the invention of computers and internet, people can get the information they need faster than ever before due to the ease of use of both technologies and the relatively cheap price of acquiring the technology.

6 0
3 years ago
What is the difference between computer hardware and computer software?<br>​
Ipatiy [6.2K]

Answer:

computer Hardware:-The physical of the computer which can be seen or touched is called computer hardware☆Computer needs these hardware devices for performing basic functions like accepting data and instructions .Example(keyboard,mouse,printer etc.)

Computer software:-The collection of programs that makes computer worked is called software☆Computer needs software to instruct tge computer hardware what to do and how to do .Example(windows 7,windows 10,Microsoft paint etc.)

7 0
3 years ago
How do you screen shot and copy paste the screenshot from chrome book
Black_prince [1.1K]
Hit the window key + ctrl. You than find the screenshot in your downloads. You click on it and it will say copy. Press it and paste your image where you need to post it on. That’s how you do it!
5 0
3 years ago
Read 2 more answers
your friend's parent's are worried about going over their budget for the month. Which expense would you suggest is NOT a need?
Lorico [155]

Answer:

A possible expense that are not a need are entertainment.

I hope this helped!

4 0
3 years ago
What is the least number of bits you would need to borrow from the network portion of a Class B subnet mask to get at least 130
Tatiana [17]

Answer: Eight

Explanation:

A class B address is 255.255.0.0. We need to borrow 8 bits from the network portion to have atleast 130 host per subnet.

11111111.00000000.00000000.00000000

8 0
3 years ago
Other questions:
  • 50+ POINTS AND BRAIN IF CORRECT Chris is working with other employees on a worksheet. The other employees have made comments, bu
    8·1 answer
  • __________ ensure that hardware and software produced by different vendors work together.
    14·1 answer
  • The 2 main types of copyright relevant to the recording industry?
    5·2 answers
  • Write a code to define a structure named student, which includes name, student number and email address
    5·1 answer
  • Your program will search for prime numbers. You will first ask the user for the range of values to search, and use for loops to
    6·1 answer
  • Do debit cards offer the highest level of fraud pretection?
    10·1 answer
  • Which of the following is true regarding the use of instance variable j in class B1?
    15·1 answer
  • The amount of blank space between each line of text line spacing
    5·1 answer
  • Which of the following is NOT a valid name for a function?
    5·1 answer
  • Always follow the routine "clean up while in use and clean up before keeping it".
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!