can anybody help me with some java programs in netbeans:
1. a Java program to identify and deploy simple interest from the formula:
i = c * r * t / 360, where i = interest, capital = c, r = rate, t = time
2. a Java program that captures keyboard gross salary (SB) from an employee. The program should calculate and print the discount (D) using a 5% to Gross (SB) empleado.Asimismo of the program should calculate and display the net salary (SN) of the employee to perform the remainder of Gross (SB) less The discount (D)
some one said the first one is something like:
public class Main {
public static void main(String[] args) {
double p; // Principle
double r; // Rate example .06 = 6%
int t; // Year
p = 50000.00;
r = 0.05;
t = 1;
double answer = p * r * t / 360;
System.out.println(answer);
}
}
1. a Java program to identify and deploy simple interest from the formula:
i = c * r * t / 360, where i = interest, capital = c, r = rate, t = time
2. a Java program that captures keyboard gross salary (SB) from an employee. The program should calculate and print the discount (D) using a 5% to Gross (SB) empleado.Asimismo of the program should calculate and display the net salary (SN) of the employee to perform the remainder of Gross (SB) less The discount (D)
some one said the first one is something like:
public class Main {
public static void main(String[] args) {
double p; // Principle
double r; // Rate example .06 = 6%
int t; // Year
p = 50000.00;
r = 0.05;
t = 1;
double answer = p * r * t / 360;
System.out.println(answer);
}
}