JAVA programming was employed...
//IMPORT STATEMENT
import javax.swing.JOptionPane;
public class Payroll
{
//VARIABLE DECLARATION
double grossPay, hoursWorked, payRate;
//INPUT STATEMENT
hoursWorked = Double.paseDouble(JOptionPane.showInputDialog(Please enter your hours worked.));
payRate = Double.paseDouble(JOptionPane.showInputDialog(Please enter the pay rate per hour.));
//PROCESS STATEMENT
grossPay = hoursWorked * payRate;
//OUTPUT STATEMENT
JOptionPane.showMessageDialog(null, grossPay);
}//End of class Payroll
In this program, we declared variables grossPay, hoursWorked, and payRate to double so that the user can input figures with decimal. Since the inputs have decimal, the output which is grossPay will come out with decimal.
But note that inputting numbers doesn't mean that they will be processed as double automatically! For the inputted values to become double, it is important to parse them first that is why the line "hoursWorked = Double.paseDouble(JOptionPane.showInputDialog(Please enter your hours worked.));" and line "payRate = Double.paseDouble(JOptionPane.showInputDialog(Please enter the pay rate per hour.));" were used.
Answer:
def max_list(a):
return max(a)
def max2(a,b):
return max(a,b)
s=max2(2,3)
print('max of two number is:')
print(s)
a=[1,2,3,4,5,6,7,8,9,10]
max_in_list = max_list(a)
print('\n max element in whole list is:')
print(max_in_list)
Explanation:
Above program is written in python:
Function max2 accept two parameters and return one which is greatest of both and funtion max_list accept a parameter list and returns the greatest number in list.
Note: take care of indentation of function while pasting this code on your compiler or ide
The sun. Glass, can also reflect sun light to get brighter. M
Answer:
False.
Explanation:
Representatives of the following team must answer, examine, as well as report that evidence in even the most timely way possible throughout the examination through the circumstance
. They should not be conducting the counter attack to defend CBFs. They defend this in a different way.
So that is the reason by which the following statement is false.