Answer:
The solution code is written in Java.
- public class Movie {
- private double [][] seats = new double[5][5];
- private double totalSales;
-
- public Movie(){
-
- for(int i= 0; i < this.seats.length; i++){
- for(int j = 0; j < this.seats[i].length; j++){
- this.seats[i][j] = 12;
- }
- }
-
- this.totalSales = 0;
- }
-
- public boolean bookSeat(int i, int j)
- {
- if(this.seats[i][j] != 0){
- this.totalSales += this.seats[i][j];
- this.seats[i][j] = 0;
- return true;
- }else{
- return false;
- }
-
- }
- }
Explanation:
The method, bookSeat(), as required by the question is presented from Line 16 - 26 as part of the public method in a class <em>Movie</em>. This method take row,<em> i</em>, and column,<em> j</em>, as input.
By presuming the seats is an two-dimensional array with all its elements are initialized 12 (Line 7 - 10). This means we presume the movie ticket price for all the seats are $12, for simplicity.
When the<em> bookSeat() </em>method is invoked, it will check if the current price of seats at row-i and column-i is 0. If not, the current price, will be added to the <em>totalSales </em>(Line 19)<em> </em>and then set the price to 0 (Line 20) and return <em>true</em> since the ticket is successfully sold (Line 21). If it has already been sold, return <em>false</em> (Line 23).
Answer and Explanation :The universe means it includes everything, even the things which we can not see is an isolated system because universe has no surroundings. an isolated system does not exchange energy or matter with its surroundings.Sometime universe is treated as isolated system because it obtains lots of energy from the sun but the exchange of matter or energy with outside is almost zero.
- the total energy of an isolated system is always constant means total energy of universe is also constant
- there is no exchange of matter or energy in an isolated system
Answer:
Steps should you take to rate this result are
-
Check the pin location.
-
Check the official website for the address
.
-
Check if there are closer results that we are not returning.
Answer:
Heat losses by convection, Qconv = 90W
Heat losses by radiation, Qrad = 5.814W
Explanation:
Heat transfer is defined as the transfer of heat from the heat surface to the object that needs to be heated. There are three types which are:
1. Radiation
2. Conduction
3. Convection
Convection is defined as the transfer of heat through the actual movement of the molecules.
Qconv = hA(Temp.final - Temp.surr)
Where h = 6.4KW/m2K
A, area of a square = L2
= (0.25)2
= 0.0625m2
Temp.final = 250°C
Temp.surr = 25°C
Q = 64 * 0.0625 * (250 - 25)
= 90W
Radiation is a heat transfer method that does not rely upon the contact between the initial heat source and the object to be heated, it can be called thermal radiation.
Qrad = E*S*(Temp.final4 - Temp.surr4)
Where E = emissivity of the surface
S = boltzmann constant
= 5.6703 x 10-8 W/m2K4
Qrad = 5.6703 x 10-8 * 0.42 * 0.0625 * ((250)4 - (25)4)
= 5.814 W
Answer:
• Corona discharge means <u> </u><u>neutralization</u><u> </u><u>of</u><u> </u><u>charge</u><u> </u><u>action</u><u> </u><u>at</u><u> </u><u>a</u><u> </u><u>sharp</u><u> </u><u>point</u>
example; a pear shaped conductor, lightening conductor, van de graaf generator.
Explanation:
• In corona discharge, When a sharp conductor is placed somewhere in open space. The charges of opposite chrage attract the opposite ions in the air around that conductor.
• This increases the charge density and electric field intensity at the sharp point, this neutralises the charge at sharp point hence a discharge known as corona discharge occurs.
