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.


Manas MohapatraRank #182 · 13.2K reputationPosted Aug 20, 2015, 1:15 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Aug 20, 2015, 2:05 AM EDT
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()
{
int rateact=2;
int ratemus=4;
int ratecin=5;
int rateplot=3;
int ratedur = 7;
Console.WriteLine("total rate is- {0}%", getoverallRate(rateact, ratemus, ratecin, rateplot, ratedur));
}
Kindly accept the answer.Fadugba Jeremiah23 reputationPosted Aug 20, 2015, 2:17 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Aug 20, 2015, 2:25 AM EDT
Fadugba Jeremiah23 reputationPosted Aug 20, 2015, 8:42 AM EDT
That would be giving the variables value. But what I want is that those parameters should be generated and the result displayed.
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Aug 20, 2015, 8:45 AM EDT