Answer:
192.168.228.0 255.255.255.224
Explanation:
192.168.228.0 255.255.255.128
subnet mask: defines the host and the network part of a ip
CIDR notation : is the shortened form for subnet mask that uses the number of host bits for defining the host and the network part of a ip
For example: 192.168.228.0 255.255.255.128 has CIDR equivalent of 192.168.228.0\25
To have atleast 20 hosts
20 ≤ (2^x) -2
x ≈5
with 5 host bits, we have 2^5-2 = 30 hosts per subnet
and 2^3 = 8 subnets
To get the subnet mask, we have 3 network bits
1110000 to base 10 = 2^7 + 2^6 +2^5= 224
192.168.228.0 255.255.255.224
Answer:
See explaination
Explanation:
#include <iostream>
#include <string>
#include <stdio.h>
#include <cst dlib>
using namespace st d;
int main(int argc, char *argv[])
{
int airplane[13][6];
char airchar[13][6];
string ticket;
int row[2];
char seat;
//--------------------------------------------
for(int i = 0; i < 13; i++)
{
for(int j = 0; j < 6; j++)
{
airchar[i][j] = '*';
airplane[i][j] = 0;
}
}
//--------------------------------------------
for(;;)
{
cout<<"Rows 1 and 2 are first class (F C)"<<endl;
cout<<"Rows 3 through 7 are business class (B C)"<<endl;
cout<<"Rows 8 through 13 are economy class (E C)"<<endl;
cout<<endl;
cout<<"* - Available"<<endl;
cout<<"X - Occupied"<<endl;
cout<<endl;
cout<<" \t A\t B\t C\t D\t E\t F"<<endl;
cout<<"Row 1\t"<<airchar[0][0]<<"\t"<<airchar[0][1]<<"\t"
<<airchar[0][2]<<"\t"<<airchar[0][3]<<"\t"<<airchar[0][4]<<"\t"
<<airchar[0][5]<<endl;
cout<<"Row 2\t"<<airchar[1][0]<<"\t"<<airchar[1][1]<<"\t"
<<airchar[1][2]<<"\t"<<airchar[1][3]<<"\t"<<airchar[1][4]<<"\t"
<<airchar[1][5]<<endl;
cout<<"Row 3\t"<<airchar[2][0]<<"\t"<<airchar[2][1]<<"\t"
<<airchar[2][2]<<"\t"<<airchar[2][3]<<"\t"<<airchar[2][4]<<"\t"
<<airchar[2][5]<<endl;
cout<<"Row 4\t"<<airchar[3][0]<<"\t"<<airchar[3][1]<<"\t"
<<airchar[3][2]<<"\t"<<airchar[3][3]<<"\t"<<airchar[3][4]<<"\t"
<<airchar[3][5]<<endl;
cout<<"Row 5\t"<<airchar[4][0]<<"\t"<<airchar[4][1]<<"\t"
<<airchar[4][2]<<"\t"<<airchar[4][3]<<"\t"<<airchar[4][4]<<"\t"
<<airchar[4][5]<<endl;
cout<<"Row 6\t"<<airchar[5][0]<<"\t"<<airchar[5][1]<<"\t"
<<airchar[5][2]<<"\t"<<airchar[5][3]<<"\t"<<airchar[5][4]<<"\t"
<<airchar[5][5]<<endl;
cout<<"Row 7\t"<<airchar[6][0]<<"\t"<<airchar[6][1]<<"\t"
<<airchar[6][2]<<"\t"<<airchar[6][3]<<"\t"<<airchar[6][4]<<"\t"
<<airchar[6][5]<<endl;
cout<<"Row 8\t"<<airchar[7][0]<<"\t"<<airchar[7][1]<<"\t"
<<airchar[7][2]<<"\t"<<airchar[7][3]<<"\t"<<airchar[7][4]<<"\t"
<<airchar[7][5]<<endl;
cout<<"Row 9\t"<<airchar[8][0]<<"\t"<<airchar[8][1]<<"\t"
<<airchar[8][2]<<"\t"<<airchar[8][3]<<"\t"<<airchar[8][4]<<"\t"
<<airchar[8][5]<<endl;
cout<<"Row 10\t"<<airchar[9][0]<<"\t"<<airchar[9][1]<<"\t"
<<airchar[9][2]<<"\t"<<airchar[9][3]<<"\t"<<airchar[9][4]<<"\t"
<<airchar[9][5]<<endl;
cout<<"Row 11\t"<<airchar[10][0]<<"\t"<<airchar[10][1]<<"\t"
<<airchar[10][2]<<"\t"<<airchar[10][3]<<"\t"<<airchar[10][4]<<"\t"
<<airchar[10][5]<<endl;
cout<<"Row 12\t"<<airchar[11][0]<<"\t"<<airchar[11][1]<<"\t"
<<airchar[11][2]<<"\t"<<airchar[11][3]<<"\t"<<airchar[11][4]<<"\t"
<<airchar[11][5]<<endl;
cout<<"Row 13\t"<<airchar[12][0]<<"\t"<<airchar[12][1]<<"\t"
<<airchar[12][2]<<"\t"<<airchar[12][3]<<"\t"<<airchar[12][4]<<"\t"
<<airchar[12][5]<<endl;
cout<<endl;
cout<<"Enter Ticket type (F C, B C, or E C): ";
cin>>ticket;
cout<<"Desired Row: ";
cin>>row[0];
cout<<"Desired seat (A,B,C,D,E or F): ";
cin>>seat;
switch(seat)
{
case 'A':
case 'a':
row[0] = row[0] - 1;
row[1] = 1;
row[1] = row[1] - 1;
break;
case 'B':
case 'b':
row[0] = row[0] - 1;
row[1] = 2;
row[1] = row[1] - 1;
break;
case 'C':
case 'c':
row[0] = row[0] - 1;
row[1] = 3;
row[1] = row[1] - 1;
break;
case 'D':
case 'd':
row[0] = row[0] - 1;
row[1] = 4;
row[1] = row[1] - 1;
break;
case 'E':
case 'e':
row[0] = row[0] - 1;
row[1] = 5;
row[1] = row[1] - 1;
break;
case 'F':
case 'f':
row[0] = row[0] - 1;
row[1] = 6;
row[1] = row[1] - 1;
break;
}
if(ticket == "F C")
{
if(row[0]+1 == 1 || row[0]+1 == 2)
{
if(airplane[row[0]][row[1]] == 0)
{
airplane[row[0]][row[1]] = 1;
airchar[row[0]][row[1]] = 'X';
}
else if(airplane[row[0]][row[1]] == 1)
{
cout<<"Message: Seat "<<row[0] + 1<<seat<<" is already occupied"<<endl;
system("Pause");
}
}
else
{
cout<<"Wrong Class"<<endl;
system("Pause");
system("cls");
continue;
}
}
else if(ticket == "B C")
{
if(row[0]+1 == 3 || row[0]+1 == 4 || row[0]+1 == 5
|| row[0]+1 == 6|| row[0]+1 == 7)
{
if(airplane[row[0]][row[1]] == 0)
{
airplane[row[0]][row[1]] = 1;
airchar[row[0]][row[1]] = 'X';
}
else if(airplane[row[0]][row[1]] == 1)
{
cout<<"Message: Seat "<<row[0] + 1<<seat<<" is already occupied"<<endl;
system("Pause");
}
}
else
{
cout<<"Wrong Class"<<endl;
system("Pause");
system("cls");
continue;
}
}
else if(ticket == "E C")
{
if(row[0]+1 == 8 || row[0]+1 == 9 || row[0]+1 == 10
|| row[0]+1 == 11|| row[0]+1 == 12|| row[0]+1 == 13)
{
if(airplane[row[0]][row[1]] == 0)
{
airplane[row[0]][row[1]] = 1;
airchar[row[0]][row[1]] = 'X';
}
else if(airplane[row[0]][row[1]] == 1)
{
cout<<"Message: Seat "<<row[0] + 1<<seat<<" is already occupied"<<endl;
system("Pause");
}
}
else
{
cout<<"Wrong Class"<<endl;
system("Pause");
system("cls");
continue;
}
}
row[0] = 0;
row[1] = 0;
system("cls");
}
return 0;
}
Answer:
C) X=40.24 Y=24.33 Z=20.75
Explanation:
Answer:
a. Availability of software licensing
Explanation:
With feasibility analysis, we take into consideration economic, technical, legal, and scheduling factors to make sure that our project completes successfully. Acquiring license for a software can be free of cost or paid subscription. So a business analyst needs to make an account of the cost of accessing the software services. Also while automating a software installation process, it would require automatic authentication which would again require details of licensing. So in my best knowledge, analyzing availability of software licensing is a must and foremost step for a feasibility study.
Answer:
The constructor are executed when the constructor object are comes in the existence as per the general rule in the computer programming language. The constructor is the special type of the class function that basically perform the initialization of the each object in the computer science.
Then, the constructor initialized actual value of the member of an object are allocated to the given object in the system.
The analytical decision-making style most likely requires the most amount of data analysis.
Define data analysis.
Data analysis is the process of systematically inspecting, cleaning, transforming, and modeling data with the goal of discovering useful information, drawing conclusions, and supporting decision-making. Data analysis is used in a wide range of fields, including business, science, social sciences, and engineering, to extract insights from raw data and identify patterns, trends, and relationships. The process of data analysis typically involves using statistical and mathematical techniques, as well as visualization tools, to interpret and communicate the results of the analysis.
The analytical decision-making style is most likely to require the most amount of data analysis. Analytical decision-making involves a methodical and thorough approach to gathering and analyzing data before making a decision. This style of decision-making is often used in complex or high-stakes situations, where there are many variables to consider and the consequences of a poor decision could be significant. Analytical decision-making involves collecting data from multiple sources, analyzing the data using various methods, and making a decision based on the results of the analysis. This style of decision-making can be time-consuming and requires a significant amount of data analysis to ensure that all relevant information has been considered before making a decision.
To learn more about the data analysis click here
#SPJ1
Java application:
Java is a programming language and computing platform first released by Sun Microsystems in 1995. It has evolved from humble beginnings to power a large share of today’s digital world, by providing the reliable platform upon which many services and applications are built.
//create a class MathTest.java
public class MathTest {
public static void main(String[] args) {
//a. The square root of 37
System.out.println("The square root of 37= " + Math.sqrt(37));
//b. The sine and cosine of 300
System.out.println("The sine of 300=" + Math.sin(300));
System.out.println("The cosine of 300=" + Math.cos(300));
//c. The value of the floor, ceiling, and round of 22.8
System.out.println("The value of the floor 22.8=" + Math.floor(22.8));
System.out.println("The value of the ceiling 22.8=" + Math.ceil(22.8));
System.out.println("The value of the round 22.8=" + Math.round(22.8));
//d. The larger and the smaller of the character ‘D’ and the integer 71
int number = 'D';
System.out.println("The larger of the character ‘D’ and the integer 71=" + Math.max(number, 71));
System.out.println("The Smaller of the character ‘D’ and the integer 71=" + Math.min(number, 71));
//A random number between 0 and 20
System.out.println("A random number between 0 and 20= "+(int)(Math.random()* 20 + 1));
}
}
Output:
The square root of 37= 6.082762530298219
The sine of 300=-0.9997558399011495
The cosine of 300=-0.022096619278683942
The value of the floor 22.8=22.0
The value of the ceiling 22.8=23.0
The value of the round 22.8=23
The larger of the character ‘D’ and the integer 71=71
The Smaller of the character ‘D’ and the integer 71=68
A random number between 0 and 20= 10
Learn more about the topic Java application: