Product of array Items
given an array integers,write JS program to get the product of the integers in the given array.
input
the input will be containing single line integers.
output
the output should be single line containing the product as shown in sample outputs.
input1
[1,2,3]
output1
[1 * 2 * 3 = 6]
input2
[-1, -2, -3]
output2
[-1*-2*-3 = -6]
Note: The Output should be displayed as [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 */
}
Create an console application to book train tickets. Create a Passanger class with (Name, Age) and write a function called TicketBooking(no_of_tickets) that takes no.of tickets to be booked. If the no of tickets is > 2 per booking, raise an user defined exception, and print "cannot book more than 2 tickets". Else Print "Ticket Booked Successfully". Add a Test class to call TicketBooking method by accepting all required details.
Create a list of numbers consisting of your student number
and find any s
pecific number inside the list
,
you can use listsearch or binary
search
this list. Then do a sorting to sort the numbers in this list from
least to greatest.
Keep the
repetitive
numbers as it is.
NMIMS Global Access School for Continuing Education (NGA-SCE)
Course: E-Business
2. With the rapid evolution of technology and penetration of the technology enabled devices, e-businesses are gaining more and more prominence thereby generating sustainable revenue. Discuss the various revenue models and the associated issues for an e-business.
(10 Marks)
"I WANT FULL LONG ANSWER"
if A=2i+j+k, B=i-2j+2k and C=3i-4j+2k , find the projection A+C in the direction of B.
Select one:
A 173
B 203
C 143
D 193
Given the following thermochemical equations:
1.) 4NH3)+302(g) → 2N₂(g) + 6H₂0 (1) ∆H°-1531 kJ
2.) N₂O(g) + H₂(g) → N₂(g) + H₂O(0) ∆H°-367.4 k]
3.) H₂(0)+02 (0)→ H₂0 (1)
∆H°= -285.9 kJ
Find the value of AH" for the reaction:
2NH3(g) + 3N₂0(g) → 4N₂(g) + 3H₂O(1)
Consider the set of even single-digit number {0, 2, 4, 6, 8}.
· Make a list of all possible sample size of 2 that can be taken from this sets of numbers (with replacement)
· Construct the sampling distribution of the sample means for the size of 3 and the standard error.
Chlorine trifluoride is a colorless, poisonous, and corrosive gas. It is produced from the reaction between chlorine fluoride and fluorine gas.
CIF(g) + F2 (g) → CLF3 (9)
Determine the ∆H° for the overall reaction based on the three-step thermochemical process below:
1.) 2CLF(g) + O2(g) → Cl₂0(g) + F₂0 (g) ∆°H-167.5 k]
2.) 2C1F3(g) +202(g) → Cl₂0(g) + 3F₂0(g)
∆H° =-341.4 k]
3.) 3F₂0)→2F2 (g) + O2(g)
∆H° = 43.4 kJ
A particle moves along the space curve r=e-t(cost i+sint j+k). Find the magnitude of the veloctiy at any time t.
Select one:
A 5e-1
B 5e-t
C 3e-1
D 3e-t
A system absorbs 50J of heat during a transformation. Determine the change in internal energy if
the system perform, (a) 15J and (b) 65J of work on the surrounding.
Find the ∆E
a) When 175J of work is done on a system that evolves 50J of heat to the surrounding.
b) When a gas absorbs 28kJ of heat and 13kJ of work done on it.