Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Java code with these requirement:An e - commerce company specializes in cards with sports figures on them. Each sport has different categories of cards.For instance,
Java code with these requirement:An ecommerce 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 will small pieces of player's jersey attached, and so on they have a number of each category of card want to make some number of packets greater than that each contain equal numbers of each type of card.To do this, they will add more cards of each type until each type can be divided equally among some number of packets. Determine the minimum number of additional cards needed to create a number of packets with equal type distribution. functional description: complete the function cardPackets. cardPackets has the following parameters: int cardTypesn: the quantity available of card type returns: int: the minimum number of additional cards to add Example: n ; cardType In order to make matching packets, the following numbers of additoonal cards of each type must be added: this sums additional cards. the number of cards are and they can be evenly amomg two packets.if three packets are created, an additional cards are neeeded, sum items. this yields quantitiesAny number of packets can be created, but creating packets requires the minimum number of additional cards.
Java code with these requirement:An ecommerce 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 will small pieces of player's jersey attached, and so on they have a number of each category of card want to make some number of packets greater than that each contain equal numbers of each type of card.To do this, they will add more cards of each type until each type can be divided equally among some number of packets. Determine the minimum number of additional cards needed to create a number of packets with equal type distribution. functional description: complete the function cardPackets. cardPackets has the following parameters: int cardTypesn: the quantity available of card type returns: int: the minimum number of additional cards to add Example: n ; cardType In order to make matching packets, the following numbers of additoonal cards of each type must be added: this sums additional cards. the number of cards are and they can be evenly amomg two packets.if three packets are created, an additional cards are neeeded, sum items. this yields quantitiesAny number of packets can be created, but creating packets requires the minimum number of additional cards.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started