c++

1. Please propose the declaration of the function quadratic Equation that the code below will work properly: 0,5pkt float a, 1. Please propose the declaration of the function quadratic Equation that the code below will work properly: 0,5pkt float a, b, c; printf(“Please put coefficients of quadratic equation: “); scanf_s(%f%f%f, &a, &b, &c); if (quadraticEquation(a, b, c, x1, x2)) printf(“results are x1=%f, x2=%P”, x1, x2); the declaration of the function 1,5pkt 2. Please write a function (declaration and definition) void push front (…..) which will add new element to the dynamic table in the front of it. Input: – a dynamic table of floats tab – the current size of a table – the new element of the table Output: – a dynamic table of floats tab that has a new element in the front of it – new current size of a table void push_front



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *