can someone please help me with my computer science homework. i am not sure if i am doing it correctly i would like your answer so i can compare with mine
// Java Code:-
import java.util.*;
public class Main
{
public static void main(String[] args) {
ArrayList<String> states_code=new
ArrayList<String>();
states_code.add("AL");
states_code.add("AK");
states_code.add("AZ");
states_code.add("AR");
states_code.add("CA");
states_code.add("TX");
states_code.add("MA");
//adding PA at the end of the
ArrayList.
states_code.add("PA");
// Replace CA with FL in
ArrayList.
for(int i=0;i<states_code.size();i++)
{
if(states_code.get(i).equals("CA"))
states_code.set(i,"FL");
}
//Loop through arrayand print the state code
and its index postion.
System.out.println("Index State");
for(int i=0;i<states_code.size();i++)
System.out.println(i+" "+states_code.get(i));
// Remove the new state added PA (which is the
last element of the ArrayList).
states_code.remove(states_code.size()-1);
}
}
can someone please help me with my computer science homework. i am not sure if i...
can someone help with step by step answers to these problems Name: aux pobles Show all relevant work for full credit. Ch.3 08/26/2019 Homework #3 - Math 227 Use the following data to answer the questions. 1.) Consider the following murder rates (per 100.000 people) for each state: AL 13.3 AK 12.9 AZ 941 AR 9.1 FL 11. 0 AZ 9.4 GA 14.4 AR 9.1 ICA 11.7 CO 73 CA 11.7 CT 4.2 TDE 6.7 CO 3 MA 3.7 MI...
Can someone help me out with part b? I am not sure what I am doing wrong. the first answer I got was 22 degrees and that wasn't right either. Thank you for your help. 2 2/4 points Previous Answers My Notes Ask Your Teacher - 70.00 kgs at another corner, and a my 115.00 kg mass the third comer Find the magnitude and An equilateral triangle 10 mon a side has am 30.00 kg mass at one corner, am...
Im not sure if I am doing the process correctly. Can someone show me what to do to get a and b? 1. Consider the following system of equations: -3.25 -4.25 x 2. Xi - 2x1 3.21 -2.62 -4x2 +23 2x2 +x3-24 +422 -24 -6.22 +24 = 5 = 13 = a = -8 = b +7.25 -10.25 (a) What values of a and b make this system of equations consistent?
Can anyone help me with my homework assigment. Computer Science - Database Conceptes and Applications I added an image of instuctions on how the assingment needs to be done. Thank you for your efforts.
Can someone please use layman's terms to explain to me the relationship between the notion of mathematical induction and recursion in computer science? I am struggling to understand the relationship
I have the below code that I need help with fixing this Ruby code. I am trying to iterate through these three arrays and print the array out with a label. The animals array should have the Animals header, the people should have the People header and the friends array should have the Friends header. I would also like to adjust the printout size based on the size of the elements in the array. I would like for it to...
Can someone please help me I am doing business law not economics. it should be written in 100 words and it should at least one citation from reliable source per response. what steps are required to form a corporation?
I am so confused. Can someone please help me. I will rate 2. The decomposition of azomethane, (CH3)2N2, was studied at 300°C, and the data shown below were obtained. In order to determine the order of this reaction, make the following three graphs using Excel. a. Plot the concentration of azomethane versus time. b. Plot the inverse concentration of azomethane versus time. c. Plot the natural logarithm of the concentration of azomethane versus time. the page. Time (min) Concentration of...
I am creating a program that will allow users to sign in with a username and password. Their information is saved in a text file. The information in the text file is saved as such: Username Password I have created a method that will take the text file and convert into an array list. Once the username and password is found, it will be removed from the arraylist and will give the user an opportunity to sign in with a...
Can someone please help me with this? I am not understanding how to assign these at all - if someone could please explain! Thanks! Below is a pedigree of a family with a disorder of unknown inheritance. Note that individual 11 is known to have no affected alleles. Superscript a indicates the affected allele for sex-linked traits. What are the possible genotypes of individual 1? □AA ΧΑΧΑ Aa 1213 14 15 16 17