in Education by
Write a JAVA program. A computer manufacturing company offers 20% discount on laptop. If the price of any laptop is 35423/- then calculate the price after discount. Print original and discounted price. DO NOT USE ANY INPUT METHOD Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
public class discount { public static void main(String args[]) { int price = 35423; double dis, finalp; dis = (20/100)* price; finalp = price – dis; System.out.println(“Original Price = “+price+” Discounted Price = “+finalp); } }

Related questions

0 votes
    Write a JAVA program. A computer manufacturing company offers 20% discount on laptop. If the price of any laptop ... discounted price. Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    write a program to implement a simple calculator for two input number . offers choice through a menu in python Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    A customer purchased cold drinks of various brands. He purchased 5 bottles at a price of `35 per bottle and ... make him/her brainlest Select the correct answer from above options...
asked Dec 1, 2021 in Education by JackTerrance
0 votes
    8..Laptop is the example of which computer? A.. Micro computer B.. Mini computer C.. Mainframe computer D.. Super computer Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    Suresh using a wireless mouse with laptop which is also connected with his printer using a wireless technology. which ... . answer fast Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    8. Rewrite the following using ternary operator. (a) if (bill>10000) discount=bill*10.0/100; else discount=bill*5.0/100; Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    write a program to enter a sentence and check if it contains palindrome words or not. if yes then count and ... present. Java class 10 Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    Write a program in Java to input any age and determine whether the age is valid or  invalid. If age is ... is valid otherwise invalid. Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    write an if statement program in java to find the smallest of three given integers using min() method of the Math ... I will report. Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    write a program in Java to input a number and print if it is a special number or not. do this program using ... nested and while loop . Select the correct answer from above options...
asked Dec 1, 2021 in Education by JackTerrance
0 votes
    write a program to evaluate the arithmetic statement. X=A-B+C*(D*E-F)/G+H*K a) Using a general ... zero -address operation instruction. Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    A COMPUTER SYSTEM WAS DESIGNED TO HAVE A GOOD LATEST PROCESSOR AND I/O DEVICE , HOWEVER THE DESIGNER OF THE ... OF YO9UR ANSWER. Select the correct answer from above options...
asked Dec 29, 2021 in Education by JackTerrance
0 votes
    Why Our Education System Did not Give Much value to computer subject why it is treat as a optional one. Is This ... no value of this ? Select the correct answer from above options...
asked Dec 23, 2021 in Education by JackTerrance
0 votes
    Fill in the blanks : Program written in or language cannot work on another computer. processor convert the programs ... for screen, . Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
...