Question: q1: Write a public static method named q1 that takes no parameters and has return type * void. In this method, you may assume there

 q1: Write a public static method named q1 that takes no

q1: Write a public static method named q1 that takes no parameters and has return type * void. In this method, you may assume there is a file named "properties.csv" with lines in e the format "name,yellow,critical, thinking" where "name" is a String and all other values * are well-formed integers. There is no header line in this file. This method will create a new file named "output.csv" in the format "name,yellow" containing only these two columns * from "properties.csv" and only for lines with a name of "citizen", "counter", or * "procedure" *q2: W e return type int. The input String will be the name a csv file in the format * " rite a public static me thod named q2 that takes a String as a parameter and has endless,dangerous,pregnant, profound" where all values are well-formed integers. There is line in this file. This method will return the sum of the values in the * no header *"dangerous" column as an int . q3: Write a public static method nomed q3 that takes no parameters and has return type void. In this method, you may assume there ts a ftle named properties.csv" with lines t * the format "nome, adequate,minor,hidden, lay,express, ruling,dangerous" where "name" is a * String and all other values are well-formed integers. There is no header line in this * file. This method will create a new file named "output.csv" in the format "name, lay" containing only these two columns from "properties.csv" and only for lines with a name of "sky", "availability", "main", or "suck" q4: Write a public static method named q4 that takes a String as a parameter and has " return type int. The input String will be the name a ssy file in the format "old,consecutive,successful" where all values are well-formed integers. There is no header line in this file. This method will return the sum of the values in the "consecutive" * column as an int

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!