Write a Java program to read first 3 lines from the file
Mention and explain each field of IPv6 header in detail, by taking suitable examples.
Find the first address, last address and the number of addresses of a network whose one of the IP addresses is 50.28.22.75 / 28.
Create a simple Temperature calculator that will convert the temperature in Fahrenheit to Celcius Kelvin. Your calculator must include:
combined right angled triangles pattern:
you are given n. print n rows starting from 1 after combining two inverted-right-angled triangles pattern as shown in the output of the given example
explanation : 1st inverted right angled triangle pattern
1 2 3 4
5 6 7
8 9
10
2nd inverted right angled triangle pattern
17 18 19 20
14 15 16
12 13
11
combined pattern
1 2 3 4 17 18 19 20
5 6 7 14 15 16
8 9 12 13
10 11
input : n=4
output:
1 2 3 4 17 18 19 20
5 6 7 14 15 16
8 9 12 13
10 11
input: 5
output:
1 2 3 4 5 26 27 28 29 30
6 7 8 9 22 23 24 25
10 11 12 19 20 21
13 14 17 18
15 16
2 6 3 1 8 12 2 9 10 3 4
find mean,median,mode
Use the below reference image:
https://assets.ccbp.in/frontend/content/dynamic-webapps/ccbp-login-op.gif
JAVASCRIPT Code
let myFormEl = document.getElementById("myForm");
let nameEl = document.getElementById("name");
let nameErrMsgEl = document.getElementById("nameErrMsg");
let passwordEl = document.getElementById("password");
let passwordErrMsgEl = document.getElementById("passwordErrMsg");
let resultErrMsgEl = document.getElementById("resultMsg");
nameEl.addEventListener("blur", function(event) {
if (event.target.value === "") {
nameErrMsgEl.textContent = "Required*";
} else {
nameErrMsgEl.textContent = "";
}
});
passwordEl.addEventListener("blur", function(event) {
if (event.target.value === "") {
passwordErrMsgEl.textContent = "Required*";
} else {
passwordErrMsgEl.textContent = "";
}
});
4. The cost of an international call from Philippines to Vietnam is calculated as follows:
Connection Fee. $l.50: $2.00 for first minutes; and $0.05 for each additional minute.
Write a program that prompts the user to enter the of minutes the call lasted and
outputs the amount due. Convert also the amount due in dollar to the currency of Vietnam
(Dong)
Conversion Factor: $1.00-19,000.00
how would one say a number is closer to another number than a another number if u know what I mean
Like say we have...
X
We wanna see if
X
Is closer to y
Or closer to w
Q2.2: Find the first address, last address and the number of addresses of a network whose of the IP addresses is 50.28.22.75/28.