Questions: 9 913

Answers by our Experts: 9 913

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

Looping problem:-

Input two positive integers a and b from the user. Determine the integer quotient of a/b. Assume that the division operator is not available.


Looping problem:-

Write an if-else statement that outputs the word "Warning" provided that either the value of the variable temperature is greater than or equal to 100, or the value of the variable pressure is greater than or equal to 200, or both. Otherwise, the if-else statement outputs the work "OK".


Three numbers denoted by the variables A, B and C are supplied as input data. Print these three numbers in ascending order.


Looping problem:

Multiply a number with the sum of its digits.


Input a number and display that how many digits it has.


Given a 1D integer array of size n. Range of elements is natural numbers from 1 to n. One number is missing, and one occurs twice. Your task is to find these two numbers.


For example: Arr[9] : 5 6 4 3 2 1 3 7 9 Missing element: 8


Element that occurs twice: 3

Input a positive integer from the user and determine whether the number is a prime number or not.

Input a positive integer from the user and determine whether the number is a perfect number or not.


Note: A perfect number is a positive integer that is equal to the sum of its proper positive divisors, that is, the


sum of its positive divisors excluding the number itself.

Input 10 numbers, and display smallest number


Write a C++ program using classes and objects, which can find the overall average of the entire group(say n) of patients. A single object with default constructor adds 10 patients with 60 kg average kg overweight or underweight. All objects of this patient class(and ONLY objects of this patient class) update the total weight and the total number(n) of patients and can display the overall average. Your C++ program should provide all these facilities.

      


LATEST TUTORIALS
APPROVED BY CLIENTS