Homework

Homework Questions? Ask a Tutor for Answers ASAP

Ask an Expert,
Get an Answer ASAP!

Homework
This answer was rated:

I have a couple of basic java questions i need answered.

I have a couple of...
I have a couple of basic java questions i need answered
JA: What programs and versions are you using?
Customer: Netbeans 8.2
JA: What is your ideal outcome? How can we solve this for you?
Customer: I need answers for my lab questions
JA: Anything else you want the programmer to know before I connect you?
Customer: I need the answers within 4 hours. The questions should take under 30mins if the programmer is free.
Show More
Show Less
Ask Your Own Homework Question
Customer reply replied 22 days ago
1) Write a static method called AreaOfRectangle that is passed two float-point values for the length and width of a rectangle. The method returns the product of the length and width as a double. Comment the method using javadoc conventions. Write a main method that creates the following variables to describe the sides of a rectangle:double length = 3.4;
double width = 8.4;The main method should print the length, width, and area of the rectangle.2) Why does the following code contain a compile-time error?public class Area
{
public static void main(String[] args)
{
int x = 2;
int y = 3;
System.out.println("x: " + x + " y: " + y + " Sum: " + sum(x,y));
}
/**
Computes the sum of two arguments.
@param a an int operand to be added
@param b another int operand
@return the sum of a and b
*/
public static int sum(int a, int b)
{
return a + b;
System.out.println("Finished adding...");
}
}3) Run the following code. The sum method in this program violates a design principle of the book (that methods should not try to modify an argument) when it assigns 5 to a, and 6 to b. Certainly these values are changed; this can be seen by examining the value the sum method returns. But what about arguments x and y? Are their values changed, too? In other words: Do the assignments made in the method body have side effects in the main program?
public class Area
{
public static void main(String[] args)
{
int x = 2;
int y = 3;
System.out.println("x: " + x + " y: " + y + " Sum: " + sum(x, y));
}
/**
Computes the sum of two arguments.
@param a an int operand to be added
@param b another int operand
@return the sum of a and b
*/
public static int sum(int a, int b)
{
a = 5;
b = 6;
return a + b;
}
}4.1) Write a method called makeRow that is passed two arguments: an int n and a String s, and which returns a String containing n copies of s, concatenated in a row. For instance, if we call the method with makeRow(5, "*"), the method returns *****. Write a main method that uses the method to print the string *****=====*****.4.2) Reuse makeRow to write a method called printUpTriangle that is passed two arguments, an int n and a String s. It should print a right triangle in which the base of the triangle is made of n copies of s, and the vertex of the triangle has a single copy of s on the right. For example, calling printUpTriangle(13, "*"); prints the following lines:*
**
***
****
*****
******
*******
********
*********
**********
***********
************
*************Write a main method that calls printUpTriangle(13, "*").4.3) Reuse makeRow by writing a method called printDownTriangle that is passed an int n and a String s, and that prints a right triangle in which the base (at the top) of the triangle is made of n copies of s, and the vertex of the triangle has a single copy of s on the right. For example, calling printDownTriangle(13, "*"); prints the following lines:*************
************
***********
**********
*********
********
*******
******
*****
****
***
**
*Write a main method that calls printDownTriangle(13, "*").
Answered in 2 hours by:
11/21/2017
LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 13,277
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML
Verified

Hi

Ask Your Own Homework Question

Welcome here.

My name is ***** ***** I will help you.

Do you still need it?

Ask Your Own Homework Question
Customer reply replied 22 days ago
I need. Very soon. Within 1 hour
Customer reply replied 22 days ago
Can you get it done in time?

I can provide you answer in next 30 minutes, let me know

Ask Your Own Homework Question
Customer reply replied 22 days ago
I still need them. I will need the answers within the next 30 minutes.

ok

Ask Your Own Homework Question

Download

http://www.wikisend.com/download/834810/4Programs.zip

Unzip to a real folder to get the required java files

Let me know if you need anything else

Leave your rating by selecting five stars located on the top right of the question page. Giving a positive rating compensates the Expert for their time with you. Please remember that your Expert will not be paid until you leave a positive rating for the answer. If the stars are grayed out or you cannot click on the stars to rate your experience, reply to your Expert and let them know so they can adjust your question and allow you to rate.

Please consider adding bonus after rating

http://ww2.justanswer.com/help/what-if-expert-does-really-fantastic-job-hl

You can also come back and add a bonus at a later date by using the "Write a review or give a bonus" button on your question page.

We can continue the conversation until you're satisfied and rate my answer as excellent to credit me. I can address follow up questions and I'm always here to help.

You can ask me again using "For LogicPro only" at the start of your questions like other customers to get instant answers. It will ensure that question is for me.

Please bookmark my profile page:

http://www.justanswer.com/homework/expert-logicpro/

so you can come back and ask me a question anytime.

Thank you for using this site!

LogicPro

Ask Your Own Homework Question
Customer reply replied 22 days ago
Ok. I will submit my answers in class then rate.
THIS ANSWER IS LOCKED!
You can view this answer by clicking here to Register or Login and paying $3.
If you've already paid for this answer, simply Login.
LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 13,277
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML
Verified
LogicPro and 87 other Homework Specialists are ready to help you
Ask your own question now
Ask LogicPro Your Own Question
LogicPro
LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 13,277
13,277 Satisfied Customers
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML

LogicPro is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

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

13,277 satisfied customers

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

Manal Elkhoshkhany

Manal Elkhoshkhany

Tutor

4,550 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,635 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,159 satisfied customers

Experience with chartered accountancy

Bizhelp

Bizhelp

CPA

1,887 satisfied customers

Bachelors Degree and CPA with Accounting work experience

Seanna

Seanna

Tutor

1,781 satisfied customers

3,000+ satisfied customers, all topics, A+ work

< Previous | Next >

Related Homework Questions
Step 1: Define a Computer class that can be used to describe
Step 1: Define a Computer class that can be used to describe your computer. The class must have at least two attributes. One variable must be an integer data type and the other must be a String data t… read more
LogicPro
LogicPro
Engineer
13,277 satisfied customers
1. Which of the following devices contains three PN
1. Which of the following devices contains three PN junctions? A. Backward diode B. TRIAC C. Shockley diode D. DIAC2. A diode's recovery time is divided into two parts called the A. a-b period and the… read more
GLENN
GLENN
Master of Mathematics
335 satisfied customers
Two-dimensional array operations in C++: Movie Ratings
Two-dimensional array operations in C++ : Movie Ratings program** You have recently collected reviews from four movie reviewers where the reviewers are numbered 1- 4. Each reviewer has rated six movie… read more
George Sibiya
George Sibiya
PhD
197 satisfied customers
Chief Justice Marshall emphasized that the Constitution gave
Chief Justice John Marshall emphasized that the Constitution gave Congress the power to make all “necessary and proper laws” needed to carry out its delegated powers. How did the necessary and proper … read more
Jane T(LLC)
Jane T(LLC)
Master's Degree
18 satisfied customers
I need help on my computer science homework using python i
I need help on my computer science homework using python i have hit a speed bump and do not understand what i am doing with my functions anymore... i feel like all my files are set and i have red the … read more
LogicPro
LogicPro
Engineer
13,277 satisfied customers
Need help with Wireshark. Approx 40 questions. Entry level
Need help with Wireshark. Approx 40 questions. Entry level class but must know how to do tasks. It is not something that you can just google the answers. Need assignment completed soon. Will pay good … read more
David L.
David L.
Bachelor\u0027s Degree
6 satisfied customers
How are you doing? I am working on an assignment in
Hi how are you doing? I am working on an assignment in Javascript. I have both the container file and the code. However, I couldn't get the program to run. The error is in the actual html file. I am u… read more
LogicPro
LogicPro
Engineer
13,277 satisfied customers
I need help with this same question. Python and raptor.
Final Programming Project Assessment (400 Points toward Course Grade) Instructions: The following programming problem can be solved by a program that uses three basic tasks-Input Data, Process Data, and Output Results. To process the data, use file, looping, array, decision, accumulating, counting, find min/max and sorting techniques. First, create an MS Word document containing a hierarchy chart to organize your program modules. Second, create a RAPTOR flowchart to solve this problem. Third, create the program with Python. You MUST use Modular Programming techniques by using Sub Modules in your program. Your "main" module should not be very large. NEVER call "main" from inside your program. Also, do not use "recursion" in this program (submodules that call themselves). You are only allowed to use looping techniques to repeat sections of your submodules. Problem Statement Ledger's Furniture Store has 10 salespeople. Ledger's wants to produce a combined monthly sales report for all salespeople. Ledger's wants you to write a program that will allow them to enter data in any order, save the unsorted data to a file, and then produce a file in alphabetical order by name of the salespeople. The unsorted output file should be named "sales_unsorted.txt" and the sorted file should be named "sales_sorted.txt". … read more
George Sibiya
George Sibiya
PhD
197 satisfied customers
An orange juice producer buys oranges from a large orange
An orange juice producer buys oranges from a large orange grove that has one variety of orange. The amount of juice squeezed from these oranges is approximately normally​ distributed, with a mean of 6.06.0 ounces and a standard deviation of 0.240.24 ounce. Suppose that you select a sample of 3636 oranges. a. What is the probability that the sample mean amount of juice will be at least 5.685.68 ​ounces? b. The probability is 7676​% that the sample mean amount of juice will be contained between what two values symmetrically distributed around the population​ mean? c. The probability is 7575​% that the sample mean amount of juice will be greater than what​ value? … read more
GLENN
GLENN
Master of Mathematics
335 satisfied customers
Describe the relationship of the NBPTS to learning theories
describe the relationship of the NBPTS to learning theories and educational environments compare the advantages and disadvantages of traditional and nontraditional learning environments for students w… read more
lani_s
lani_s
Bachelor\u0027s Degree
47 satisfied customers
Physics Orbiting Bodies Calculate the mass (in kg) of the
Physics Orbiting BodiesCalculate the mass (in kg) of the Sun based on data for Venus's orbit. (answer in kg) Compare the value obtained with the Sun's actual mass. M obtained/ M actual… read more
GLENN
GLENN
Master of Mathematics
335 satisfied customers
Your instructor will assign a linear programming project for
Your instructor will assign a linear programming project for this assignment according to the following specifications.It will be a problem with at least three (3) constraints and at least two (2) dec… read more
GLENN
GLENN
Master of Mathematics
335 satisfied customers
I want to ask the problems about python. It's about the
Hello, I want to ask the problems about python JA: What's your objective for this Python project? Customer: It's about the function and subclass JA: Anything else you want the programmer to know befor… read more
George Sibiya
George Sibiya
PhD
197 satisfied customers
Quick One! Do you have a solution for this problem? Suppose
Quick One ! Do you have a solution for this problem? Suppose a homogeneous array with 6 rows and 8 columns is stored in row major order starting at address 20 (base 10). If each entry in the array req… read more
Pete
Pete
Engineer
Bachelor\u0027s Degree
1,112 satisfied customers
1. Both a lay witness and an expert witness can give
1. Both a lay witness and an expert witness can give opinions under certain circumstances. A lay witness can give opinions concerning only A. settlement negotiations. B. observations that don't requir… read more
P. Simmons
P. Simmons
Attorney
Doctoral Degree
35,089 satisfied customers
Find the work done by the force F=(2n/M)Y + (31 N/m)x
Hi find the work done by the force F=(2n/M)Y + (31 N/m)x between the points A= (0,0) and B=2m, 2m) over a arc of radius 2m centered at (0, 2m) … read more
GLENN
GLENN
Master of Mathematics
335 satisfied customers
Write a C++ program to read in various types of test
Write a C++ program to read in various types of test questions (multiple choice and True/False) from a test bank (text file), and load the questions into an array of questions. You will need to implem… read more
LogicPro
LogicPro
Engineer
13,277 satisfied customers
I have a project management question. Your company, Planners
Your company, Planners 'R Us, specializes in effectively managing projects. Previous experience has involved conference management systems, commercial construction, and software development projects. A new, intriguing project offers another opportunity to apply your project management expertise. The university you just graduated from wishes to put together a music festival, “Rock'n Bands”. This will feature a number of top music groups, and should attract interest from students, local residents, and music fans throughout the region. Your company has met with University officials to develop a list of activities required to make Rock'n Bands a reality. The list on Page 2 includes twelve activities as well as their durations and immediate predecessors. Planners ‘R Us has agreed to complete the project in 10 weeks (finishing two weeks before the Festival), and wants to minimize the costs associated with the project. All tasks A-K must be completed in 10 weeks. You have four (4) workers, although you do not need to use all of them every week – there are other tasks they can do in your company. For bookkeeping purposes, your company will charge $200 per week for each worker that you use. If you happen to need an additional worker, there is one (1) available, but that person would then not get their other work done; thus, you will be charged $300 per week for the additional worker. In addition, if the project is “late”, there will be complications during the last two weeks before the Festival, costing Planners ‘R Us $2000 per week due to a serious loss of goodwill and plenty of negative publicity. … read more
F. Naz
F. Naz
Chartered Accountant
CA Finalist & Completed B.com
2,159 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.

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