Computer Science, asked by dasbipradip08, 6 months ago

1. Write a program to take the input of Account No, Name and Deposit
amountatrun-time using scanner. Calculate bonus as per the criteria given
below-
Deposit Amount
Rate of Bonus
Up to 10,000
10.5% on deposit amount
10,001 to 25,000
12.5% on deposit amount
25,001 to 40,000
15.5% on deposit amount
Above 40,000
18.5% on deposit amount
Finally print the total amount. (Total amount = Deposit amount + Bonus)​

Answers

Answered by thakurviratvs
0

Answer:

the answer 1000025 iam not sure

Answered by anirbanbanerjee09
0

Answer:

import java.util.Scanner;

class program9

{

public static void main()

{

Scanner sc=new Scanner(System.in);

System.out.println("Enter Name");

char n=sc.next().charAt(0);

System.out.println("Enter Account Number");

int a=sc.nextInt();

System.out.println("Enter The Deposited Amount");

double d=sc.nextDouble();

double b,ta;

if(d<=10000)

b=(d*10.5)/100.0;

else if(d>=10001 && d<=25000)

b=(d*12.5)/100.0;

else if(d>=25001 && d<=40000)

b=(d*15.5)/100.0;

else

b=(d*18.5)/100.0;

}

}

Explanation:

Please Mark Me Brainiest if you Like it

The Name Section Iam Not Sure About That But All Are Fine.

Similar questions