Question

I am in java programming I need to // TO DO: Add a function call to...

I am in java programming I need to

// TO DO: Add a function call to the function named

// findMaxSalesAndBestSellingAgent()

// with 3 arguments (maxSalesDouble, totalHousePriceDouble, and

// totalHousePriceDouble)

// using an assignment statement form) and store the value returned by the

// function

// in the input variable maxSalesDouble

I wrote this in the code

maxSalesDouble = findMaxSalesAndBestSellingAgent(totalHousePriceDouble);

Would this be correct?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

No this is not correct you need to pass 3 values but your passing only 1 value here.

maxSalesDouble = findMaxSalesAndBestSellingAgent(maxSalesDouble,totalHousePriceDouble,totalHousePriceDouble);

Add a comment
Know the answer?
Add Answer to:
I am in java programming I need to // TO DO: Add a function call to...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Need help with java programming. Here is what I need to do: Write a Java program...

    Need help with java programming. Here is what I need to do: Write a Java program that could help test programs that use text files. Your program will copy an input file to standard output, but whenever it sees a “$integer”, will replace that variable by a corresponding value in a 2ndfile, which will be called the “variable value file”. The requirements for the assignment: 1.     The input and variable value file are both text files that will be specified in...

  • Need some guidance with the following problems as I am new to Java programming. Any assistance...

    Need some guidance with the following problems as I am new to Java programming. Any assistance is greatly appreciated. Thanks Using printf and specifiers for all print instructions: 1.            Code the following: a.            10% is stored in a variable called discount when the customer is a student; otherwise, it stores 0%. Code this if … else control structure using the conditional operator (ternary operator). The variables discount and student have already been declared. Assume student is a boolean variable. b.           ...

  • I need a code/ script for this problem. I am new to programming and do not...

    I need a code/ script for this problem. I am new to programming and do not really know how to approach it, it may be a loop. There is a file containing info about grocery stores A, B, C, and D. The code would split/separate the info of grocery store A alone on 1 file (AS) and all other grocery stores in another file (O). I would like the python and Javascript version of this code please Thank you.

  • Please help me with the following C Programming project. I am providing the code I used...

    Please help me with the following C Programming project. I am providing the code I used which needs to be reworked to add the following requirements. Here is my code #include<stdio.h> char input; int main() { int i = 0; while (true){ scanf_s("%c", &input); if (input == 'X') break; printf("%c", input); } return 0; } Here are the requirements for the code plus and additional note what the code should have. Goals Understand the ASCII representation of character values. Understand...

  • Programming in java In this part of this Lab exercise, you will need to create a...

    Programming in java In this part of this Lab exercise, you will need to create a new class named ArrayShiftMult. This class carries out simple manipulation of an array. Then you should add a main method to this class to check that your code does what it is supposed to do. 1. Create a BlueJ project named LAB06 as follows: a. Open the P drive and create a folder named Blue), if it does not exist already. Under this folder,...

  • I need to write a function that takes in 3 parameters, parameter_1, parameter_2, and parameter_3. It computes a value ba...

    I need to write a function that takes in 3 parameters, parameter_1, parameter_2, and parameter_3. It computes a value based upon the following formula and places it in the return_var variable: return_var = (parameter_1 + parameter_2 * 47)/parameter_3 The value maintained in return_var variable must be returned by the function. def main(): argA int (input("Enter value for Argument A: ")) argB int(input("Enter value for Argument B ")) argC int (input ("Enter value for Argument C ")) #invoke the crazy_formula function...

  • I need to write a function that takes in 3 parameters, parameter_1, parameter_2, and parameter_3. It computes a value ba...

    I need to write a function that takes in 3 parameters, parameter_1, parameter_2, and parameter_3. It computes a value based upon the following formula and places it in the return_var variable: return_var = (parameter_1 + parameter_2 * 47)/parameter_3 The value maintained in return_var variable must be returned by the function. def main(): argA int (input("Enter value for Argument A: ")) argB int(input("Enter value for Argument B ")) argC int (input ("Enter value for Argument C ")) #invoke the crazy_formula function...

  • Working in java programming. I have a class (call it manage) that takes in an arraylist...

    Working in java programming. I have a class (call it manage) that takes in an arraylist (list) and a boolean (switch), which is created/preset in the parent main function above this class. The arraylist is modified and returned to the main function however, hence it's name 'manage.' I need help declaring the arraylist in the constructor? public class manage{ public manage(){ //Constructor // What is arraylist construction? this.switch = false; } public manage(ArrayList<Integer> list, boolean switch) { this.list = list;...

  • **I am writing on C++. So do not write on java.** Write a function that will...

    **I am writing on C++. So do not write on java.** Write a function that will implement each Fibonacci number with the help of an integer array of size 100 (elements of this array will be digits of the Fibonacci number). When the function is called to find, it will calculate all Fibonacci numbers from to using the basic formula. To add two Fibonacci numbers, the function will add elements of two arrays corresponding to and and store their sums...

  • I am learning programming in JAVA. Please help me with this programming assignment. Your lab assignment...

    I am learning programming in JAVA. Please help me with this programming assignment. Your lab assignment this week is to build a little math program to help kids practice their addition and subtraction. You will create a menu and have the kid select what kind of math problem they want to solve. Once the kid selects what kind of problem. Randomly generate two numbers, display the problem and allow the kid to enter the answer. If the answer is correct....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT