Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Java Programming 1) zipped project folder 2) executable jar file 3) UML and running results screen shot in a word file with names of your
Java Programming
1) zipped project folder 2) executable jar file 3) UML and running results screen shot in a word file with names of your team 5 points will be taken for each missing file Problem Description A graph consists of vertices and edges that connect vertices Write a program that reads a graph from a file and displays it on a panel. The first line in the file contains a number that indicates the number of vertices (n) The vertices are labeled as 0, 1, Each subsequent line, with the format u x y v1, v2, describes that the vertex u is located at position (x, y) with edges (u, 1) (u, v2), etc. Figure (a) gives an example of the file for a graph. Your program prompts the user to enter the name of the file, reads data from the file, and displays the graph on a panel, as shown in Figure (b) Exercise 09 14 File 0 30 30 1 2 1 90 30 0 3 2 30 90 0 3 4 3 90 90 1 2 4 5 4 30 150 2 3 5 5 90 150 3 4 (a) b) The program reads the information about the graph and displays it visually Analysis A graph is a mathematical structure with vertices and edges that connect the vertices A graph is a very useful tool for modeling real-world problems This project is to display the graph. The information for the graph is stored in a file. The number of the vertices n is stored in the first line of the file The vertices are labeled 0, 1, 2, n-1. The format of each subsequent line is u x y v1 v2 which describes vertex u at location (x, y) and u is connected to vertices v1 v2 etc Design: 1) zipped project folder 2) executable jar file 3) UML and running results screen shot in a word file with names of your team 5 points will be taken for each missing file Problem Description A graph consists of vertices and edges that connect vertices Write a program that reads a graph from a file and displays it on a panel. The first line in the file contains a number that indicates the number of vertices (n) The vertices are labeled as 0, 1, Each subsequent line, with the format u x y v1, v2, describes that the vertex u is located at position (x, y) with edges (u, 1) (u, v2), etc. Figure (a) gives an example of the file for a graph. Your program prompts the user to enter the name of the file, reads data from the file, and displays the graph on a panel, as shown in Figure (b) Exercise 09 14 File 0 30 30 1 2 1 90 30 0 3 2 30 90 0 3 4 3 90 90 1 2 4 5 4 30 150 2 3 5 5 90 150 3 4 (a) b) The program reads the information about the graph and displays it visually Analysis A graph is a mathematical structure with vertices and edges that connect the vertices A graph is a very useful tool for modeling real-world problems This project is to display the graph. The information for the graph is stored in a file. The number of the vertices n is stored in the first line of the file The vertices are labeled 0, 1, 2, n-1. The format of each subsequent line is u x y v1 v2 which describes vertex u at location (x, y) and u is connected to vertices v1 v2 etc DesignStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started