Fadugba Jeremiah

Fadugba Jeremiah

  • NA
  • 49
  • 18.2k

Error: No overload for method takes 0 arguments

Aug 20 2015 4:45 AM
hello please I am havine an error " Error 1 No overload for method 'getoverallRate' takes 0 arguments" here is the code what I'm I missing?
 
 
public int getoverallRate(int rateact, int ratemus, int ratecin, int rateplot, int ratedur)
{
int divisor = 5;
rateact = (RateActing / divisor) * 100;
ratemus = (RateMusic / divisor) * 100;
ratecin = (RateCinema / divisor) * 100;
rateplot = (RatePlot / divisor) * 100;
ratedur = (RateDuratn / divisor) * 100;
int totrate = (rateact + ratemus + ratecin + rateplot + ratedur);
return totrate;
}
public void Display()
{
Console.WriteLine("total rate is- {0}%", getoverallRate());
}
 
 
the highlighted portion is underline. 

Answers (6)