Trying Get Code Work Four Functions Says Function Take 1 2 3 4 Arguements Depending Many P Q23556772

So, i am trying to get this code to work but for all four of myfunctions it says that the function does not take 1,2,3, or 4arguements depending on how many i have put can someone help me getthis code right please

// Attached: HW_1a, 1b, 1c

Connect with a professional writer in 5 simple steps

Please provide as many details about your writing struggle as possible

Academic level of your paper

Type of Paper

When is it due?

How many pages is this assigment?

//=======================================

// Project: HW_1a.cpp

//=======================================

// Programmer: David

// Class: CIS 17A

//================================================

#include “stdafx.h”

#include <iostream>

using namespace std;

float getSalesAmt(float a); // function proto

float calcCommision(float a, float b, double c, double d); //function proto

float calcPay(float b, int e, float f); // function proto

float displayPay(float a, float b, int e, float f); // functionproto

int main()

{

float monthlySales = 0; // A

float commision = 0; // B

double onehalf = 0.015; //C // this is the percentage for thecommision when sales are between 25000 and 50000

double two = 0.02; //D // this is the percentage for commisionwhen sales are over 50000

int basePay = 2500; // E

float totalPay = 0; //F

getSalesAmt(monthlySales);

calcCommision(monthlySales, commision, onehalf, two);

calcPay(commision, basePay, totalPay);

displayPay(monthlySales, commision, basePay, totalPay);

return 0;

}

float getSalesAmt(float a)

{

cout << “Enter the monthly sales amount: “;

cin >> a;

return 0;

}

float calcCommision(float a, float b, double c, double d)

{

if(a > 50000)

{

b = a * c;

}

if (a > 25000 && a < 50000)

{

b = a * d;

}

if (a < 25000)

{

b = 0;

}

return b;

}

float calcPay(float b, int e, float f)

{

f = b + e;

}

float displayPay(float a, float b, int e, float f)

{

cout << “Monthly Sales: $” << a << “n”;

cout << “Commission: $” << b << “n”;

cout << “Base Pay: $” << e << “n”;

cout << “Total Pay: $” << f << “n”;

}

The post Trying Get Code Work Four Functions Says Function Take 1 2 3 4 Arguements Depending Many P Q23556772 appeared first on Nurses Den.