Solved

What Is the Problem with the Definition of the Following

Question 58

Multiple Choice

What is the problem with the definition of the following method that calculates and returns the tax due on a purchase amount?
Public static double taxDue(double amount, double taxRate)
{
Double taxDue = 0.0;
TaxDue = amount * taxRate;
}


A) The taxDue method should not be static.
B) The data type of the parameter variables is incorrect.
C) The taxDue calculation is incorrect.
D) The taxDue method does not return a value.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents