Consider the following Java code for a method called "computeTotalSalary" and answer the following questions accordingly. public static double computeTotal5alary(double sales anount, double basic_salary) double commission; if (sales_amount >» 0.01 &a sales_amount < se00) commission - sales amount 0.06; else if (sales_amount >= 5000 &8 sales_amount < 18000 ) comnission- sales amount 0.08; else commission - sales amount 0.1; double total salary - basic_salary + connission; System.out.printf("Your total salary is $ x.2f \n", total_salary); return(total_salary); 1.2 Explain, in details, what is the functionality of this method.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter8: Advanced Method Concepts
Section: Chapter Questions
Problem 17RQ
icon
Related questions
Topic Video
Question
???
January 6, 2021
Theoretical Concepts
Consider the following Java code for a method called "computeTotalSalary"
and answer the following questions accordingly.
public static double computeTotalsalary(double sales_anount, double basic_salary)
double commission;
if (sales_amount >- 0.01 && sales_amount < see)
commission - sales_amount 0.e6;
else if (sales_amount >= 5000 8 sales_amount < 10000 )
commission - sales_amount 8.08;
else
commission - sales_amount 8.13;
double total_salary - basic_salary + connission;
System.out.printf("Your total salary is $ x.2f \n", total_salary);
return(total_salary);
1.2 Explain, in details, what is the functionality of this method.
Transcribed Image Text:January 6, 2021 Theoretical Concepts Consider the following Java code for a method called "computeTotalSalary" and answer the following questions accordingly. public static double computeTotalsalary(double sales_anount, double basic_salary) double commission; if (sales_amount >- 0.01 && sales_amount < see) commission - sales_amount 0.e6; else if (sales_amount >= 5000 8 sales_amount < 10000 ) commission - sales_amount 8.08; else commission - sales_amount 8.13; double total_salary - basic_salary + connission; System.out.printf("Your total salary is $ x.2f \n", total_salary); return(total_salary); 1.2 Explain, in details, what is the functionality of this method.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,