Question 3:
3. Write a function that display the following table
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
<html>
<head>
<title>Table Creation !!</title>
<script type="text/javascript">
function tableInfo()
{
var r,c,k;
k=1;
for(r=1;r<=3;r++)
{
for(c=1;c<=5;c++)
{
document.write(k+" ");
k++;
}
document.write("<br>");
}
}
</script>
</head>
<body>
<script type="text/javascript">
tableInfo();
</script>
</body>
</html>
Question 4.
<html>
<head>
<title>Decisions </title>
<script type="text/javascript">
function decisions(no)
{
if(no==0)
{
console.log("Terrible");
}
else if(no>=0 && no<2.5)
{
console.log("Not Great");
}
else if(no>=2.5 && no<4)
{
console.log("Alright");
}
else if(no>=4 && no<5)
{
console.log("Dope");
}
}
</script>
</head>
<body>
<script type="text/javascript">
var no;
no=parseFloat(prompt("Enter a float : "));
decisions(no);
</script>
</body>
</html>
Assignment # 3 :
<html>
<head>
<title>JavaScript Assignment</title>
<script type="text/javascript">
console.log("Function with one parameter : ");
function show1(no1)
{
var i;
for(i=1;i<=no1;i++)
{
console.log(i+". HI BOB");
}
}
console.log("Function with two parameter : ");
function show2(no2,msg)
{
var i;
for(i=1;i<=no2;i++)
{
console.log(i+". "+msg);
}
}
</script>
</head>
<body>
<script type="text/javascript">
var no1,no2,msg;
no1=parseInt(prompt("Enter an Integer : "));
show1(no1);
no2=parseInt(prompt("Enter an Integer : "));
msg=prompt("Enter a message : ");
show2(no2,msg);
</script>
</body>
</html>
3. Write a function that displays the following table... 4. 6 7 8 9 10 11...
please help. thank you!
Total Question 12 3 4 5 6 7 8 9 10 11 1213 14 15 16 | 435(11.4%) 12 -/1 -/1 -8-6-6-/1 -3-13 ㅢ1-1 0/3 1/1 0,1 Points Assignment Submission For this assignment, you submit answers by question parts. The number of submissions remaining for each question part only cha Assignment Scoring Your last submission is used for your score. 4. 0/1 points I Previous Answers OSPreCalc1 8.1.041 Find the measure of angle x, If possible....
please answer 14.17
- Data Table for Problems 14.17 through 14.19* Period 1 2 3 4 5 6 7 8 9 10 11 12 requirements 30 40 30 70 20 10 80 50 8 "Holding cost $2.50/unit/week; setup cost $150; lead time 1 week; beginning n Gross inventory 40 m14.17 Develop a lot-for-lot solution and calculate total rel- s evant costs for the data in the table for Problems 14.17 through d 14.19. Px 14.18 Develop an EOQ solution and...
Program 7 File Processing and Arrays (100 points) Overview: For this assignment, write a program that will process monthly sales data for a small company. The data will be used to calculate total sales for each month in a year. The monthly sales totals will be needed for later processing, so it will be stored in an array. Basic Logic for main() Note: all of the functions mentioned in this logic are described below. Declare an array of 12 float/doubles...
Time Value of Money Spreadsheet Example 4 Module IV Name: Date: 6 7 8 Question 1 9 Question 2 10 Question 3 11 Question 4 12 Question 5 13 Question 6 14 Question 7 15 Question 8 16 Question 9 17 Question 10 18 19 20 Single Amount or Annuity 21 Periodic Interest Rate 22 Number of Periods 23 24 25 Present Value of Single Amount 26 27 Future Value of Single Amount 28 29 Future Value of An Annuity...