Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
Write a JAVA program. A computer manufacturing company offers 20% discount on laptop. If the price o
Home
Education
Write a JAVA program. A computer manufacturing...
asked
Dec 22, 2021
in
Education
by
JackTerrance
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
computer-science-interview-questions
computer-science-questions
1
Answer
0
votes
answered
Dec 22, 2021
by
JackTerrance
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
Q: Write a JAVA program. A computer manufacturing company offers 20% discount on laptop. If the price o
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: 6. A business man wishes to accumulate 3000 shares of a company. However, healready has some shares of that company valuing * 10 (nominal value) whichyield 10% dividend per annum and receive 2000 as dividend at the end ofthe year. Write a program in Java to calculate the number of shares he has andhow many more shares to be purchased to make his target.
6. A business man wishes to accumulate 3000 shares of a company. However, he already has some shares of that ... 100/Nominal value*div% Select the correct answer from above options...
asked
Nov 27, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to implement a simple calculator for two input number . offers choice through a menu in python
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: A customer purchased cold drinks of various brands. He purchased 5bottles at a price of `35 per bottle and 10 bottles at a price of `80. Write aprogram in java to calculate the total amount he paid to the shopkeeper
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: 8..Laptop is the example of which computer?A.. Micro computerB.. Mini computerC.. Mainframe computer
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: Suresh using a wireless mouse with laptop which is also connected with his printer using a wireless technology. which type of computer network is Suresh using ?explain about that network. answer fast
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: 8. Rewrite the following using ternary operator.(a) if (bill>10000)discount=bill*10.0/100;else
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to enter a sentence and check if it contains palindrome words or not. if yes then count and print all palindrome words in the sentence present. Java class 10
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a program in Java to input any age and determine whether the age is valid or invalid. If age is greater than or equal to 18 then it is valid otherwise invalid.
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: write an if statement program in java to find the smallest of three given integers using min() metho
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program in Java to input a number and print if it is a special number or not.
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to evaluate the arithmetic statement.X=A-B+C*(D*E-F)/G+H*Ka) Using a general register computer with two address instruction.
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: A COMPUTER SYSTEM WAS DESIGNED TO HAVE A GOOD LATEST PROCESSOR AND I/O DEVICE , HOWEVER THE DESIGNER
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: Why Our Education System Did not Give Much value to computer subject why it is treat as a optional o
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: Fill in the blanks :Program written inorlanguage cannot work on another computer.
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
computer-science-interview-questions
computer-science-questions
...