Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
xxabmxx
Community College in 1 year? NEED HELP/ADVICE!?
I'm a high school senior with a decent number of AP credits hoping to go through a year at a community college and then transfer to UCLA.
How many units would I get for each of the following:
-AP Psychology
-AP U.S. History
-AP Environmental Science
-AP English Language
-AP European History
-AP Government
-AP Macroeconomics
-AP Art History
-AP Calculus AB
I've been researching majors and admit rates and Pre-med options and I want to know what your thoughts are on this potential plan:
I've looked thru majors that would truly interest me and that have decent acceptance rates and would still allow me to embark on a pre-med route & I found Anthropology B.A. as my top choice right now.
I used assist.org and got this:
====Anthropology/B.A.====
Listed below are the lower division preparation courses for the major. You
should complete as many preparation courses as possible prior to transfer, based
on the availability of courses. All courses must be taken for a letter grade.
For more information regarding this major and UCLA's transfer selection process,
visit UCLA Department of Anthropology and UCLA Undergraduate Admissions.
PLEASE NOTE: The community college courses listed below have been approved to
satisfy the preparation requirements for this major at UCLA, but they
may not be exact equivalents of the UCLA courses listed.
--------------------------------------------------------------------------------
ANTHRO 7 Human Evolution (5)|ANTH A185 Physical Anthropology (3)
OR | OR
ANTHRO 12 Principles of Human (5)|No course articulated
Evolution: Comparative |
Analysis |
--------------------------------------------------------------------------------
ANTHRO 8 Archaeology: Introduction (5)|ANTH A280 Introduction to (3)
| Archaeology
--------------------------------------------------------------------------------
ANTHRO 9 Culture and Society (5)|ANTH A100 Cultural (3)
| Anthropology
| OR
|ANTH A100H Honors Cultural (3)
| Anthropology
--------------------------------------------------------------------------------
ANTHRO 33 Culture and (5)|No course articulated
Communication |
--------------------------------------------------------------------------------
END OF MAJOR
SO,
How does this look for a schedule for next year:
Summer:
-Sociology (3 units)
-English Composition (3 units)
1st Semester:
-Chemistry (5 units)
-English Composition/Critical Thinking(3 units)
-Introduction to Archaeology (3 units)
-Cultural Anthropology (3 units)
2nd Semester:
-Chemistry (5 units)
-Physical Anthropology (3 untis)
-Calulus II (if I pass Calc AP exam..if not, then Calc I)
-Statistics (4 units)
__________________________________________________ ___________
Pre-Med Requirements:
A year of Freshman Chemistry along with the appropriate laboratory courses
A year of Organic Chemistry along with laboratory courses
A year of Biology along with laboratory courses
A year of Physics along with laboratory courses
A year of English
A year of Calculus or other advanced math classes, including Statistics
IGETC:
Questions:
For the Arts and Humanities requirement of 3 courses needed, how will I fulfill this?
I took AP Art History?
For the Social and Behavioral Sciences requirement, how will I complete this?
-Im taking Sociology in the summer, but I need a total of 3 courses.
-Will AP Psych fulfill 1 course?
....Chem is a physical science, and Bio is a Biological science, right?
Will I be eligible for TAP? It says I have to be in the Honors' Program for 2 full years..
2 AnswersHigher Education (University +)9 years agocomputer science: (Java) error keeps showing, Can someone help me fix it?
Take a look at this code:
public class MainClass
{
public static void main( String [] args )
{
Startable obj = new Startable( );
int n = 5;
runForAWhile( obj, n );
}
public static void runForAWhile( Startable obj, int n)
{
obj.start( );
obj.step ( n );
obj.stop ();
}
When I execute this, the error:
"MainClass.java:9: Startable is abstract; cannot be instantiated"
The lab question that I solved is:
The public static method runForAWhile inputs a Startable object and an int n, and then
calls its start method;
calls its step method n times; and finally
calls its stop method.
Complete the following definition of runForAWhile. (which is the above code)
How can I fix this error??
2 AnswersProgramming & Design1 decade agodefinition of a public static method..?
For the skilled computer programmers out there:
this is a relatively easy code, I am a beginning programmer & would greatly appreciate some help in defining this public static method:
The public static method runForAWhile inputs a Startable object and an int n, and then
calls its start method;
calls its step method n times; and finally
calls its stop method.
Complete the following definition of runForAWhile:
public class MainClass
{
//what comes next?
2 AnswersProgramming & Design1 decade agoRecursive Static Method Question..I really need help?
For this recursive method, there is an array (a)
This array (a) needs to be put in this code to make zigZag( a, 0, 0, 1) result in the greatest value.
I've read through this code and I think that "array(a)" value would be: a = { 0, 1, 2, 3, 4, 5 }
However, I cannot check because I do not have a Java compiler on my computer..I also am very inexperienced when it comes to reading computer codes.
Here is the code:
public static int zigZag( int[] a, int startIdx, int target, int inc )
{
int i;
for ( i = startIdx ; i >= 0 && i < a.length && target < a.length ; i += inc )
{
if ( a[ i ] == target )
return zigZag( a, i, target + 1, -inc );
}
if ( target == a.length )
return i;
else
return -1;
}
For which of these arrays a is the value of zigZag( a, 0, 0, 1 ) the greatest?
a = { 0, 1, 2, 3, 4, 5 }
a = { 3, 1, 2, 0, 5, 4 }
a = { 1, 0, 3, 5, 2, 4 }
a = { 5, 1, 3, 4, 0, 2 }
a = { 1, 4, 3, 5, 2, 0 }
Very much appreciated!
1 AnswerProgramming & Design1 decade agoJava--recursive static method Question?
Consider the following recursive static method:
public static String scramble( String s )
{
int n = s.length();
if ( n < 2 )
return s;
if ( n % 2 == 0 )
return s.substring( 0, 1 ) + scramble ( s.substring( 1 ) );
else
return scramble( s.substring( 1 ) ) + s.substring( 0, 1 );
}
What is the output when the statement:
System.out.println( scramble( "all shook up" ) );
is executed?
I believe that the result would be "alsokup oh l"
Since I don't have Java installed on my laptop, there's no way for me to make sure of the result.
2 AnswersProgramming & Design1 decade agoOverloaded method...i'm confused..?
The overloaded printString method is defined as follows:
public static void printString( String s )
{
System.out.println( s );
}
public static void printString( String s, int n )
{
if ( s.length() > n )
printString( s.substring( 0, n ) );
else
printString( s );
}
Okay, so one of these strings will cause the String "Scrum" to be printed to the output window. Which one?
printString( "Scrump" );
printString( "Scrumptious" );
printString( "Scrumptious", 4 );
printString( "Scrumptious", 5 ); ---> I have a feeling its this one, but I'm not positive.
printString( "Scrumptious", 6 );
--I am a beginner and do not have Java installed on my computer-
1 AnswerProgramming & Design1 decade agoJava --method question..need confirmation?
The downUp method is defined as follows:
public static int downUp( int t )
{
if ( t == 0 )
return 1;
int n = downUp( t - 1 );
return n + 1;
}
When the statement --downUp( 3 )-- is executed, would the result be 3?
I am a begginner in computer science and I am really paranoid when it comes to figuring out the results of codes. I do not have Java installed on my computer.
Similarly, in this code below, would the result also be 3?
(when the statment executed is prevPlus ( 3) )
public static int prevPlus( int t )
{
if ( t == 0 )
return 0;
return prevPlus( t - 1 ) + 1;
}
Thanks for your help :)
2 AnswersProgramming & Design1 decade agoJava code Question..?
public static int fiveEight( int a, double b )
{
return 5;
}
public static int fiveEight( double a, int b )
{
return 8;
}
If, for example, the statement fiveEight( 5.2, 3 ) was executed, would Java execute the second method to obtain the value 8? Or would an error occur?
2 AnswersProgramming & Design1 decade agoArray Question (using Java)?
In the following code fragment, a is an array of ints with at least one element. Write code that modifies a by switching its first and last elements. For example, when a is the array with elements 2, 4, 6, 8 (in that order), then after executing your code a should be the array with elements 8, 4, 6, 2 (in that order).
I will test { 1, 2, 3, 2, 1 }
int[] a = {1, 2, 3, 2, 1 };
To do this, I need to figure out what to call the last element. Since this code must apply to any array of any length, so I cannot simply take out the individual elements of the array by using a specific "a[4]" or something like that.
I can use "a[0]' since it applies to all arrrays--the frist element of all arrays. Can you please help me figure out how to set up this code?
~much appreciated
2 AnswersProgramming & Design1 decade agoStrings in Java, I really need help.?
I need to think up of a code that would take a word and switch its first and second halves. If you have a word like "helpmeee" it would need to be switched to "meeehelp". I cannot think of anything that would work other than by using substrings...however, this code needs to work for strings of any length, so substrings would not help me out.
The exact lab activity is as follows:
In the following code segment, d and e are Strings. The number of characters in d is an even number greater than zero. Write code that stores in e the String formed by switching the two halves of d. For example, if d is "pushdown", then e should evaluate to "downpush".
1 AnswerProgramming & Design1 decade agoPlaying with Stings in Java...?
I have this activity question that is asking me to change any word that is given in brackets ( "<" & ">" ) into the word itself, without the brackets. For example, if y is "<div>" then x should evaluate to "div".
Below, I will test the value "<div>":
String y = "<div>";
String x;
Now, I must have a code...the only code I can think of would only eliminae the first bracket. I need to get rid of BOTH of them
x = y.substring(1); ---> only rids me of the 1st bracket
So now I ask...how could you get rid of the last backet. Assuming that this code can be applied to all strings of different lengths, I need a code that would apply to any string.
I tried:
x = y.substring(1, (y.length-1));
but that generates an error.
1 AnswerProgramming & Design1 decade agoLuhn Algorithm Computer Code---checking to see if credit card #'s are valid..?
Array d of ints contains the digits of a credit card number, including the check digit in last place. Complete the following code to check (using the Luhn algorithm) whether the credit card number is valid, storing true in valid if and only if it is.
The for-loop in the following code deals with the digits in left-to-right order. Notice, however, that the digit with index i occupies right-to-left position d.length - i. For example, the last digit (which has index d.length - 1) is in right-to-left position
d.length - (d.length - 1) = 1,
and the first digit (which has index 0) is in right-to-left position
d.length - 0 = d.length.
// Enter values to test here
int[] d = { };
boolean valid;
int sum = 0;
int dd;
for ( int i = 0; i < d.length; i++ )
{
// Is right-to-left position even?
if ( /* Your code here */ )
{
// If it is, set dd to twice the digit
dd = /* Your code here */ ;
// Add the sum of dd's digits to sum
sum += /* Your code here */ ;
}
else
{
// If right-to-left position is odd,
// add the digit to sum
sum += /* Your code here */ ;
}
}
valid = /* Your code here */ ;
1 AnswerProgramming & Design1 decade agoRe-convert a String to an int....simple computer code I can't seem to understand!?!?
String s contains an abbreviated ordinal number such as "3rd", "99th", "973rd". Write code that sets the int value to the corresponding int value...like 3, 99, etc.
Lets test "2nd"
String s = "2nd";
int value;
Now...what would be the proper code to place here?
I was thinking of simply putting:
value = int s;
but that does not work =/ ...I am a beginner..
2 AnswersProgramming & Design1 decade agoStatic Method Help Please?
public static String sayAgain( String word, int num )
{
int k;
String result = "";
for ( k = 0 ; k < num ; k++ )
{
result += word;
result += " ";
}
return result;
}
public static void Laugh()
{
String str = "ha";
System.out.println( sayAgain( sayAgain( str, 2 ), 3 ) );
}
Which of the following is output as a result of evaluating Laugh()?
ha
ha ha
ha ha ha
ha ha ha ha ha ha
None of the above — an error will occur.
2 AnswersProgramming & Design1 decade agoStatic Method Computer Science?
Consider this static method:
public static int xCheck( String[] strArr )
{
int n;
int k;
n = strArr.length;
for ( k = 0 ; k < strArr.length ; k++ )
{
if ( strArr[ k ].equals( "x" ) )
{
n--;
}
}
return n;
}
If s is initialized as a String[], which of the following best characterizes the value of xCheck( s )?
The number of occurrences of the string "x" as an element of s.
The number of occurrences of strings other than "x" as elements of s.
The index of the first occurrence of "x" as an element of s.
The index of the last occurrence of "x" as an element of s.
The index of the first occurrence of a string other than "x" as an element of s.
2 AnswersProgramming & Design1 decade agoStatic method help...Comp Sci?
Okay, in this static method we are testig to see which set of values for "pickOne" will result in 3.
I'm guessing that all of these inputs will result in 3, since 3 is returned at the very end of the code.
WHat do you think??
public static int pickOne( int a, int b, int c )
{
if ( a < b && (b < c || a < c) )
return a;
if ( b < c )
return b;
return c;
}
Which of these expressions has the value 3?
pickOne( 2, 2, 3)
pickOne( 3, 3, 3)
pickOne( 3, 4, 4)
2 AnswersProgramming & Design1 decade agoComputer programming help?
The static method arrayToString takes an array of Strings and returns a String that reports the contents of the array in a form illustrated by the following examples. If the arrays x, y, and z are given by:
String[] x = { "a", "b", "c", "d" };
String[] y = { "membership" };
String[] z = { };
then arrayToString( x ), arrayToString( y ), and arrayToString( z ) have the values:
"[ a, b, c, d ]"
"[ membership ]"
"[ ]"
respectively. Which of the following are suitable definitions of arrayToString?
public static String arrayToString( String[] sArr )
{
String s = "[ ";
for ( int i = 0 ; i < sArr.length ; i++ )
{
s += sArr[ i ];
if ( i + 1 < sArr.length )
s += ", ";
}
s += " ]";
return s;
}
public static String arrayToString( String[] sArr )
{
String s = "[ ";
int i = 0;
while ( i < sArr.length )
{
s += sArr[ i ] + ", ";
i++;
}
s += "]";
return s;
}
public static String arrayToString( String[] sArr )
{
String s = "[ ";
int i = 0;
while ( i + 1 < sArr.length )
{
s += sArr[ i ] + ", ";
i++;
}
if ( sArr.length > 0 )
s += sArr[ i ];
s += " ]";
return s;
}
I only
II only
I and II only
I and III only
I, II, and III
1 AnswerProgramming & Design1 decade agoStatic method question...?
Consider this static method:
public static int[] blend( int[] a, int[] b )
{
int[] c = new int[ a.length + b.length ];
int i = 0;
while ( i < a.length && i < b.length )
{
c[ 2 * i ] = a[ i ];
c[ 2 * i + 1 ] = b[ i ];
i++;
}
if ( a.length < b.length )
{
for ( int j = i; j < b.length; j++ )
c[ i + j ] = b[ j ];
}
else
{
for ( int j = i; j < a.length; j++ )
c[ i + j ] = a[ j ];
}
return c;
}
If a and b are initialized arrays of ints, and if the elements of both arrays are initialized, then which of the following best describes the value of blend( a, b )? Choices are below...
An array formed by inserting all the elements of b (in order) after the last element of a.
An array formed by inserting all the elements of a (in order) after the last element of b.
An array formed by alternating elements from a and b, until one of them is exhausted, followed by any remaining elements of the other array (in order).
If a and b have the same length, an array formed by alternating elements from a and b. Otherwise, an array made up of all the elements (in order) of the longer array that extend beyond the length of the shorter array.
An ArrayIndexOutOfBoundsException occurs.
2 AnswersProgramming & Design1 decade agoAPComputer Science Lab Help?
Here is the prompt for a classwork lab assignment, I've tried this lab twice, but I keep generating the wrong answer. My code is error-free, but for some reason the standard deviation I result with does not comply with the actual standard deviation the assignment offers. (I'm lucky to be able to try out my code to see if it matches the answer key)
The standard deviation of a set of numbers is a measure of the spread of their values. It is defined as the square root of the average of the squared differences between each number and the mean. To calculate the standard deviation of the numbers stored in data:
Calculate the mean of the numbers.
For each number, subtract it from the mean and square the result.
Find the mean of the numbers calculated in step 2.
Find the square root of the result of step 3. This is the standard deviation.
Write code to calculate the standard deviation of the numbers in data and store the result in the double sd.
To find the square root of a non-negative double d, use the expression
double s = Math.sqrt( d );
// Enter values to test here
double[] data = { };
double sd;
Here is my code..
int i = 0;
double sum1 = 0;
double sum2 = 0;
double mean;
double t = 0;
while ( i < data.length )
{
sum1+= data[i];
i++;
}
mean = (sum/data.length);
while ( i < data.length )
{
t += mean - data[i];
t = Math.sqrt(data[i]);
i--;
sum2 +=
}
mean = (sum/data.length);
sd = Math.sqrt (mean);
___________________
It would very helpful If I could get some tips on how to fix this..
1 AnswerProgramming & Design1 decade agofor loops & for each loops?
Below is a 'for each' loop. Under it is a few ways to write the same code but in 'for loop' version and as a 'while loop'. Are they correct?
String[] cities = new String[ 10 ];
// missing code that inserts a String in each element of this array
for ( String city : cities )
{
if ( city.substring( 0, 1 ).equals( "C" ) )
System.out.println( city );
}
Can it be re-written as :
String[] cities = new String[ 10 ];
// missing code that inserts a String in each element of this array
for ( int i = 0 ; i < cities.length ; i++ )
{
String city = cities[ i ];
if ( city.substring( 0, 1 ).equals( "C" ) )
System.out.println( city );
}
and
String[] cities = new String[ 10 ];
// missing code that inserts a String in each element of this array
for ( int i = 0 ; i < cities.length ; i++ )
{
if ( cities[ i ].substring( 0, 1 ).equals( "C" ) )
System.out.println( cities[ i ] );
}
and
(while loop..)
String[] cities = new String[ 10 ];
// missing code that inserts a String in each element of this array
int i = 0;
while ( i < cities.length )
{
String city = cities[ i ];
if ( city.substring( 0, 1 ).equals( "C" ) )
System.out.println( city );
i++;
}
2 AnswersProgramming & Design1 decade ago