Question: Please use JAVA to solve this ESG Issuer Graph coding question, Thanks a lot! Please don't copy and paste others answers!! Thank you so much

Please use JAVA to solve this ESG Issuer Graph coding question, Thanks a lot!

Please don't copy and paste others answers!! Thank you so much !!!!!

Please use JAVA to solve this ESG Issuer Graph coding question, Thanks

a lot! Please don't copy and paste others answers!! Thank you so

much !!!!! ESG Issuer Graph Programming challenge description: ESG Issuer Data is

of the form Issuer | Parent | ESG Rating A54365 | B34454

| AA B34454 | C34563 | A D45747 | B34454 | B

ESG Issuer Graph Programming challenge description: ESG Issuer Data is of the form Issuer | Parent | ESG Rating A54365 | B34454 | AA B34454 | C34563 | A D45747 | B34454 | B E36547 | D45747 | AAA G34657 | 045747 | CCC H84464 | C34563 | BB 176474 | H84464 | AA C345631 | BBB F34654 | | BB 174576 | K46565 | C K46565 1 | CC L54334 | 176474 | AA H84464 | L54334 | BB Assumptions that can be made: 1. If asked to find a min or max rating, given an issuer, consider all the issuers in the path from the given issuer to the ultimate parent 2. Rating order AAA > AA > A > BBB > BB > B > CCC > CC > C Your assignment: Come up with a Data Structure to hold this type of data. Write an algorithm to check if the relations above are cyclic in nature. (Convert the Data Structure to a directed one assuming the direction is from the Issuer to its parent) Find the issuer with max rating @ D45747 | B34454 | B E36547 | D45747 | AAA G34657 | 045747 | CCC H84464 | 034563 | BB 176474 | H84464 | AA C34563 | | BBB F34654 | | BB 174576 | K46565 | C K46565 | | CC L54334 | 176474 | AA H84464 | L54334 | BB Assumptions that can be made: 1. If asked to find a min or max rating, given an issuer, consider all the issuers in the path from the given issuer to the ultimate parent 2. Rating order AAA > AA > A > BBB > BB > B > CCC > CC > C Your assignment: Come up with a Data Structure to hold this type of data. Write an algorithm to check if the relations above are cyclic in nature. (Convert the Data Structure to a directed one assuming the direction is from the Issuer to its parent) Find the issuer with max rating Input: The issuer table, with respective columns: Issuer Parent Esgrating, separated by O Output: If relations from the input table are cyclic in nature cyclic or noncyclic ) issuer with max rating, return None if invalid.net applicable max rating, return None if invalidot applicable est . Test 1 Test Input @ A54365 |B34454CCC B34454C34563A D45747|B34454 B E36547|D45747|AAA G34657|D45747|CCC H84464|C34563 | BB 176474|H84464|AA C345631 | BBB F34654| | BB J74576|K465651C K46565| | CC L54334|176474|AA H84464| | BB Expected Output noncyclic C34563 BBB Test 2 Test Input 0 A54365|B34454 |AA B344541C34563|A D45747|B34454 B E36547|D45747|AAA G34657|D45747|CCC H84464|C34563 | BB 176474 | H84464 |AA C34563||BBB F34654||BB J74576|K46565C K46565||CC @-ESIT H84464|C34563 | BB 176474|H84464|AA C345631 | BBB F34654| | BB J74576 |K46565C K465651 ICC L54334|176474|AA H844641 | BB Expected Output 6 noncyclic C34563 BBB Test 2 Test Input A54365|B34454|AA B34454034563A D45747|B34454|B E36547 |D45747|AAA G34657|D45747|CCC H84464C34563 | BB 176474|H84464|AA C34563||BBB F34654||BB J74576|K4656510 K46565||CC L54334|176474|AA H84464|L54334 |BB Expected Output 6 cyclic A54365 AA -EESI 8 11 1 import java.io.BufferedReader; 2 import java.io.IOException; 3 import java.io.InputStreamReader; 4 import java.nio.charset.StandardCharsets; 5 6 /** 7 * The Main class implements an application that reads lines from the standard input * and prints them to the standard output. 9 */ 10 public class Main { /** 12 * Iterate through each line of input. 13 */ 14 public static void main(String[] args) throws IOException { 15 InputStreamReader reader = new InputStreamReader (System.in, StandardCharsets.UTF_8); 16 BufferedReader in = new BufferedReader (reader); 17 String line; 18 while ((line in.readLine()) != null) { 19 System.out.println(line); 20 } 21 } 22 } 0 0 0 23

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!