menu
QAmmunity.org
Questions by Rani
Login
Register
My account
Edit my Profile
Private messages
My favorites
Questions by Rani
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
Questions by Rani
Filter
User Rani
Recent activity
All questions
All answers
Consider the following methods: public static double average(int nums[]) { int sum =0; for (int i = 0; i < nums.length; i++) { sum += nums[i]; } return (1.0 * sum) / nums.length; } //average public static int[] mystery(String a[]) { int temp [] = new int[a.length]; for (int i = 0; i < a.length; i++) { temp[i] = a[i].length(); } return temp; } //mystery What is output by running the following? String spelling[] = {"against", "forms", "belief", "government", "democratic", "movement", "understanding", "single", "followed", "scenario"}; System.out.println( average( mystery(spelling))); 1. 10 2. 8.5 3. 8.1 4. Error, you cannot average Strings. 5. 8
asked
Feb 27, 2018
Computers and Technology
high-school
1
answer
4
votes
147k
views
What Reagan Era Scandal involved the illegal sale of weapons to a terrorist wants our nation
asked
Nov 1, 2017
Social Studies
high-school
1
answer
5
votes
67.8k
views
What kind of fiction nonfiction or fantasy is this
asked
Jun 9, 2017
English
middle-school
1
answer
5
votes
28.7k
views
What is the solution to the rational equation x over x squared minus 9 minus 1 over x minus 3 equals 1 over 4x minus 12 ?
asked
Mar 17, 2017
Mathematics
high-school
2
answers
5
votes
187k
views
When designing an experiment, a benefit of larger sample sizes would be more?
asked
Apr 26, 2016
Biology
high-school
1
answer
2
votes
27.1k
views
Page:
« prev
1
2
3
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.5m
questions
12.2m
answers
Search QAmmunity.org