code
<!DOCTYPE html>
<html>
<head>
<title> multiplication table</title>
<style type="text/css">
/*giving styles to the
tables*/
table,th,td{
border: 1px
solid black;
}
</style>
</head>
<body>
<center> <!-- aligning table to center
-->
<table id='multi_table' cellpadding="5px">
</table></center>
<!-- java script for the multiplication table
-->
<script type="text/javascript">
var table =
document.getElementById('multi_table'); //taking the id of the
table inorder to put output
var output = ""; //creating output
variable to store the data and print in HTML
//loop for columns
for(var i=0 ; i<=12;i++) {
//making
rows
output+="<tr>";
//loop for
rows
for (var j=0 ;
j<=12 ;j++){
if(i==0 && j==0)
output+="<th>
</th>"; //for the blank space in the table header
else{
if(j==0)
output+="<th>"+i+"</th>"; //table header 0-12
rows
if(i==0)
output+="<th>"+j+"</th>"; //table header 0-12
columns
if(j!=0 &&
i!=0)
output+="<td>"+i*j+"</td>" //creating elements in the
table using i and j values multiplication
}
}
output+="</tr>"//ending the row
}
table.innerHTML=output; //putting
the entire output which is stored in output in the HTML table
//using innerHTML attribute
</script>
</body>
</html>
code screen shots
output in the browser
Any queries comment please
Note: The assignment must be submitted into the designated link in the Blackboard cou page. You...
Python pleases! Write a program that will produce the following table below. You will use a nested for loop and a duplicate nested while loop in one program. Note that this is the one through twelve multiplication table. Write the flowchart for the program. X 1 2 3 4 5 6 7 8 9 10 11 12 1 1 2 3 4 5 6 7 8 9 10 11 12 2 2 4 6 8 10 12 14 16 18...
NB: All C programs should be compiled using C Compiler application. The code should be shown on the document. A screen shot of the running program given as output on the assignment. a). Describe the types of arrays and operations that can be performed of them. [10] b). Write a program to print the multiplication table from 1*1 to 12*10. [10] Example MULTIPLICATION TABLE 1 2 3 4 5 6 7 8 9 10 2 4 6 8 10 12...
Problem-2 A very thin, uniformly-charged rod with total charge Q and length 2L lies along the vertical 2-axis. Sitting still (zero velocity and zero acceleration) at a distance H above the top end of the rod is a proton. Gravity is acting on the proton in the downward (-2) direction. What is the the total charge Q on the rod? + profon K & de d = k l . dx. - EL - K Let =) , U, -...
Exercise 4 – Printing out 10 multiples per row Design a function called print_ten_multiples that takes an integer as a parameter. The function should print out the first 10 multiples of all numbers from 1 up to the given number. The values printed should be formatted with "3d". Example: print(format(x, "3d")) Examples of how the function output should look with this formatting: print_ten_multiples(3): 1 2 3 4 5 6 7 8 9 10 2 4 6 8 10 12 14...
Please show how you did this in excel. :13-19 Every home football game for the past eight years at Eastern State University has been sold out. The revenues from ticket sales are significant, but the sale of food, beverages, and souvenirs has contrib- uted greatly to the overall profitability of the football program. One particular souvenir is the football pro- gram for each game. The number of programs sold at each game is described by the following probabil- ity distribution:...
1. Forecast demand for Year 4. a. Explain what technique you utilized to forecast your demand. b. Explain why you chose this technique over others. Year 3 Year 1 Year 2 Actual Actual Actual Forecast Forecast Forecast Demand Demand Demand Week 1 52 57 63 55 66 77 Week 2 49 58 68 69 75 65 Week 3 47 50 58 65 80 74 Week 4 60 53 58 55 78 67 57 Week 5 49 57 64 76 77...
Problem #1: Consider the below matrix A, which you can copy and paste directly into Matlab. The matrix contains 3 columns. The first column consists of Test #1 marks, the second column is Test # 2 marks, and the third column is final exam marks for a large linear algebra course. Each row represents a particular student.A = [36 45 75 81 59 73 77 73 73 65 72 78 65 55 83 73 57 78 84 31 60 83...
For each variable of interest – Percent Time Asleep and Longevity – create a grouped frequency histogram. For each histogram, use a class width of 10; use a lower limit of 0 for Percent Time Asleep and 15 for Longevity. Each histogram must include an informative title, along with correct labels for both axes. For each histogram, include a paragraph that answers each of the following questions: Is the histogram symmetric, skewed to the left, or skewed to the right?...
Conduct a formal hypothesis test of the claim that the mean longevity is less than 57 days. Test at significance α=0.05. Your written summary of this test must include the following: Your null and alternate hypotheses in the proper format. The type of distribution you used to construct the interval (t or normal). The P-value and its logical relationship to α (≤ or >). Your decision regarding the null hypothesis: reject or fail to reject. A statement regarding the sufficiency/insufficiency...
For each variable of interest, do the following: 1. Find the mean, five-number summary, range, variance, and standard deviation. Display these numbers in a format that is easy to understand. 2. For each variable of interest, use its five-number summary to construct a boxplot. Each boxplot must be constructed horizontally, and must be accompanied by a brief descriptive paragraph that assesses whether the data appear to be symmetrical, left-skewed, or right-skewed. Construct a 95% confidence interval for the mean μ...