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

Write a for statement to add all the numbers divisible by 3 or 5 between 1 and 1000.


1.     Write a program that prompts the user to enter five test scores and then prints the average test score. (Assume that the test scores are decimal numbers.)


1.     Write C++ statements that produce the following output:

Name:                                            //output the value of the variable name

Pay Rate: $                                   //output the value of the variable rate

Hours Worked:                            //output the value of the variable

                                                      //hoursWorked

Salary: $                                       //output the value of the variable wages

For example, if the value of name is "Rainbow" and hoursWorked is

45.50, then the output is:

Name: Rainbow

Pay Rate: $12.50

Hours Worked: 45.50

Salary: $568.75


Write a program that will display a menu for the user to select what computation




to use. And compute the required outputs for each option. (see below the sample




menu). Use functions for this program.




M EN U




A] Compute area and circumference of Circle




B] Compute area and perimeter of a Rectangle




C] Compute Surface area and volume of a Cylinder




D] exit

Wap to create Shape class. It has two data member function. area() and display(). Area is dummy function. And Display only working. And derived another class Circle. Which also two member function area() display1(). By using abstract class display area of circle and as well as display function of Base class


create Father class and Son class derived from that Father class. Has same member function activity. Father activity is go to office. Student Task is goto Schoo.


1. Wap to display the only Son task without display the father activity by using virtual function.


2. Wap to display only Father activity without display son activity using virtual function.


3. Wap to display Both father and son activity by using virtual function.



Write a function to concatenate two strings. (Don’t use predefined functions)

Char* strcat(char *dest,const char *source);


Write a function to merge two sorted arrays and return a new sorted array.

int* merge(int* A, int n1, int* B, int n2) {

}

A : Integer array, n1 : Integer array's ( A ) length

B : Integer array,n2 : Integer array's ( B ) length

Returns a array of size n1 + n2 with A and B merged.


Write a function that finds out length of a string? (Don’t use predefined functions)

Int str_len(char*);


Write a function to find the sum of array elements.

Int sum(int *);


LATEST TUTORIALS
APPROVED BY CLIENTS