Loading
Home › Computer Science Help › C coding. Completing a set of hockey cards.
Status: Completed

C coding. Completing a set of hockey cards.

Date Posted: 13/02/2019
Category: Computer Science
Due Date: 16/02/2019
Instruction
If you have ever collected hockey cards (or other sports cards) you may have wondered how many packages you have to buy to get a complete set. In this assignment, we will try and find out. Let’s start with some assumptions to pin down the problem. First, we will assume that a complete set consists of 500 different cards. You buy cards in packages of 7. We will assume that the frequency of the cards follows a uniform distribution. That is, assume that the manufacturer produces the same quantity of each card so that the probability of getting any specific card is the same as any other. (This assumption may not be realistic, but we make it to simplify the problem.) Assignment Your task is to write a program that simulates buying packages of cards until the set is complete. At each step of the program, you should simulate the act of “buying a package of cards”. For each card you buy, you should keep track of how many copies of it you have in your collection. An experiment consists of repeating this process until you have a complete set of cards. For each experiment, you should output the maximum number of duplicates you have of any card. There may be several cards with the same maximum number but you only have to output one of these. You are to run at least 100 experiments to determine how many packages you expect to have to buy in order to complete the set. When you are finished the experiments, you should output the following information: 1. The average number of packages you had to buy. 2. The maximum number of packages you had to buy to complete your set. 3. The minimum number of packages you had to buy to complete your set.
Tutor Uploads
Bidders
ExcellentTutor 7 years, 7 months ago
Rated 9.09 earned 174531.76 around 5422 assignments.
Hello, Consider hiring me to do your assignment. I work fast, pay close attention to the instructions, and deliver a plagiarism-free paper. My price is also negotiable to accommodate your budget. Talk to me. Thank you.
$70.00
  • Hello ExcellentTutor! I had a look to your review page and it looks pretty good. I hope you will do a good job for me too :) Thanks!
    User_20086 | Feb 13, 2019, 20:24 PM
  • I will give you quality work, I promise you an A
    ExcellentTutor | Feb 13, 2019, 20:25 PM
  • I have uploaded your assignment please check and release the payment. Regards
    ExcellentTutor | Feb 14, 2019, 16:38 PM
  • hello, how are you?
    ExcellentTutor | Feb 14, 2019, 20:38 PM
  • Hello!
    User_20086 | Feb 15, 2019, 22:38 PM
  • I just checked your code and it's giving few errors
    User_20086 | Feb 15, 2019, 22:38 PM
  • Is it possible if you can fix them because i can't have an output right now
    User_20086 | Feb 15, 2019, 22:39 PM
  • Conflicting types for 'srand' Conflicting types for 'time' Use of undeclared identifier 'i_duplicates'; did you mean 'isDuplicate'?
    User_20086 | Feb 15, 2019, 22:40 PM
  • I just solved 1 porblem. #include <stdlib.h> // rand(), srand() #include <time.h> // time() i added these and first 2 errors disapeared however i still have an error
    User_20086 | Feb 15, 2019, 23:10 PM
  • Use of undeclared identifier 'i_duplicates'; did you mean 'isDuplicate'?
    User_20086 | Feb 15, 2019, 23:10 PM
  • Ok no proble... fixed
    User_20086 | Feb 15, 2019, 23:11 PM
  • THANKS, GOOD JOB!
    User_20086 | Feb 15, 2019, 23:11 PM
  • hey, sorry I was traveling. Just seen your texts. Its okay if you fixed. Next time consider working with me. It was so good meeting you
    ExcellentTutor | Feb 16, 2019, 08:18 AM
  • Hello ExcellentTutor! I have a new C programming assignment. Can I assign you again for this one?
    User_20086 | Mar 10, 2019, 16:44 PM
  • Yes please. Did you post it?
    ExcellentTutor | Mar 10, 2019, 16:53 PM
  • I will do it for you my friend
    ExcellentTutor | Mar 10, 2019, 16:53 PM
  • Waiting for you
    ExcellentTutor | Mar 10, 2019, 18:08 PM
  • hello, did you post the new assignment?
    ExcellentTutor | Mar 11, 2019, 15:55 PM
  • hello, been waiting for you to post the C program my friend. Upload it and I will do it for you
    ExcellentTutor | Mar 12, 2019, 11:00 AM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
DEDICATEDHELPER 7 years, 7 months ago
Rated 9.55 earned 22275.60 around 707 assignments.
Hi friend️! Looking for an expert to handle you project? Worry no more because I have the best terms of service. I deliver comprehensive, detailed, exceptional, high-quality, and non-plagiarized work within the deadline. MY PASSION IS TO SEE YOU GET GOOD GRADES. What is your offer dear?
$40.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
professionalwriter_d_496 7 years, 7 months ago
Rated 8.85 earned 19649.48 around 531 assignments.
Hello...
$100.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
WBURO 7 years, 7 months ago
Rated 9.25 earned 75605.06 around 2167 assignments.
kindly consider my bid for this assignment I want to help you and I assure to deliver quality work, with zero percent plagiarism and in time as stated. Thank you
$100.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
komatsu 7 years, 7 months ago
Rated 8.8 earned 25673.74 around 681 assignments.
Hi friend, I understand your work instructions to the latter. I promise to deliver quality, well-thought, and contentful work that meets all the stipulated rubrics. Besides, plagiarism-free work that is of impeccable grammar. Expect the best
$40.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
lupita 7 years, 7 months ago
Rated 9.36 earned 11670.86 around 435 assignments.
Greetings! I would like to help you today
$120.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
kennwals 7 years, 7 months ago
Rated 9.62 earned 40189.97 around 1191 assignments.
Hello dear client, I would like to help you with your task. Please assign me. Thank you!
$95.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
onessmati14 7 years, 7 months ago
Rated 9.59 earned 37978.64 around 1232 assignments.
Hello dear client, I 'm a math tutor. Hope you're okay getting over 95%. Please assign me. Thank you!
$40.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
tutorforyou 7 years, 7 months ago
Rated 9.04 earned 17105.49 around 504 assignments.
Hi friend️! Looking for an expert to handle you project? Worry no more because I have the best terms of service. I deliver comprehensive, detailed, exceptional, high-quality, and non-plagiarized work within the deadline. MY PASSION IS TO SEE YOU GET GOOD GRADES. What is your offer dear?
$40.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
phoniextutor 7 years, 7 months ago
Rated 8.98 earned 50856.21 around 1767 assignments.
Hello, dear client, I have read and fully interpreted your question and I am ready and more than available to offer my services to you. Thank you in advance
$100.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
surrogatewriter 7 years, 7 months ago
Rated 9.31 earned 75264.37 around 2854 assignments.
With over 10 years of writing experience, I guarantee high-quality plagiarism free work. I am your life saver!
$40.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
profjoseph 7 years, 7 months ago
Rated 9.35 earned 54108.42 around 1732 assignments.
With over 10 years of writing experience, I guarantee high-quality plagiarism free work. I am your life saver!
$40.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
exclusivewriter 7 years, 7 months ago
Rated 9.41 earned 74860.53 around 2443 assignments.
With over 10 years of writing experience, I guarantee high-quality plagiarism free work. I am your life saver!
$40.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
Robert_d_308 7 years, 7 months ago
Rated 9.37 earned 62524.46 around 2184 assignments.
Hello dear friend, I’m happy to help you today. I would like to express my interest in doing your assignment. I will go through your summary and instruction carefully and do your task. I promise to commit my skills and the great experience to guarantee you a top-notch quality paper, with zero grammatical errors, and a 100% free from PLAGIARISM. Besides my skill and experience, I respond promptly to my client and provide a quick turnaround. Kindly hire me, and I’ll make you proud. I’m looking forward to working with you. Thank you!
$100.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
smartestwriter 7 years, 7 months ago
Rated 9.54 earned 25983.04 around 898 assignments.
With over 10 years of writing experience, I guarantee high-quality plagiarism free work. I am your life saver!
$40.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
funwriter 7 years, 7 months ago
Rated 9.44 earned 21955.32 around 740 assignments.
Hey, this assignment fits perfectly into my career and area of study in this course. In fact I have done similar assignments before and got bonus because of the quality work that I delivered. So kindly assign assignment to me for quality work and good grades. Thank you.
$40.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}