Computer Science, asked by sandeepankam44, 5 months ago

A computer manufacturing company announces a special offer to their customers on purchasing laptops and printers accordingly on laptop discount =15%and on printers discount =10%write a program in java to calculate the discount if the customer purchases 2laptops worth Rs 55000each and one printer worth Rs 14000​

Answers

Answered by Anonymous
0

//To find the discount on computer and printer using BlueJ technique

import java.util.*;

public class Computer

{

public static void main (String args [])

{

int r1 = 15, r2 = 10;

double d1,d2,m=0,n=0;

d1 = (double)r1/100*c;

d2 = (double)r2/100*p;

m = c-d1;

n = p-d2;

System.out.println("The price of Laptop after discount =" +m);

System.out.println("The price of Printer after discount =" +n);

}

}

Similar questions