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

Zig-zag order in matrix

Input:---
4 4
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16

Output :--
1 2 3 4 5 6 7 8 9 10 11 12 16 15 14 13

Input 2:---

3 4
1 2 3 4
10 11 12 5
9 8 7 6

Output 2:--

1 2 3 4 5 12 11 10 9 8 7 6

If M = 4 and for polynomial A

For power 0, co-efficient is 5

For power 1, co-efficient is 0

For power 2, co-efficient is 10

For power 3, co-efficient is 6.


If N = 3 and for polynomial B

For power 0, co-efficient is 1

For power 1, co-efficient is 2

For power 2, co-efficient is 4.

Then polynomial A represents "6x^3 + 10x^2 + 5", the polynomial B represents "4x^2 + 2x + 1" and the addition of A and B is "6x^3 + 14x^2 + 2x + 6"


Write a program to create your own exception types to handle situation specific to
your application.

Suppose you have to design a program using the C++ language to determine the car that corresponds to the price that your program calculated. The price of the car is determined by adding three(3) prices: which are engine price, colour price and the price based on the power of the car. The engine price ranges R500 000 – R2000000 The colour of the car ranges R7000 – R10000 The price based on the power of the car ranges R300 000 – R600 000  If the sum of the three(3) prices is between R700 000 – R1000000, the program must display that the car is in the range of a VW Golf 8 GTI  If the sum of the three(3) prices is between R1100000-1800000, the program must display that the car is in the range of a Mercedes Benz GLC63s  If the sum of the three(3) prices is between R1900 000 – R2500000, the program must display that the car is in a range of a BMW M8 challenger: 1. Write the Pseudocode for your program 2. Draw the flowchart for tracing your program steps


3. A florist wants to send coupons to her 420 regular customers based on the number of orders the customer placed during the past year. The amount on the coupon depends on the number of orders according to the following table:

 Number of Orders

  Amount on Coupon

 2 - 6

7 -15

16-30  The number of orders times R14

The number of orders times R10 The number of orders times R11.50

  31 or more

The number of orders times R17

 The user is asked to enter the name of the customer and the number of orders placed. Determine the value of the customer’s coupon and then display the following


message on the screen (in the example the test data name is Carol and the coupon is worth R50).

  


Write a program to define a class Complex that will contain real and imaginary as the data members. Define appropriate constructors and a display functions. Overload the binary + and the * operator to add and multiply two complex numbers respectively.
Write a program to read the contents of a text file and count the number of characters read from the file.
Write a program to define an abstract class person that will contain the essential information like name, age and sex of a person. Now derive two classes student and Employee both from the class person. The class Student will contain the academic information such as roll number; school etc. and the class Employee will contain information such as department and salary. In the main function declare and array of Person pointers that can hold the address of either Student or Employee object. The program will ask the user to enter the details of students/Employees, create dynamic objects of these classes using new operator and store them in the array. The program will then display the contents of these objects.
Write a program to define a class Two dimensional that will represent a point in the plane by its x and y coordinates. The class will contain constructors and member function that can calculate the distance between any two points in the plane. Derive a new class Three dimensional from the class Two dimensional that will add a new member, the z coordinate. Override the function that calculates distance so that kit can calculate the distance between two points in the space.

program to count how many hours we have to get coming newyear


LATEST TUTORIALS
APPROVED BY CLIENTS