Create a c++ class entertainment consisting of the following data members:
• Title
• Air_Date i.e. Release Date
• Genre
• Type (i.e. Movie, TV Show)
• Runtime
• Country
• Actors
• Rating.
Follow the instructions below for creating the class and objects: Store the owners name as a dynamic array data member.
• Store the genre as a dynamic array data member.
• Store the names of the actors as a dynamic array data member.
• Create an object named “obj1” and initialize the object.
• Create a copy constructor that can list of genre, country and rating.
• Generate another object named “obj2” that is created by copying only the genre, country and ratings from “obj1”.
• Initialize the remaining attributes with values of your own.
Write a program that randomly fills in 0s and 1s into a
6 X 6 matrix, prints the matrix and finds the first row and the first column with the
least 1s.
Suppose a layer of oil (refractive index is 1.45) floats on water (refractive index is 1.33).If a ray of light shines onto the oil with an incidence angle of 40°, what is the angle formes between the ray and the surface of the water?
a) Given;
b)Formula:
c)Solution
d)Final answer with unit:
Americans ate an average of
25.7 pounds of confectionery products each last year
and spent an average of $61.50 per person doing so. If
the standard deviation for consumption is 3.75 pounds
and the standard deviation for the amount spent is
$5.89, find the following:
a. The probability that the sample mean confectionary
consumption for a random sample of 40 American
consumers was greater than 27 pounds
b. The probability that for a random sample of 50, the
sample mean for confectionary spending exceeded
$60.00
The center of gravity of a 45gram meter stick is at the 49 cm. mark. The stick is part of a lever which has the fulcrum at the 73 cm. mark. Where must an 86gram object be hung in order to have equilibrium? Show solutions.
The number of road construction projects that take place at any one time in a certain city follows a Poisson distribution with a mean of 7. Find the probability that more than four road construction projects are currently taking place in the city
A 0.25 moles neon is at 256 mmHg and at temperature of 35°C. What is the volume? (1 atm = 760 mmHg)
How much time does a meter stick moving at 0.1c relative to an observer take to pass the
observer? The meter stick is parallel to its direction of motion.
A spacecraft antenna is at an angle of 10◦
relative to the axis of the spacecraft. If the
spacecraft moves away from the earth at a speed of 0.70c, what is the angle of the antenna
as seen from the earth?
In this exercise you will create a program that computes the average of a collection of values entered by the user. The user will enter 0 as a sentinel value to indicate that no further values will be provided. Your program should display an appropriate error message if the first value entered by the user is 0.