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

Create Matrix class using templates. Write a menu-driven program to perform following


Matrix operations (2-D array implementation): a) Sum b) Difference c) Product d) Transpose

Write a program that uses the srand() and time() function to print on the screen a truly random number from 1 trough 20 generated by the rand() function.

Create a program that will call rand() function plus 5 and prints its return value 13 times on the screen using a for loop.

Design a program that will print 7 random numbers using the while looping statement and modulo operator.

Write a C++ program to find the largest element of a given array of integers.


Program to find smallest and largest number in array


Given three floating-point numbers x, y, and z, output x to the power of z, x to the power of (y to the power of z), the absolute value of y, and the square root of (xy to the power of z).


Write a program that defines five integer variables and initializes them to I. 10, 100, 1000, and 10000 and prints them on a single line separated by spaces.


#include <iostream>

using namespace std;



int *my_array;

int array_length;


void FunA(int pos, int input){

my_array[pos] = input;

}


int FunB(){

int n;

cout<<"enter lenth of the array: ";

cin>>n;

my_array = new int[n] ;

return n;

}


int main (){

array_length = FunB();

FunA(array_length-1,20);

delete [] my_array;

return 0; 

}




a) Explain the code snippet above in details.


Please help me determine the C++ code for the following:


The dealer's cost of a car is 85% of the listed price. The dealer would accept any offer that is at least $500 over the dealer's cost. Design an algorithm that prompts the user to input the list price of the car and print the least amount that the dealer would accept for the car.

LATEST TUTORIALS
APPROVED BY CLIENTS