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"
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).
program to count how many hours we have to get coming newyear