write a Java program to input deposit amount and time period and calculate simple interest.... if deposit is less than 50000 then the rate is 5.5 % otherwise 7% ....print the output in a neat format
Answers
Answered by
1
Explanation:
public class Simple_Interest.
float p, r, t;
Scanner s = new Scanner(System.
System. out. print("Enter the Principal : ");
p = s. nextFloat();
System. out. print("Enter the Rate of interest : ");
r = s. nextFloat();
System. out. print("Enter the Time period : ");
Similar questions
English,
5 months ago
Social Sciences,
5 months ago
Math,
5 months ago
Chemistry,
11 months ago
English,
11 months ago
Computer Science,
1 year ago
Economy,
1 year ago