Questions: 11 448

Answers by our Experts: 10 707

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

a) Write a function called count to determine the number of times a specific value occurs in a vector of integers.

The function should receive two parameters: the vector to be searched (v) and the value to search for (val). count should return the number of times val occurs in vector v. Test your function count in a program by declaring a vector and initializing it, and then call function count to determine how many times a specific value occurs in the vector. 


Write a program to compute the volume of a cylinder. Your program reads the radius and length and computes using the formula:

Area =radius*radius*pi

Volume= area *length


Write a program using a for loop to print the output below

1

12

123

1234

12345


Write a program that reads an integer between 0 and 1000 and sum up all digits in the integer.for example if an integer is 932, the sum of the digits is 14.


Write a program which produces a simple multiplication table of the following format for integer in the range 1to 9:

1*1=1

1*2=2

•••

9*9=81


Write a program to compute future investment value at a given interest rate for a specified number of years.the future investment is determined using the formula:

Futureinverstmentvalue=inverstmentamount *(1+ monthly interest rate)^(years*12)


Write a function to compute the sum of the digits in an integer. For example sum Digits(234)returns 2+3+4=9


Write a program that collecs student's biodata (surname, other names, date of birth,town,LGA, state, country, height)and display a report on what was inputted.


Write a program which inputs a persons height (in centimeters)and weight (in kilograms)and output one of the messages:underweight, normal, or overweight, using the criteria:


Underweight: weight<height/2.5

Normal: height/2.5<=weight<=height/2.3

overweight: height/2.3<weight



Write program to calculate the distance from second equation of linearly accelerated motion. The formula for the calculation is

S=u*t+(/2*a*t*t


LATEST TUTORIALS
APPROVED BY CLIENTS