Write a program to overload operators in the same program by writing suitable operator member functions for following expression:
07= ((01 % 02) (03 || 04) - (05>06)) [Here 01,02,03,04,05,06 and 07 are objects of a class "overloading", and this class is having one integer data member]
1. Three 7.20 resistors are connected in series. Illustrate a schematic diagram for the case. What is their equivalent resistance? Show your complete solution.
"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 myArray = JSON.parse(readLine());
/* Please do not modify anything above this line */
/* Write your code here and log the output */
let min = myArray[0], result = undefined, index = 0;
while (myArray.length) {
myArray.map((e, i)=> {
if (e < min) min = e;
index = i
})
if (min % 3 === 0 && min % 2 === 0) {
result = min;
break
}
myArray.splice(index, 1);
min = myArray[0];
}
console.log(result)
}
other logic is solutiion
1. You connect a number of identical light bulbs to a flashlight battery. (a) What happens to the brightness of each bulb as more and more bulbs are added to the circuit if you connect them (i) in series and (ii) in parallel? (b) Will the battery last longer if the bulbs are in series or in parallel? Explain your reasoning.
1. A Cylindrical capacitor having a length of 8 cm is made of two concentric rings with an inner radius as 3 cm and outer radius as 6 cm. Find the capacitance of the capacitor.
2. A parallel-plate capacitor is filled with polystyrene of 0.0002 m thickness. Find the plate area if the new capacitance after the insertion is 3.4 µF.
<div class="bg-container text-center">
<button class="get-activity-button p-1 mt-3" id="getActivityBtn">Get Activity</button>
<div class="mt-2" id="result">
<div class="d-flex flex-row">
<div class="w-50 d-flex flex-column justify-content-center text-center">
<p id="activityName" class="activity-name">Buyanewhousedecoration</p>
<p id="activityType" class="activity-type">recreational</p> </div>
<div class="w-50"> <img src="https://assets.ccbp.in/frontend/react-js/ranactivity/party.png" id="activityImg" class="activity-img" /></div></div></div>
<div class="d-none mt-5 mb-5" id="spinner">
<div class="d-flex flex-row justify-content-center">
<div class="spinner-border" role="status">
"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 */
}
input1
{ 'name':'Pranay', 'address':{'city':'Mumbai','state':'maharastra'}, 'nicknames':['nani','chanti']}
output2
pranay is from mumbai,maharastra
pranay has 2 nicknames
length is not defined but output is come
Assume inflation in Turkey is 50% and 2% in the US. Using the relative PPP,
a) Calculate the exchange rate (R= TL/$) and the exchange rate (R= $/TL).
b) Assume that the Turkish inflation increases to 100% while the US inflation remains at 2%, calculate the new exchange rate between the Turkish Lira and the US dollar.
Show your solution.
1. When a 12.0-V car battery powers a single 30.0 W headlight, how many electrons pass through it each second?
2. Two electrons are 10^5 m apart. One electron is fixed on its position. The other, originally at rest, is released. How fast is the free electron moving when it is 10^ −3 m from the fixed charge? Apply conservation of energy.
3. Two point charges, +400 uC and -2.00 uC are 0.55m apart. (a) what is the potential energy of the pair? (b) If the positive charge is fixed and the other is released from rest, how far from each other should the charges be if the negative charge is moving with a speed of 2.30 x 10^2 m/s? Let the mass of the moving charge be 8.00 x 10^−6 kg.
(1+3i÷2-5i)^2