Q2: Write a program to overload operators in the same program by writing suitable operator member
functions for following expression:
O7= ((O1 % O2)>(O3 || O4) - (O5>O6)) [Here O1,O2,O3,O4,O5,O6 and O7 are objects of a class
“overloading”, and this class is having one integer data member]
. Calculate HCV and LCV of a fuel, whose composition by mass is as follows;
Carbon – 90%, Hydrogen – 90%, Sulphur – 90% and reminder being Ash
Write a program to take input for n number of doctor records and write records of all cardiologists in a file named: “record1”. Also write records of all those doctors in another file named: “record2” who are taking salary more than INR 80,000. After writing records in both files, merge their contents in another file: “finalrecord” and read all records of “finalrecord” file and display on screen. [Attributes of doctor: doc_id, doc_name, doc_specialization, doc_salary Note: (solve without vectors)
Explain the determination of equilibrium level of GDP using the aggregate expenditure approach and the savings investment approach in a two sector model. Do you think that equilibrium will always occur at full employment level of output?
For dominant mode propagation in TE mode, if the rectangular
waveguide has a broader dimension of 31.14 mm , then the cutoff
wave number:
Discuss constructors with default arguments and constructor overloading with the help of suitable examples.
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.