This month is English month so everyday in class, a student must present his/her 'word of the day' and explain what it is. Today is Cody's turn, he decides to present the word 'apostrophe' and show them how it looks. Print an apostrophe for the class.
It is a good idea to open the HTML file in Live Server (if using VS Code) or a browser and check your code frequently. The easiest way to find errors is to see them as soon as you make them! It is also a good idea to open the browser console to see if there are any errors. 1. Add code to the HTML file to reference the script.js file using best practices. Other than this, do not modify either the HTML or CSS file. 2. In the script.js file set strict mode for JavaScript. 3. Create a new h3 element with your name in it and insert it before the first paragraph. 4. In the footer, add a cite element with the text "Information and photos from Wikipedia" where "Wikipedia" is a link to the page "https://en.wikipedia.org/wiki/Bumblebee". 5. console.log the number of paragraphs with some descriptive text (open the browser console to see the output). 6. Add the class "special" to the second h2 element. 7. Select all the figcaptions and make the font italic.
Develop a python application that will randomly select n intergers from 1 to 9 and will count and the numbers of accurance of the numbers without using the counter from collection library.
Sample output 1:
How many numbers?; 5
[4, 6, 8, 3, 3]
1-4
1-6
2-3
Sample output 2
How many numbers?: 7
[2, 6, 8, 2, 1, 1 , 6]
2-2
2-6
1-8
2-1
Develop a python application that will randomly select n intergers from 1 to 9 and will count and the numbers of accurance of the numbers without using the counter from collection library.
Sample output 1:
How many numbers?; 5
[4, 6, 8, 3, 3]
1-4
1-6
2-3
Sample output 2
How many numbers?: 7
[2, 6, 8, 2, 1, 1 , 6]
2-2
2-6
1-8
2-1
Write a program using one-dimensional array that accep t fiveinput values from the keyboard. Then it should also accept a number to search. This number is to be searched if it is among the five input values. If it is found, display the message “Searched number is found!”, otherwise display “Search number is lost!”
5 types of time complexity
Matrix Program
you are given an m*n matrix.write a program to compute the perimeter of the matrix and print the result.Perimeter of a matrix is defined as the sum of all elements of the four edges of the matrix.
Input
The first line of input containing the positive integer.
The second line of input containing the positive integer.
The next N lines of input space-separated integers.
Explanation: The input should be
3
4
1 2 3 4
5 6 7 8
9 10 11 12
The output should be 65.
Sample Input1
4
4
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
Sample Output1
102
A teacher asked Ramesh to draw a Quadrilateral of a specific pattern with only symbol. The length and height should be L. Here L is the number of characters in every line. The height of the * quadrilateral is the number of lines it contains.
The slope of the quadrilateral taken as S represents the the number of extra space characters in a line when compared to its next line.
The last line will not have any space characters before the * character.
Sample Input1
6 9
Sample Output1
******
******
******
******
******
******
product of array items
given an array integers, write a JS program to get the product of the given integers in the array
sample input1
[1,2,3]
sample output1
1*2*3 = 6
"use strict";
process.stdin.resume();
process.stdin.setEncoding("utf-8");
let inputString = "";
let currentLine = 0;
process.stdin.on("data", (inputStdin) => {
inputString += inputStdin;
});
process.stdin.on("end", (_) => {
inputString = inputString
.trim()
.split("\n")
.map((str) => str.trim());
main();
});
function readLine() {
return inputString[currentLine++];
}
function main() {
let integers = JSON.parse(readLine());
/* Please do not modify anything above this line */
/* Write your code here and log the output */
}
INPUT:
[1,2,3]
OUTPUT:
1*2*3 = 6
INPUT:
[-1,-2,-3]
OUTPUT:
-1*-2*-3 = -6 SHOULD BE LIKE THIS
Write an algorithm using pseudocode to verify that a password's length exceeds 8 characters, but is shorter than 12 characters. (INCLUSIVE 8-12)