"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 person = JSON.parse(readLine().replace(/'/g, '"'));
/* Please do not modify anything above this line */
/* Write your code here and log the output */
}
length is not difined
by CodeChum Admin
My friends are geeking out with this new device I invented. It checks if a number is even or odd! 🤯
Do you want to try it out?
Instructions:
Input
1. Integer n
2. N integer values
by CodeChum Admin
We've been giving positive numbers too much attention lately, it's time to let negative numbers take the spotlight this time!
Instructions:
Input
1. First decimal number
2. Second decimal number
3. Third decimal number
4. Fourth decimal number
Output
The first four lines will contain message prompts to input the four decimal numbers.
The last line contains the sum of all the inputted negative numbers, with 2 decimal places.
Enter·the·first·number:·-30.22
Enter·the·second·number:·10.5
Enter·the·third·number:·-2.2
Enter·the·fourth·number:·-1.8
Sum·of·all·negatives·=·-34.22by CodeChum Admin
This one is a bit tricky. You're going to have to isolate each digit of the integer to determine which one is the largest, so good luck!
Instructions:
Input
1. A three-digit integer
Output
The first line will contain a message prompt to input the 3-digit integer.
The last line contains the largest digit of the inputted integer.
Enter·a·3-digit·integer:·173
Largest·=·7by CodeChum Admin
This one is a bit tricky. You're going to have to isolate each digit of the integer to determine which one is the largest, so good luck!
Instructions:
Input
1. A three-digit integer
Output
The first line will contain a message prompt to input the 3-digit integer.
The last line contains the largest digit of the inputted integer.
Enter·a·3-digit·integer:·173
Largest·=·7A square cost of resistance 4ohm ,50 turns and side length 5cm is places with it's plane making on amgle of 40° with a uniform field 2T.In 4.5 s the coil rotates until it's plane becomes parallel to the.magnetic field.Find the current induced in the coil.
A magnetic field of 3.2T is perpendicular to a square coil of 12 turns.The length of each side of the coil is 9cm.Find the magnetic flux through the coil if the magnetic field makes an angle of 30° with the normal to the plane of the coil.
The demand and supply functions of a product are given by the following
equations: Qd =1500 - 2P and Qs = -1300 + 2P
The government announces a program to support a price increase of $30 per kg of
this grain, which imposes a price floor of $730.
A. What are the equilibrium price and quantity before price support policy?
B. What quantity of grain is purchased by the consumers, supplied by the
producers and purchased by the government at the support price?
C. What is the change in consumer surplus, producer surplus and total surplus?
What is the cost of government to implement this price support policy?
D. Later on, the government changes the price support policy and provides
subsidy of $20 per kg sold. What is the price paid by buyers, price received by
sellers, change in consumer surplus, change in producer surplus and
government cost?
1. Find the pH of the following solutions. Make sure you express your answer in the correct
number of significant digits. (12 marks)
a) 0.0010 M HClO4 …..__________ b) 2.35 x 10-3 M KOH …___________
c) 4.678 x 10-5 M HNO3.._________ d) 12.0 M HCl ...............…__________
e) 0.20 M Ba(OH)2 .....___________ f) 4.30 M H3O+ ...........…...__________
2. Find the [H3O+] in 0.00256 M HBr. (1 mark)
Answer ________________
3. Find the [H3O+] in 0.80 M LiOH. (2 marks)
Answer ________________
4. Find the [H3O+] in a solution with a pH = 3.216 (1 mark)
Answer ________________
5. Find the [H3O+] in 0.45 M BaO (2 marks)
Answer ________________
6. Find the [OH-] in 0.150 M HClO4 (2 marks)
20
Answer ________________
by CodeChum Admin
We've been dealing with integers too much, it's time for float to shine!
Instructions:
Input
1. First float number
2. Second float number
3. Third float number
4. Fourth float number
5. Fifth float number
Output
The first five lines will contain message prompts to input the five float numbers.
The next line contains the inputted float numbers.
The last line contains "Yes" if the condition is true.
Enter·the·first·number:·1.1
Enter·the·second·number:·1.2
Enter·the·third·number:·1.3
Enter·the·fourth·number:·1.4
Enter·the·fifth·number:·1.1
1.1·1.2·1.3·1.4·1.1
Yes