This code Will tell 2 product price total value with service charge and it will also show the result of after adding some discounts.
Thanks.
//Abubakkar Khan
package javaapplication6;
import java.util.*;
/**
*
* @author Abubakkar Khan
*/
//211
public class JavaApplication6 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Scanner input =new Scanner(System.in);
String Title = "Your Total ammout with service charge::";
int productPrice = input.nextInt();
int ProductPrice2 = input.nextInt();
//Green University of Bangladesh
//in here the code is joining 2 product price and charging extra charge.
int total = productPrice + ProductPrice2;
int totalPlusFee = total + 50;
//Do not Copy My code Please
System.out.println(Title+totalPlusFee);
//Now here it will minus from total amount.
long first = totalPlusFee, second=input.nextLong(), th=first-second;
System.out.println("Full Ammount with Discount:"+th);
}
}
Comments
Post a Comment