Answer: The internet protocol (IP) stack consist of the five layers and their functioning which are as follows:-
- Application layer:- this layer is responsible for the type of service that is operating the system.It uses protocols like SMTP(Simple mail transfer protocol, FTP(file transfer protocol) etc.
- Network layer:-this layer is used for the routing and transmission of the data packets through the routes. The exchange of IP packets is done between the server and the client.
- Transport layer:-It uses the protocols TCP(Transmission control protocol) and UDP(User datagram protocol)for splitting the message and sending it to the recipient's address.
- Data link layer:-it uses the point-to-point protocol for the sending the message from node to node.It also handles the data while inputting and outputting of the physical network.
- Physical layer:-The working is done in a frame in which the the bits present in one node is transferred to other. It is used for defining the physical parameters like cables, etc.
Answer:
1/3
Explanation:
3/18 divided by 2 equals 1/3
hope this helps
have a good day
Answer:
1 is def... don't know about the other one though sorry
Answer:
- import java.util.Scanner;
- public class MealPriceCalculation{
-
- public static void main(String[] args) {
-
- Scanner input = new Scanner(System.in);
- System.out.print("Enter meal price: ");
- double meal = input.nextDouble();
- System.out.print("Enter tip: ");
- double tip = input.nextDouble();
-
- calculatePrice(meal,tip);
- calculatePrice(meal,(int)tip);
-
- }
-
- public static void calculatePrice(double meal, double tip){
- System.out.println("Total meal price: $" + (meal + tip) );
- }
-
- public static void calculatePrice(double meal, int tip){
- System.out.println("Total meal price $" + (meal+tip));
- }
- }
Explanation:
The solution code is written in Java.
Overload methods are the methods that share the same name but with different method signature. In this question, we create two overload methods calculatePrice (Line 17-23). One version will accept parameter meal and tip in double type and another will accept parameter meal in double but tip in integer. Both of this method are doing the same job which is just printing the total of meal.
In the main program, create a Scanner object and use it to prompt user to input meal price and tip (Line 6-10). Next call the calculatePrice method for twice. In the first time, pass meal and tip as double type data to calculatePrice method (Line 12). In the second time, pass meal in double but tip in integer to the method. Only the method with parameter list that match the argument data type will be implemented and output the total meal price.
The answer is B) Thermal protector