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:
T1 = 299.18 °C
P2 = 0.00738443 MPa
Explanation:
From the data, we can get two properties for the initial condition. These are pressure and specific volume.
The pressure is 1.8 MPa and the specific volume, we can get it with the mass and volume of the container, since it’s filled this is also the volume of the water in it.

When we check in the thermodynamic tables, the conditions for saturation at 1.8 MPa we found the following:


specific volume for the saturated vapor
specific volume for the saturated liquid
Since the specific volume in our condition is higher that the specific volume for the saturated vapor, we have a superheated steam.
Looking in the thermodynamic tables for superheated steam we found that the temperature where the steam has a specific volume of
at 1.8 MPa is 299.18 °C. This is the initial temperature in the container.
Since the only information that we have about the final condition is that the container was cooled. We can assume that it was cooled until a condition of saturation. So, the final pressure for the water will be the pressure of saturation for a temperature of 40°C. From thermodynamic tables we get:

C because it’s in the dmv
Explanation:
It may be instructive to look at the opposite of the sentence here. Perhaps the smarter creature would be more unhappy when frustrated, recognizing how it gains from happiness relative to the creature with less experience and less knowledge of a situation that does not define it at the moment.
Perhaps the argument is really about the fact that wisdom helps one to hypothetically live in multiple states and a lack of wisdom prevents or fails this possibility.
Answer:
The condition of very system can be identified by some physical characteristics of the system known as Thermodynamic Property of the system. For example, pressure, temperature, volume, etc.
Explanation:
Thermodynamic properties are nothing but the physical characteristics of any body by which the physical condition of the body can be described. properties describes the different states of a system. They are macroscopic.
Properties are of two types ---
Intensive property
Extensive property
Intensive Property : Those properties of a system which does not depend upon mass of the system are known Intensive property.
For example, pressure, temperature, density,specific volume, etc
Extensive Property : Properties that depends on the mass oh the system is called Extensive properties.
For example, energy, volume, etc.