Post: My First Java Program
07-25-2011, 07:00 PM #1
Default Avatar
Brad
Guest
(adsbygoogle = window.adsbygoogle || []).push({}); This is my first tool and release. what it does is tell you how much something is with vat added. thanks to xavious87 and Skurken (on tnb) for helping me with a few problems Smile

    
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.");
}
}
}



Download it here: use the batch if it doesn't load when you click the jar file. also make sure to extract it all first.
You must login or register to view this content.

is a virus scan : You must login or register to view this content.
thanks Smile
(adsbygoogle = window.adsbygoogle || []).push({});

The following 5 users say thank you to Brad for this useful post:

Woof, MCPADDINGTON, Pichu, PsYcHoSiS, ResistElite,
07-25-2011, 08:32 PM #11
PsYcHoSiS
Eatin' poopy
Originally posted by Dr.
This is my first tool and release. what it does is tell you how much something is with vat added. thanks to xavious87 and Skurken (on tnb) for helping me with a few problems Smile

    
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.");
}
}
}



Download it here: use the batch if it doesn't load when you click the jar file. also make sure to extract it all first.
You must login or register to view this content.

is a virus scan : You must login or register to view this content.
thanks Smile


If i knew java....
07-25-2011, 09:02 PM #12
Woof
...hmm
Originally posted by PsYcHoSiS View Post
If i knew java....

The tutorials he sent me our very good.
You should ask him :y:
07-25-2011, 11:42 PM #13
Default Avatar
Brad
Guest
Originally posted by PsYcHoSiS View Post
If i knew java....


you want the tuts?
07-25-2011, 11:48 PM #14
PsYcHoSiS
Eatin' poopy
Originally posted by Dr.
you want the tuts?

Please bro Smile
07-26-2011, 12:48 AM #15
fightinillini94
Climbing up the ladder
Originally posted by Dr.
you want the tuts?

is it "thenewboston" on youtube? If not, why not just post it on here instead of sending a pm to everybody?

btw nice program :y:
07-26-2011, 09:56 AM #16
Default Avatar
Brad
Guest
Originally posted by fightinillini94 View Post
is it "thenewboston" on youtube? If not, why not just post it on here instead of sending a pm to everybody?

btw nice program :y:
because im learning frim his site, but he has a forum linked on that. didn't know if it would be advertising. :/

---------- Post added at 10:56 AM ---------- Previous post was at 10:54 AM ----------

Originally posted by fightinillini94 View Post
is it "thenewboston" on youtube? If not, why not just post it on here instead of sending a pm to everybody?

btw nice program :y:
also you found out i followed his tuts and learned from them because the class is apples :p i just use that now while im not making anything big Happy
07-26-2011, 09:58 AM #17
Default Avatar
Cammy
Guest
Originally posted by Dr.
because im learning frim his site, but he has a forum linked on that. didn't know if it would be advertising. :/

---------- Post added at 10:56 AM ---------- Previous post was at 10:54 AM ----------

also you found out i followed his tuts and learned from them because the class is apples :p i just use that now while im not making anything big Happy


PM me please bro =D
07-26-2011, 10:02 AM #18
Default Avatar
Brad
Guest
Originally posted by PsYcHoSiS View Post
Please bro Smile


Originally posted by Cammmmy View Post
PM me please bro =D


ill just put it here, if a mod removes it saying it's advertising ill pm you.

You must login or register to view this content.

The following user thanked Brad for this useful post:

07-26-2011, 10:15 AM #19
PsYcHoSiS
Eatin' poopy
Originally posted by Dr.
ill just put it here, if a mod removes it saying it's advertising ill pm you.

You must login or register to view this content.

Thanks, bookmarked Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo