C++
Drink Machine Simulator
Create a class that simulates and manages a soft drink machine.
Information on each drink
type should be stored in a structure that has data members to hold
the drink name, the
drink price, and the number of drinks of that type currently in the
machine.
The class should have an array of five of these structures,
initialized with the following data.
Drink Name Cost Number in
Machine
Cola 1.00 20
Root beer ...
The amounts a soft drink machine is designed to dispense for
each drink are normally distributed, with a mean of 11.9
fluid ounces and a standard deviation of 0.2 fluid ounce. A
drink is randomly selected.
(a) Find the probability that the drink is less than 11.7 fluid
ounces.
(b) Find the probability that the drink is between 11.6 and
11.7 fluid ounces.
(c) Find the probability that the drink is more than 12.3 fluid
ounces.
Can this be considered...
A soft drink machine is regulated so that the amount of drink
dispensed is approximately normally distributed with a standard
deviation equal to 1.5 deciliters. Find the 95% confidence interval
for the mean of all soft drinks dispensed by this machine if a
random sample of 36 drinks had an average content of 22.5
deciliters. What statistical table to be used? What is the tabular
value? What is the computed lower confidence limit? What is the
computed upper confidence limit?
The amounts a soft drink machine is designed to dispense for
each drink are normally distributed, with a mean of 11.711.7 fluid
ounces and a standard deviation of 0.30.3 fluid ounce. A drink is
randomly selected. (a) Find the probability that the drink is less
than 11.511.5 fluid ounces. (b) Find the probability that the
drink is between 11.311.3 and 11.511.5 fluid ounces. (c) Find the
probability that the drink is more than 12.312.3 fluid ounces. Can
this be considered...
The amounts a soft drink machine is designed to dispense for
each drink are normally distributed, with a mean of 11.7 fluid
ounces and a standard deviation of 0.2 fluid ounce. A drink is
randomly selected.
(a) Find the probability that the drink is less than 11.6 fluid
ounces.
(b) Find the probability that the drink is between 11.5 and 11.6
fluid ounces.
(c) Find the probability that the drink is more than 12 fluid
ounces. Can this be considered...
Using Coca-Cola Company as your model, prepare a global
marketing strategy for another soft drink bottling company of your
choice to compete and win against Coke.
Support your arguments with at least four (4) scholarly research
journal articles, cited in correct APA format style.
A soft drink vending machine dispenses cans of drinks at the
JKUAT cafeteria. The machine waits for students and/or staff to
insert coins. All soft drinks cost KShs. 50 and the machine can
only accept Ten, Twenty and Forty shilling coins. A customer must
insert a total of fifty shillings for the machine to dispense
drinks.
(i.) Give
the formal definition of the above machine, as a Finite Automaton.
(ii.) Is the
machine deterministic or non-deterministic? Justify your answer
(iii.) Draw a state...
What are the object oriented concepts and which all
object oriented concepts are used in the
given program? Consider the following code and explain how each of
the object oriented
concepts are applied in the given program. (CO1)
class Vehicle
{
string brand;
public:
void honk();
void honk(int);
};
void Vehicle::honk()
{
cout << "Tuut, tuut! \n" ;
}
void Vehicle::honk(int x)
{
for(int i=0;i<x;i++)
cout << "Tuut, tuut! \n" ;
}
int main()
{
Vehicle V1;
V1.honk();
V1.honk(3);
}
Consider you are a regional soft drink company competing in the
US soft drink market. Dr. Pepper was such a player, operating
mostly in and around Texas. How could you compete successfully in
this industry that is dominated by two large companies? Use
appropriate frameworks to support your answer.