write a C++ program.An array my_Array[] consisting of ‘a’ s, ‘b’ s and ‘c’s. The task is to write a function that
arranges the array such that all ‘a’s are placed first, then all ‘b’s and then all ‘c’s in last.
You are given two sorted arrays (all elements are in ascending order). You need to merge these
two arrays such that the initial numbers (after complete sorting) are in the first array and the
remaining numbers are in the second array.
Write a C++ program.
Dynamically allocate a 1D integer array of size n. Populate it with random numbers from 1 to
99.
Display the array in main function. Pass it to a void function difference() along with a variable
‘diff’ by reference.
The function displays the highest and the lowest element in the array and calculates the
difference between the highest and the lowest element and return it to the main function using
the variable passed where it is displayed.
. Consider Interest centers on the life of an electronic component. Suppose it is known that the probability that the component survives for more than 6000 hours is 0.42. Suppose also that the probability that the component survives no longer than 4000 hours is 0.04. Determine the Probability that;
(a) The life of the component is less than or equal to 6000 hours?
(b)The life is greater than 4000 hours?
using a table, differentiate between the percentage composition by volume of atmospheric air and dissolved air
You are given two sorted arrays (all elements are in ascending order). You need to merge these
two arrays such that the initial numbers (after complete sorting) are in the first array and the
remaining numbers are in the second array.
According to a genetics theory,a certain cross of guinea pigs will result in red,black, and white offspring in the ratio 8:4:4.Find the probability that among 8 offspring,5 will be red,2 black, and 1 white.
An array my_Array[] consisting of ‘a’ s, ‘b’ s and ‘c’s. The task is to write a function that arranges the array such that all ‘a’s are placed first, then all ‘b’s and then all ‘c’s in last.
Miss Nosheen is a kindergarten teacher and is teaching numbers to her pupils. She wants to allow her students to be able to immediately verify the results of their answers to the problem of finding out the digits in a number. Write a program which can take a number and show the number of digits it contains.
Jazmin encountered a problem in his mathematics class. His teacher announced that if any positive integer is equal to the sum of its proper positive divisors, i.e., the sum of its positive divisors excluding the number itself, such a number is called a perfect number. He told them to write fifty examples for such numbers. Ali understands that to find fifty examples will waste a lot of time, instead he will have to come up with a more efficient way to implement this. Help Ali implement such a system through your program.