Looking for a Tutor Near You?

Post Learning Requirement »
x

Choose Country Code

x

Direction

x

Ask a Question

x

x
x
x
Hire a Tutor

ICSE Important Questions

Loading...

Published in: Java And J2EE
1,408 Views

Java programs for class 9 and 10

Jayeeta B / Kolkata

3 years of teaching experience

Qualification: MCA

Teaches: All Subjects, Computer, Computer Science, School Level Computer

Contact this Tutor
  1. Create a class named discount and write a program(source code) in JAVA to accept total cost. Compute and display the amount to be paid after availing the discount according to the following table. Total Cost Upto Rs 2000 Rs 2001 to Rs 5000 Rs 5001 to Rs 10000 Above Rs 10000 class discount public void display(double c) { double a; double d; a=c-d; System.out.println("Amount is"+a); else a=c-d; System.out.println("Amount is"+a);} else a=c-d; System.out.println("Amount is"+a); else a=c-d; System.out.println("Amount is"+a); Discount 5% 25% 35%
  2. OUTPUT Amount is95.0