Import java. util. Scanner;
class Main{
public static void main(String args[]){
class P...
Computers and Technology, 09.04.2021 19:30 youngsiron
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.
Answers: 1
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
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
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
Computers and Technology, 24.06.2019 18:50
Which style did jack use on the vocabulary words in reports?
Answers: 2
Mathematics, 06.12.2019 00:31
Geography, 06.12.2019 00:31
History, 06.12.2019 00:31
English, 06.12.2019 00:31
Mathematics, 06.12.2019 00:31
History, 06.12.2019 00:31