Answer:
HTML is the standard markup language for creating and designing websites
while
HTML5 is the fifth and the latest version of HTML
with new added features,tags and element
Answer:
import java.util.Random;
import java.util.Scanner;
public class Dice {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("how many times want to roll: ");
int n = sc.nextInt();
Random ran = new Random();
int[] arr = new int[7];
int i = 0;
while(i < n) {
int r = ran.nextInt(6)+1; //1-6
arr[r]++;
i++;
}
double[] frequency = new double[7];
for(i=1; i<7; i++) {
frequency[i] = arr[i]/(double)n;
}
System.out.println("Number\t\toccurrences\t\tfrequency");
for(i=1; i<7; i++) {
System.out.print(i+"\t\t"+arr[i]+"\t\t\t");
System.out.println(String.format("%.5f", frequency[i]));
}
}
}
/*
Sample run:
how many times want to roll: 400
Number occurrences frequency
1 69 0.17250
2 71 0.17750
3 72 0.18000
4 59 0.14750
5 62 0.15500
6 67 0.16750
*/
Explanation:
Answer:
Simplifies creating a complex program
Explanation:
Answer:
The output of the given C++ language code is as follows:
Output:
5 10
Explanation:
Description of the given C++ language code as follows:
- In this code, the main method is defined inside the main method an integer variable num is declared that contains a value that is "5".
- In this method first, a variable value is printed then a function that is "change" is called then we print function value.
- In the last, a change method is defined, which contains an integer variable "num" in its parameter, and inside a function num variable another value is defined, that is 10, that's why the first 5 and then 10 value is printed.
<span>Same Document. Hold down Alt (Win) or Option (Mac), and then drag the edge or fill of the object.Different Documents. Open the documents side by side, and then drag the edge or fill of the object from one document to another.Copy/Paste from Clipboard. ...<span>Keyboard.</span></span>