Magical Indices
Given an array of integers and a number
Write a JS program to determine the number of valid indices.
For example, an array A = [10, 20, 30] and a value x = 25.
We have values 10, 20, 30 at indices 0,1,2 respectively.
So there are 2 valid indices.
Sample Input 1
[1, 2, 3, 5, 7]
13
Sample Output 1
3
Sample Input 2
[34, 32, 37, 38, 40]
10
Sample Output 2
Product of Array Items
Given an array
Sample Input 1
[1, 2, 3]
Sample Output 1
1 * 2 * 3 = 6
Sample Input 2
[-1, -2, -3]
Sample Output 2
-1 * -2 * -3 = -6
Replacing Array Item
Given an array
Sample Input 1
[1, 2, 3, "four", 5, 6]
"four"
4
Sample Output 1
[ 1, 2, 3, 4, 5, 6 ]
Sample Input 2
[22, 44, 88, 352, 352]
352
176
Sample Output 2
[ 22, 44, 88, 176, 352 ]
Squares of Array Items
Given an array
Sample Input 1
[[1, 2], [3, 4], [5, 6]]
Sample Output 1
[ [ 1, 4 ], [ 9, 16 ], [ 25, 36 ] ]
Sample Input 2
[12, [24], 36, [48, 60]]
Sample Output 2
[ 144, [ 576 ], 1296, [ 2304, 3600 ] ]
In this assignment, let's build an Instagram Story Viewer page by applying the CSS concepts we learned till now.
Note
Choose the correct option. Where all Java program files are stored, in the folder:
A.) bin
B.) scr
Find mistakes:
import java.applet.*;
import java. .*
public class Main extends JApplet
public paint (Graphics g) {
g.drawString ("Welcome in Java Applet!" , 40, 20);
}
}
Bookmark Maker
Write a HTML, CSS, JavaScript Dynamic Web Application Program for Bookmark Maker
The below Url is the Question and procedure of Bookmark Maker
https://drive.google.com/file/d/13KC5acqLGj61aayVab137d8s9rPArIfs/view?usp=sharing
Bookmark Maker
Write a HTML, CSS, JavaScript Dynamic Web Application Program for Bookmark Maker
The below Url is the Question and procedure of Bookmark Maker
https://drive.google.com/file/d/13KC5acqLGj61aayVab137d8s9rPArIfs/view?usp=sharing
Unite Family
Given three objects
Sample Input
{'surname' : 'Jones', 'city': 'Los Angeles'}
{'dish': 'puddings'}
{'pet': 'Peter'}
Sample Output
Mr and Mrs Jones went to a picnic in Los Angeles with a boy and a pet Peter. Mrs Jones made a special dish "puddings"