Computer Applications
Write a program to calculate the tax for a taxable income of Rs. 4,10,000, if the tax rate is fixed at 3.2%.
Java
Java Intro
64 Likes
Answer
public class KboatTax
{
public static void main(String args[]) {
int income = 410000;
double rate = 3.2;
double tax = income * rate / 100;
System.out.println("Tax = " + tax);
}
}
Output
Answered By
30 Likes
Related Questions
Write a program to calculate the compound interest.
Create a program that will generate a bill at McDonald's for four vegetable burgers (@ Rs 45 per vegetable Burger) and three vegetable McPuffs (@ Rs 25 per vegetable McPuff). There is a special Independence Day discount of Rs 50 on the final bill amount.
Write a program to find the sum and average of three numbers.
Write a program to interchange the value of two numbers without using the third variable.