Computers and Technology

4. Identical Distribution 10 Complete the 13 An e-commerce company specializes in cards with sports figures on them. Each sport has different categories of cards. For instance, there might be more desirable cards with the most popular sports personalities, others with small pieces of a player's jersey attached and so on. They have a number of each category of card, and want to make some number of packets that contain equal numbers of any type of card. To do this, they will add more cards of each type until each can be divided equally among same number of packets. Determine the minimum number of additional cards needed to create a number of packets with equal type distribution 16 tnt cardPackets (vo 20 Example n=5 cardTypes = {4, 7, 5, 11, 15) In order to make 2 matching packets, the following numbers of additional cards of each type must be added: 10.1, 1, 1. 1. This sums to 4 additional cards. The numbers of cards would then be 14 8,6, 12, 16) and they can be divided evenly among 2 packets. If 3 packets are created an additional 2. 2 1. 1.0 cards are needed, sum = 6 items. This yields quantities (6, 9, 6, 12, 15). Any number of packets 2 2 can be created, but creating 2 packets requires the minimal number of additional cards. Function Description Complete the function cardPackets in the editor below. cardPackets has the following parameter(s): int cardTypes/n]: each cardTypes[i] represents the quantity of card type that is available Returns in the minimum number of additional cards to add Sample Case 0 Sample Input For Custom Testing STOIN Function cardTypes [] size n = 5 cardTypes = [3, 8, 7, 6, 4] 5 3 B 2 6 Sample Output 2 Explanation There are n= 5 types of cards in the amounts of card Types = 13.8, 7, 6, 4). In order to make 2 matching packets, the following numbers of additional cards of each type must be added: (1, 0, 1, 0, 0] which sums to 2 additional cards. The numbers of cards would then be 14, 8, 8, 6, 4, and they can be divided evenly among 2 packets. 3 packets are created, an additional [0, 1, 2, 0, 2 cards are needed, sum=5 items. This yields quantities E. 9.9.6.6] Any number of packets 2 2 can be created, but creating 2 packets requires te minimal number of additional cards.
Introduction to Project Based Learning (PBL) Webquest Assignment1 What does it mean to "fail forward?"2 What two skills are employees in today's workplace expected to have?3 How are Project Based Learning courses taught according to the course content?4 Give two PBL examples.5 (True or False) Every project will follow the same format.6 What is the entry event and what is its purpose?7 Give two examples of roles a student could play in a PBL project.8 Why is the entry event an important part of the PBL process?9 In exploring the Marketing Project Example Project entry event, answer any two of the following questions:What role did you play in this project?Who are you working for in this scenario?What challenge are you assigned in this role?What will you produce for this project to show what youve learned? 10 What types of questions does a student need to ask himself/herself when starting the PBL project?11 What are need-to-know-questions?12 Looking at the example Marketing Project Entry Event, answer one of the following two questions. Whats one thing that you already know about GMS from the entry event document that will help you complete this project? Can you think of something you will need to know (learn) to complete this project?13 What is the driving question and where are the two places it can be found?14 What are benchmarks and what are they used for in the PBL project?15 In the example Marketing Project, what is the third benchmark?16 Give two examples of final PBL projects.17 How are PBL projects graded?18 What are the three parts of the PBL Project Rubric? 19 Identify two success skills.20 Why is sharing what you've learned such an important piece of the PBL process?21 Why is the ability to analyze your work such an important piece of the PBL process?22 What is Tallo and what are two things you can do with Tallo?23 (True or False) There is a place for your parents/LC's to learn about PBL in the course content.