i keep getting error message   #include #include #define element 10 using namespace std; void input(float array); void pay_rise(float arra); void display(float arra); void largest_number(float arra);     int main() {     float array[element];          input(array);     pay_rise(array);     display(array);     largest_number(array);     return 0;      }     void input(float array[]) {     int n;             for(n=0;n < element;n++)     {          printf("enter salaries %d",n);         scanf("%f",&array[n]);     }   }   void pay_rise(float array[]) {     int n;          for(n=0; n < element;n++)     {       array[n] =  array[n] + (array[n]*20/100);              }          }   void display(float array[]) {     int n;          printf(" new pay\n");          for (n=0; n < element ;n++)     {         printf("pay %d is %f\n",n,array[n]);     }      }   void largest_number(float array[])   {     int n;     float largest = array[0];     int index = 0;          for (n=0; n < element; n++)     {         if (array[n] < largest)         {             largest = array[n];             index = n;         }     }     printf("largest salary is %f index %d\n", largest,index); }

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

i keep getting error message

 

#include <iostream>

#include <stdio.h>

#define element 10

using namespace std;

void input(float array);

void pay_rise(float arra);

void display(float arra);

void largest_number(float arra);

 

 

int main()

{

    float array[element];

    

    input(array);

    pay_rise(array);

    display(array);

    largest_number(array);

    return 0;

    

}

 

 

void input(float array[])

{

    int n;

  

    

    for(n=0;n < element;n++)

    {

    

    printf("enter salaries %d",n);

        scanf("%f",&array[n]);

    }

 

}

 

void pay_rise(float array[])

{

    int n;

    

    for(n=0; n < element;n++)

    {

      array[n] =  array[n] + (array[n]*20/100);

        

    }

        

}

 

void display(float array[])

{

    int n;

    

    printf(" new pay\n");

    

    for (n=0; n < element ;n++)

    {

        printf("pay %d is %f\n",n,array[n]);

    }

    

}

 

void largest_number(float array[])

 

{

    int n;

    float largest = array[0];

    int index = 0;

    

    for (n=0; n < element; n++)

    {

        if (array[n] < largest)

        {

            largest = array[n];

            index = n;

        }

    }

    printf("largest salary is %f index %d\n", largest,index);

}

 

No matching function for call to 'input'
No matching function for call to 'pay_rise'
No matching function for call to 'display'
No matching function for call to 'largest_number'
Transcribed Image Text:No matching function for call to 'input' No matching function for call to 'pay_rise' No matching function for call to 'display' No matching function for call to 'largest_number'
Expert Solution
Problem Analysis:

The problem is based on the basics of functions in C++ programming language.

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education