-7

I don't know how to convert this into a flowchart because of the Scanner.

import java.util.Scanner;
import java.io.*;

public class Voter {
    public static void main(String [] args) {
        System.out.print("Enter your age: ");
        int age = new Scanner(System.in).nextInt();

        if (age >= 18) {
            System.out.print("You are eligible to vote");
        }
        else {
            System.out.print("Nah, you're not allowed to vote");
        }
    }
}
takendarkk
  • 3,347
  • 8
  • 25
  • 37

1 Answers1

-1

You have to use manual input component of flow chart.

Here is the diagram for your code.

enter image description here