Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions 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'
expand button
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
Check Mark
Problem Analysis:

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

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