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

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs, Flash RAM, and solid-state drives (SSD)

  Determine entities from functional requirements

Using Crow's feet, determine and draw relationships between entities. (Typically verbs in sentences will recognize these). Find out the entities from functional requirements.

  Place two three d points a and b in two different locations

Place the two 3d points A and B in two different locations in a simple stereo diagram which demonstrates these two possibilities. Draw a different picture for each situation.

  What is the speedup of the system with l2 cache?

computer calculate the following: (a) What is the L2 read miss penalty? (b) What is the L1 read miss penalty? (c) What is the read penalty (L1 and L2 cache)? (d) Assume 33% (1/3) loads, and everything else is ideal. What is the CPI? (e) What would th..

  Style is require but comments are not

Style is require but comments are NOT required.  ? Include appropriate import statements for your file.

  Find the number of steps per revolution.

If a given stepper motor has a step angle of 5 degrees, find the number of steps per     Revolution.

  Describe modifications be made to poorly designed website

Discover the site which you feel is poorly designed and describe what modifications must be made using text as a guide.

  Emerging technologies developments

Are you a optimistic or apprehensive about developments in emerging technologies that simulate human experience? Provide examples of a business condition that would benefit from each of the following?

  Designing a 4-to-16 decoder using not gates

Draw 4-to-16 decoder by using components. You must not use any extra components.

  Write sequence of statements-find first comma in string line

Write down sequence of statements which finds first comma in the string line, and assigns to variable clause portion of line up to, but not including comma.

  A subroutine in marie assembly that multiplies two value

1)Write a subroutine in MARIE assembly that multiplies two values where the arguments for this subroutine are two pointers(each pointing to a value). The routine, multiply(a,b), performs *a x *b where a's value is the address storing the value being ..

  Creating project organization in enterprise business

Organization structures generally used to create a project organization in an enterprise business environment.

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