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
FinnZ [79.3K]
2 years ago
10

HackerCards is a trendy new card game. Each type of HackerCard has a distinct ID number greater than or equal to 1, and the cost

of each HackerCard equals its ID number. For example, HackerCard 1 costs 1, HackerCard 5 costs 5, and so on. #!/bin/python3 10 11 # Complete the hackerCards function below. 12 def hackerCards (collection, d): 13 14 > if _name == '__main__':. Leanne already has a collection started. For her birthday, Mike wants to buy her as many cards as he can given his budget. He wants to buy one each of some cards she doesn't already have. If he has to make one choice among several, he will always choose the lowest cost option. Determine which cards he will buy For example, Leanne's collection = [2, 4, 5] and Mike has d = 7 to spend. He can purchase a maximum of 2 cards, the 1 and the 3 to add to her collection. Two other options he has are 1 and 6 (costs more) or 7(fewer cards, costs more). Function Description Complete the function hackerCards in the editor below. The function must return an array of integer ID's of the cards Mike will purchase in ascending order. hackerCards has the following parameter(s): collection(collection [O)....collection(n-1)]: an array of integer ID numbers of cards in Leanne's collection d: an integer that denotes Mike's budget Constraints ⢠1sns 105 ⢠1s collection[i] $ 109, where Osi
Computers and Technology
1 answer:
joja [24]2 years ago
5 0

Answer:

I don't know if this is right output is {1,3}

Explanation:

You might be interested in
In what areas is leslie's underspending hurting her
azamat

Answer:

in what areas is leslie's underspending hurting her

Savings

Housing - Yes as investing in housing is a long term saving

Utilities - no this is not a saving, underspending will increase saving

Transportation - no this is not a saving, underspending will increase saving

Groceries - no this is not a saving, underspending will increase saving

Retirement - Yes as investing in Retirement  is a long term saving

Debt Payment -Yes as investing in Debt Payment  is a long term saving

Phone, Cable, Internet - no this is not a saving, underspending will increase saving

Medical Expenses - no this is not a saving, underspending will increase saving

Miscellaneous - accordingly as explained above for each option.

Dining out- no this is not a saving, underspending will increase saving

Explanation:

Please check the answer section.

7 0
3 years ago
On the Picture Tools Layout tab, you can preview results of the numerous styles, borders, effects, and layouts by _______ comman
Doss [256]
He correct answer is A
5 0
3 years ago
Read 2 more answers
But this time use 16 kib pages instead of 4 kib pages. what would be some of the advantages of having a larger page size? what a
uranmaximum [27]

Here are the advantages and disadvantages of larger paper size: 

Advantages: 

Reduces minor page faults. 

Disadvantages: 

There will be a decrease in the number of frames. 

There will be an increase number of page faults. 

<span>Waste of more space with the internal fragmentation.</span>

6 0
3 years ago
What are three ways to call attention to the text on a web page?
Lesechka [4]

Answer:

Place it in a box, <u>underline</u> it, make it bold, and/or i<em>talicize</em> it, you could also make it larger.

  • You could make it a bulleted list
  1. Or a numbered list

<u>The possibilities are endless!</u>

3 0
3 years ago
Read 2 more answers
Which of the following formats can algorithms NOT be written in:
umka2103 [35]
Hello there.

Which of the following formats can algorithms NOT be written in:

Answers: Flow Chart 
5 0
2 years ago
Read 2 more answers
Other questions:
  • What precaution can you take while using a social networking site to prevent a data breach?
    15·1 answer
  • What is the leading use of computers
    15·2 answers
  • When a user inserts a PivotTable, where will it be inserted?
    15·1 answer
  • im in honors comupter science and one of my questions is evaluate 18% 7 does anyone know how to answer that
    6·1 answer
  • (01.03 LC)
    9·1 answer
  • is used to reduce the chance of an individual violating information security and breaching the confidentiality, integrity, or av
    6·1 answer
  • Which shape is used for input or output?
    15·1 answer
  • What do you call a collection of pre-programmed commands and functions used in programs?
    10·1 answer
  • What is it called when servers on the Internet supply applications as a service, rather than a product
    14·1 answer
  • What does the word collaborative mean?
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!