Answer: yes
Explanation: People post bad things that i think should get taken down i was on an app the other day and people were posting bad things
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).
Natural ventilation unlike fan forced ventilation uses the natural forces of wind and buoyancy to deliver fresh air into buildings
Answer:
(C) 29°
Explanation:
ACME THREAD ANGLE : it is the angle measured between the thread axis and thread the thread flanks, with the help of thread angle we calculate the shape of screw thread it is the mean of v thread and square thread the acme thread angle is denoted by β every thread has its own charactersistics which depends on the pitch and diameter of the thread
Answer:
3.25 ft/s
Explanation:
The crate is of =14-lb=m₁
The angle of inclination is = 40°=Ф
The initial velocity = 0.4 ft/s= v₁
Distance the crate will move is= 0.3 ft =d
The load pulling downwards is = 36 lb= m₂
Acceleration of the pulley, a= m₂g - m₁gsinФ / m₁+m₂ where g= 32.17 ft/s^2
a= 36*32.17 - 14*32.17*sin 40° / 14+36
a=17.37 ft/s^2
Apply the formula for final velocity
V₂²=V₁²+2ad
V₂²=0.4²+ 2*17.37*0.3
V₂²=10.582
V₂ =√10.582 = 3.25 ft/s