Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a program that reads a set of integers, and then finds and prints the sum



of the even and odd integers.

LOOPS

Write a program that uses while loops to perform the following steps:

  • Prompt the user to input two integers: firstNum and secondNum

(firstNum must be less than secondNum).

  • Output all odd numbers between firstNum and secondNum.
  • Output the sum of all even numbers between firstNum and

secondNum.

  • Output the numbers and their squares between 1 and 10.
  • Output the sum of the square of the odd numbers between firstNum

and secondNum.

  • Output all uppercase letters.




















In this assignment, let's build a Articles Page by applying the concepts we learned till now. You can use the Bootstrap concepts and CCBP UI Kit as well.


Check whether the given schedules are conflict serializable or not

 S1 : R2(B)W2(A)R1(A)R3(A)W1(B)W2(B)W3(B)

S2:R3(Y)W3(Z)R1(X)W1(X)W3(Y)W3(Z)R2(Z)R1(Y)W1(Y)R2(Y)W2(Y)


Check whether Schedule is serial, serializable, Conflict serializable

S:R2(Z),R2(Y),W2(Y),R3(Y),R3(Z),R1(X),W1(X),W3(Y)W3(Z)R2(X)R1(Y)W1(Y)


Make a program that asks the user for the hours worked for the week and the hourly rate. The basic salary is computed as:



Salary = hours worked*hourly rate



Bonuses are given:


-No. of hours > 45


~No of hours > 40 and <= 45


✓No of hours > 35 and <= 40



-Bonus of 500 pesos


~Bonus of 250 pesos


✓Bonus of 150 pesos

I want pass all test cases

Sample Input 1

8
4

Sample Output 1

2
576
1024

"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 ArithmeticOperations(firstNumber, secondNumber) {

 this.firstNumber = firstNumber;

 this.secondNumber = secondNumber;

}

function main() {

 const firstNumber = JSON.parse(readLine());

 const secondNumber = JSON.parse(readLine());

 const operation1 = new ArithmeticOperations(firstNumber, secondNumber);

 /* Write your code here */

 console.log(operation1.ratioOfNumbers());

 console.log(operation1.sumOfCubesOfNumbers());

 console.log(operation1.productOfSquaresOfNumbers());

}



I want pass all test cases

Sample Input 1

7

Sample Output 1

153.86
43.96

Sample Input 2

25

Sample Output 2

1962.5
157

"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++];

}

/* Please do not modify anything above this line */

function Circle(radius) { 

 /* Write your code here */

}

/* Please do not modify anything below this line */

function main() {

 const radius = JSON.parse(readLine());

 const circle1 = new Circle(radius);

 console.log(circle1.getArea());

 console.log(circle1.getCircumference());

}



A palindrome is a word, phrase, number or other sequence of characters which reads the same backward and forward. Write a C program that enter a word, store it in an array and determine whether it is palindrome or not.


Example : CIVIC is a palindrome

HOT is a not a palindrome


Write a C++ Program with Object-Oriented features like Operator Overloading and friend function for the following task:


In an Academic Institute, the Students, Research Scholars, and Faculty will borrow books from the Library. Assume for students the due date is 14 days, Research Scholars 21 days, and Faculty 28 days to return their borrowed books. 


For the sake of better programming assume that Student Id starts with S, Research Scholars Id starts with R, and Faculty Id starts with F.


Write an appropriate method to display the due date based on the category and calculate the penalty for the defaulter based on the late return date/submission. For every late submission day Rs. 5 will be added to their penality amount.


Ex: 


Name: Raja    ID: S20BCE1123  Book Issue Date: 10.11.2021 Return Date: 22.11.2021 Penality: Nil


Name: Rani ID: F21CSE1234  Book Issue Date: 01.11.2021 Return Date: 22.11.2021 Penality: Nil


LATEST TUTORIALS
APPROVED BY CLIENTS