Course Solutions Uncategorized (Solved) : Please Make Uml Diagram Pseudocode Flowchart Import Javautilinputmismatchexception Import Q32942381 . . . .

(Solved) : Please Make Uml Diagram Pseudocode Flowchart Import Javautilinputmismatchexception Import Q32942381 . . . .

 

please make uml diagram , pseudocode and flowchart

import java.util.InputMismatchException;
import java.util.Scanner;

public class InputMismatch {

public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int firstNum, secondNum=0;
while(true){
try{
System.out.println(“Enter·an·integer: “);
firstNum = scan.nextInt();
break;
}
catch(InputMismatchException e){
System.out.println(“Please·enter·an·integer”);
scan.next();
}
}
while(true){
try{
System.out.println(“Enter·an·integer: “);
secondNum = scan.nextInt();
break;

}
catch(InputMismatchException e){
System.out.println(“Please·enter·an·integer”);
scan.next();
}

}
int sum = firstNum + secondNum;
System.out.println(“The sum of two numbers is : “+sum);

}

}

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

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

Related Post

(Answered) : Paragr Aph Supervisor Elegant Garments Manufacturing Employees Fallen Habit Coming Work Si Q27959906(Answered) : Paragr Aph Supervisor Elegant Garments Manufacturing Employees Fallen Habit Coming Work Si Q27959906

<p dir="ltr"><img src="https://d2vlcm61l7u1fs.cloudfront.net/media%2Fb63%2Fb63ff30d-9839-406c-9ad8-fcd40c6e49c0%2Fimage" alt="Paragr aph You are a supervisor in Elegant Garments Manufacturing. Employees have fallen into the habit of coming to work, signing in and then going to breakfast,