Answer to Question #255277 in C# for aj jarikpe

Question #255277
 // Method: CalculateNet
 // Parameters
 // grossP: double storing the grossPay
 // tax: double storing tax percentage to be removed from gross pay
 // netP: call by reference double storing the computed net pay
 // Returns: void
 public static void CalculateNet(double grossP, double tax, ref double netP)
 {
 // *** Insert the details of the CalculateNet Method
 }

Question is to Insert the details of the CalculateNet Method


1
Expert's answer
2021-10-22T16:43:57-0400
// Method: CalculateNet
        // Parameters
        // grossP: double storing the grossPay
        // tax: double storing tax percentage to be removed from gross pay
        // netP: call by reference double storing the computed net pay
        // Returns: void
        public static void CalculateNet(double grossP, double tax, ref double netP)
        {
            // *** Insert the details of the CalculateNet Method
            netP = grossP - (grossP*tax/100.0);
        }

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS