import java.util.Scanner;
public class apples {
public static void main(String args[]){
//Choose to add or take vat.
System.out.println("Read Before Entering: ");
System.out.println("1) When it asks for current vat rate don't pu a % at the end.");
System.out.println("2) This was made by bradley");
System.out.println("3) Put the number 1 in and click enter if you have read this.");
Scanner opt = new Scanner(System.in);
int option = opt.nextInt();
//if option is 1 loads add vat.
if(option == 1){
System.out.print("Enter your current vat rate: ");
double inputVat = opt.nextDouble();
System.out.print("Enter the ammount of money to add vat to: ");
double inputAmount = opt.nextDouble();
//Works out price with vat added.
double Total = inputAmount / 100 * inputVat + inputAmount;
System.out.println("Value with vat added: " + Total);
//sees if they have picked the correct button.
}else{
System.out.println("Please choose a valid option.");
}
}
}
import java.util.Scanner;
public class apples {
public static void main(String args[]){
//Choose to add or take vat.
System.out.println("Read Before Entering: ");
System.out.println("1) When it asks for current vat rate don't pu a % at the end.");
System.out.println("2) This was made by bradley");
System.out.println("3) Put the number 1 in and click enter if you have read this.");
Scanner opt = new Scanner(System.in);
int option = opt.nextInt();
//if option is 1 loads add vat.
if(option == 1){
System.out.print("Enter your current vat rate: ");
double inputVat = opt.nextDouble();
System.out.print("Enter the ammount of money to add vat to: ");
double inputAmount = opt.nextDouble();
//Works out price with vat added.
double Total = inputAmount / 100 * inputVat + inputAmount;
System.out.println("Value with vat added: " + Total);
//sees if they have picked the correct button.
}else{
System.out.println("Please choose a valid option.");
}
}
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.