subject

Import java. util. Scanner; class Main{
public static void main(String args[]){
class Parent{
private char store = "Payprice:";
private double number = 66.00 ;
public double discount = 2.00;}
Scanner userInput = new Scanner(System. in);
System. out. println("Enter your "+ store);
double price = userInput. nextInt();
while(price < number) {System. out. println("You have to pay: "+ price);}
while(price >= number) {System. out. println("You have to pay: " + price - discount);}

}
}
what is the problem with this code in java?
The platform is repl. it.
this will be 50 point.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:00
The word β€˜play’ comes with many different interpretations and a variety of definitions. discuss some of the various meanings tied to the word play. why is the concept of play thought to be an important addition to the workplace? do some (brief) research online and give an example of how play in the workplace is being done right.
Answers: 2
question
Computers and Technology, 24.06.2019 17:00
The length of time that a slide appears before automatically advancing to the next slide can be set in the timing group under the transitions tab. transition to this slide group under the transitions tab. timing group in the master slide view. transition to this slide group in the master slide view.
Answers: 1
question
Computers and Technology, 24.06.2019 18:00
Why is a multiview sketch drawinf different from other sketches like isometric, two point, and oblique
Answers: 1
question
Computers and Technology, 24.06.2019 18:50
Which style did jack use on the vocabulary words in reports?
Answers: 2
You know the right answer?
Import java. util. Scanner; class Main{
public static void main(String args[]){
class P...
Questions
Questions on the website: 13722360