Homework

Homework Questions? Ask a Tutor for Answers ASAP

Connect one-on-one with {0} who will answer your question

Related Homework Questions
Its java related for CS, the problem is public static int
the problem is public static int sumOfDigits(String s) Example: s = “H0145ellO #$%”; int sum = sumDigits(s); // sum = 6 Part 2 Write a method that takes a String and returns an array of characters. The returned array stores the string's characters in reversed index order. The method's header is as follows: public static char[] toCharArray(String s) Example: s = “Java SE 13”; char[] out = toCharArray(s); out = {‘3', ‘1', ‘ ', ‘E', ‘S', ‘ ', ‘a', ‘v', ‘a', ‘J'} … read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
14,482 satisfied customers
I need a question answered, Assignment5_1.java - Write a
Assignment5_1.java - Write a console program that follows the following: In the main () method, create an array of 1000 int. This means an array of type int that could store 1000 elements. Create a static method fillArray () that would accept an array of 1000 int as the only parameter and wouldinitialize them randomly in the range from 0 to 100. You can use static method java.lang.Math.random () to generate a single random Number of type double in the range from 0.0 to 1.0. You then may consider multiplying result returned by this method by 100 and round it to get an integer in the range from 0 to 100. Method fillArray () should be declared to return any data (for instance return data type should be void). Call method fillArray () from main () and pass declared array into it. No output is needed. Note: Since the type of data passed into the method is not the primitive data type (eg int, double, float, etc.) but an array, it will be passed by reference (in contrast to by value as we practiced in the previous assignment). In this case any modification made to array within method fillArray () will propagate to the original array which is declared in main (). Create a new static method getAverage () that accepts that same array of 1000 ints as the only method's parameter, calculates their average and returns it back to main () as a value of type double. Print that returned value in main (). Assignment5_2.java - Write to console Java program that does the following Read string text from a user and store it into a variable of type String Convert that string into an array of characters by using static method toCharArray () of class String. This method performs the conversion and returns an array of characters (type char) that you need to store in some temporal array, say char [] temp. Iterate through this temporal array and collect statistics of individual letter appearance. Then store that statistics in some other array called int [] stat. That new array needs to be declared to store statistical data of any possible character that can be seen in a user input. The general text includes letters of English alphabet (both small and capital cases), digits, and some punctuation marks (ie space, comma, period, dash, etc). If you think of "all possible characters", even those that are rarely seen in a typical English text, then you can not distinguish more than 128 different ones (see base ASCII table for example). In this case having stat array being declared to store 128 entries of type int is a good idea. Print out non-zero statistical data: a letter and a number in a single line, then another line, and so on. Example: Let's say a user has entered "Hello World !!!". This string contains 14 characters. Character 'H' is seen only once as stat value [72] would be 1 (number 72 is the index of 'H' in ASCII table). The value of stat [101] (letter 'e') is also 1, but for example, the value of stat [108] is 3 because 108 is the index of 'l' and there are 3 letters 'l' in the given Text line. Hint: In order to convert the value of character into ASCII code you can use data type casting. For example, assuming that array temp [] from the previous case study was populated with letters of " … read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
14,482 satisfied customers
1. Assignment5_1.java - Write a console program that does
1. Assignment5_1.java - Write a console program that does the following:In main() method, create an array of 1000 int. This means an array of type int that could store 1000 elements.Create a static me… read more
ATLProg
ATLProg
Sr Software Engineer
Master's Degree
1,448 satisfied customers
Assignment 1: Write a program that lets the user enter the
Assignment 1: Write a program that lets the user enter the total rainfall for each of 12 months into an array of doubles. The program should use two 12-element arrays. One array will hold strings, the… read more
ATLProg
ATLProg
Sr Software Engineer
Master's Degree
1,448 satisfied customers
1)Create a class named Customer that implements IComparable
1)Create a class named Customer that implements IComparable interface. -Create 3 Customer class fields: Customer number, customer name, and amount due. Create automatic accessors for each field. -Crea… read more
ATLProg
ATLProg
Sr Software Engineer
Master's Degree
1,448 satisfied customers
You have been asked by your manager to create a user-friendly
You have been asked by your manager to create a user-friendly application that will present a survey to your customers. The application will compile and analyze the results entered by the survey respo… read more
John
John
Software Engineer
664 satisfied customers
Develop a simple RentalCarCompany program for a Rental Car
Develop a simple RentalCarCompany program for a Rental Car Company, call it whatever you like. We will have two classes, a Car class and aRentalCarCompany class. The RentalCarCompany class will contai… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
14,482 satisfied customers
1 initialize(parameters) Takes an array of integers
1 initialize(parameters) Takes an array of integers and initialize each element with a random number between 1 and 10. Use: Create an array of 10 integers in the main method, and pass the array to thi… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
14,482 satisfied customers
Sort Flexibility (Student class) In week 8, we saw an example
Sort Flexibility (Student class) In week 8, we saw an example of a Student class that provided a compareTwoStudents() method. We needed to define such a method because our sort algorithm (which was in… read more
Raj
Raj
SAP ABAP Consultant
Master's Degree
365 satisfied customers
Can you help me develop a test? Update your test class to test
Can you help me develop a test? Update your test class to test all of the members added to this point. -respondentID: int -surveyTitle:string -questions[10] :string -questionArraySize:int -resultArray… read more
ATLProg
ATLProg
Sr Software Engineer
Master's Degree
1,448 satisfied customers
We are going to develop a program that will handle a Golfer
We are going to develop a program that will handle a Golfer and his scores. The program will be comprised of three classes: a Golfer class that will manage all the golfer's scores, a Score class and a… read more
Raj
Raj
SAP ABAP Consultant
Master's Degree
365 satisfied customers
Could someone please help me with the following. This project
Could someone please help me with the following. This project will build off of the previous homework and create a class that prints out a manifest for a shipping order. Using your ShippingInfo class … read more
ATLProg
ATLProg
Sr Software Engineer
Master's Degree
1,448 satisfied customers
This question is for Altprog can you help me with the following
This question is for Altprog can you help me with the following program Can you help me with the following program I will be creating a Height class and a small program to test that class. The Height … read more
ATLProg
ATLProg
Sr Software Engineer
Master's Degree
1,448 satisfied customers
1. What is the Java source filename extension? What is the
1. What is the Java source filename extension? What is the Java bytecode filename extension? A source file would use a .java extension and a bytecode a .class extension. 2. Write a Java statement to d… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
14,482 satisfied customers
Problem Description Create the following methods, and then
Problem Description Create the following methods, and then call them from main method sequentially. Note 1: Some of the methods may need one or more auxiliary methods. In such a case you should split … read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
14,482 satisfied customers
Write a static method named "hasNoDuplicates" that takes an
Write a static method named "hasNoDuplicates" that takes an array of Strings as a parameter and that returns a boolean value indicating whether or not any of the Strings in the array are duplicated (t… read more
R.R. Jha
R.R. Jha
Bachelor's Degree
6,909 satisfied customers
Hi Scott, Sorry to bother you again but I have another
Hi Scott, Sorry to bother you again but I have another JAVA program to get solved and was wondering if you could be of any assistance. If you have time I would like to forward it to you again.... Let … read more
Scott
Scott
MIT Graduate
Master's Degree
3,946 satisfied customers
Have a JAVA program that needs to be developed that simply ...
Have a JAVA program that needs to be developed that simply encrypts then decrypts a message.… read more
Chris Parker
Chris Parker
Master's Degree
2,025 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here.

DianeDallas, TX

< Previous | Next >

Meet the Experts:

LogicPro

LogicPro

Engineer

14,482 satisfied customers

Expert in Python,Java C++ C C# VB Javascript Design SQL HTML

Manal Elkhoshkhany

Manal Elkhoshkhany

Tutor

4,720 satisfied customers

More than 5000 online tutoring sessions.

Linda_us

Linda_us

Finance, Accounts & Homework Tutor

3,138 satisfied customers

Post Graduate Diploma in Management (MBA)

Chris M.

Chris M.

M.S.W. Social Work

2,850 satisfied customers

Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)

F. Naz

F. Naz

Chartered Accountant

2,270 satisfied customers

Experience with chartered accountancy

Bizhelp

Bizhelp

CPA

1,887 satisfied customers

Bachelors Degree and CPA with Accounting work experience

Jabi

Jabi

Tutor

1,795 satisfied customers

I've been an Expert on JustAnswer since July 2010.

< Previous | Next >

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x