Course Solutions Uncategorized (Solved) : Import Javautil Public Class Demolift Public Static Void Main String Args Int M N Int K In Q29613752 . . . .

(Solved) : Import Javautil Public Class Demolift Public Static Void Main String Args Int M N Int K In Q29613752 . . . .

 

import java.util.*; public class DemoLift{ public static voidmain(String[] args){ int m, n; int k; int c = 0; Scanner sc = newScanner(System.in); while(true){ System.out.println(“1.Operate theelevator”); System.out.println(“2.Quit”); if (c == 0)System.out.println(“The elevetor is at basement”); else {System.out.println(“The elevator is at floor ” + c ); }System.out.print(“Enter choice:”); k =Integer.parseInt(sc.nextLine()); if (k == 2){ break; } if (k == 1){System.out.print(“Enter your floor (0,1,2):”); // 0- Basement n =Integer.parseInt(sc.nextLine()); int valid = 0;System.out.print(“Enter which floor you want to go:”); m =Integer.parseInt(sc.nextLine()); if (c == 0)System.out.println(“The elevetor is at basement”); else {System.out.println(“The elevtor is at floor ” + c ); } if (c ==

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post