Computer Science, asked by Anonymous, 8 months ago

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 polamarasettiharsha
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