find the surface area of the object obtained by rotating y=4+3x^2, 1<=x<=2 about the y axis
If 10% of the Screws produced by an automatic machine are defective, find the probability that out of 20 screws selected at random, there are
(i) Exactly 2 defective
(ii) At least 2 defectives
(iii) Between I and 3 defectives (inclusive).
Create a class Employee with following data members, name, id, and salary as private data member. Create array of objects for four employees, compare their salary using operator overloading, and display the records of the student who is getting less salary.
Discuss various applications of Initializer List with the help of suitable examples
: Write a program to perform class to basic conversion[Such as: Class is: Triangle with data members base and height(float), and basic type is float(area of triangle)].
1. The sum of two positive numbers is 10. Find these numbers if the sum of their squares is a minimum.
2. Abby builds a rectangular pig pen with two parallel partitions using 150 meters of fencing materials. what should be the dimension of the pigpen so that it would enclose the largest possible area?
3. Find the dimensions of a rectangle with an area of 225 cm^2 whose perimeter is as small as possible.
4. Find two possible numbers whose the sum is 15 when the product of the first number and the square of the second number us to be a maximum.
5. The sum of two positive numbers is 18. Find the numbers if the sum of their cubes is a minimum.
Write a program to overload operators in the same program by writing suitable operator friend functions for following expression: O6=((O1+O2) -(O3*O4) * (++O5)) [Here O1,O2,O3,O4,O5 and O6 are objects of a class “overloading”, and this class is having one integer data member]
: Write a program to write 5 book records in a file. Program should also perform random access in the file, after taking input for a particular record number to read and it should also perform random record overwriting after taking input of new record and the record number to overwrite. [Attributes of book: Book_id, Book_price, Book_name, Book_author_name]
"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