Jerry''s appliance has a special promotion

Assignment Help Basic Computer Science
Reference no: EM13166320

Jerry's Appliance has a special promotion for its week long Anniversary Sale. After Customers have picked out the merchandise they wish to buy, they can draw three balls from an urn to determine the sum of the discount they will receive on their purchase. The balls value is as follows Yellow =1 Blue =2

Red = 3 Purple =4 Orange =5 Green = 6 Maroon=7 and Black=8. There are three balls of each color in the urn. The balls are drawn without replacement by each customer but returned to the urn before the next customer draws.

Jerry would like you to simulate 1000 sets of random draws storing the sums in a tally array. Print out the values of the tally array along with an analysis of the cost of the promotion.

(Hint: Enums, Vectors, Rand, and Tally arrays maybe useful)

Reference no: EM13166320

Questions Cloud

How many pills does the patient need to take each time : A patient needs to take 625 of ibuprofen twice daily. The pills in the bottle are each 250. . How many pills does the patient need to take each time she wants the 625 dosage? Assume that these pills are scored and can be cut in half if necessary.
What is the par or stated value of intel''s preference shares : What specific items does Intel discuss in its Note 2-Summary of Significant Accounting Policies and For what segments did Intel report segmented information? Which segment is the largest? Who is Intel's largest customer?
How many kilograms of co2 are produced : If an automobile travels 230 mi with a gas mileage of 21.5 mi/gal, how many kilograms of CO2 are produced?
Define what relative masses of dimethyl amine : what relative masses of dimethyl amine and dimethyl ammonium chloride do you need to prepare a buffer solution
Jerry''s appliance has a special promotion : Jerry's Appliance has a special promotion for its week long Anniversary Sale. After Customers have picked out the merchandise they wish to buy, they can draw three balls from an urn to determine the sum of the discount they will receive on their p..
What is the identity of the metal : A metal crystallizes in a face-centered cubic lattice. The radius of the atom is 128 pm and the density of the element is 8.92 g/cm3. What is the identity of the metal?
Create a deque class based on the discussion of deques : Create a Deque class based on the discussion of deques (double-ended queues) in this chapter. It should include insertLeft(), insertRight(), removeLeft(), removeRight(), isEmpty(), and isFull() methods.
What pressure would have to be applied to steam : What pressure would have to be applied to steam at 365°C to condense the steam to liquid water (H vap = 40.7 kJ/mol)?
Compute the uncertainty in the position mosquito moving : Using Heisenberg's uncertainty principle, calculate the uncertainty in the position of a 1.50 mg mosquito moving at a speed

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Determine final contents of cache as hit or miss

Direct mapped cache with 4 word cache line size and total size of 16 word, i.e. initially empty, write each reference in list as hit or miss and illustrate final contents of cache.

  People and organization responsible for bumping problems

Answer from the perspective of the airlines and from the perspective of the customers. What people, organization, and technology factors are responsible for excessive bumping problems?"

  Explaining open-source software products like linux

Intellectual property as well as increase its support of open-source software products like Linux be a successful growth strategy in the "brutally competitive marketplace" in which it operates? Why or why not?

  Algorithms for finding possible winers-analysing complexity

Create algorithms for finding the possible winers and the Condorcet winner with analysing its complexity.

  Estimate how much speedup would be gained from change

Suppose you are designing a computer system and are considering a change to your original design. Estimate how much speedup would be gained from this change. You must.show your work.

  Banner advertising on web sites trigger realization

Banner advertising on Web sites helps trigger realization that there is gap between reality and desired state which occurs in?

  Question about artificial intelligence

Artificial intelligence topics include Expert Systems and Genetic Algorithms. Do you think that corporations can really use artificial intelligence to make a good business decision?

  Why is this beneficial to the paging algorithm

Why is this beneficial to the paging algorithm and the performance of the system?

  Class polygon which draws a hexagon for a set of numbers

Write a class Polygon which draws a hexagon for a set of numbers given by the user. You must only use method drawLine of class Graphics (other fill or draw methods won't be accepted).

  File format would you choose

What file format would you choose for the following tasks: 1. A cartoon strip 2. A 3D model for use on a multimedia presentation on the web

  Creating data encryption standard for ibm

Let us start off with once widely used Data Encryption Standard (DES) which was created by International Business Machines (IBM).

  Explain nefarious computer activities known ping sweeps

Write short description of what they are and include assessment of whether this activity is something to worry about or not.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd