menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
Define an average function that takes 4 arguments, calculates the average of the 4 numbers passed to it, and returns the result back to the caller. Capture the 4 values from the user in main() and pass
asked
Oct 26, 2021
80.9k
views
5
votes
Define an average function that takes 4 arguments, calculates the average of the 4 numbers passed to it, and returns the result back to the caller. Capture the 4 values from the user in main() and pass them to the function average. Call the average function from main. Print the results returned in the main function. Call the average function three more times with three more sets of four numbers and return the results back to the caller. Save the return values in variables in main(). Pass all four return values saved in main() back to the average function as arguments to calculate the average of the averages and return the result to main() which will print the final result ( average of the averages).
Computers and Technology
college
Lorrene
asked
by
Lorrene
6.9k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
4
votes
Answer:
ok so basically 3 x 9 is 278
Step-by-step explanation:
ok so basically 3 x 9 is 278
Yash Makan
answered
Oct 31, 2021
by
Yash Makan
8.9k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Jul 27, 2024
163k
views
True or False. A function's local variable exist after the function returns to its caller. True or False. You must pass keyword arguments in the same order as their corresponding parameters.
Niranjan Singh
asked
Jul 27, 2024
by
Niranjan Singh
7.8k
points
Computers and Technology
high-school
1
answer
5
votes
163k
views
asked
Apr 20, 2018
94.7k
views
Using default arguments, write a function that asks the user for a number and returns that number. the function should accept a string prompt from the calling code. if the caller does not supply a string
RobLabs
asked
Apr 20, 2018
by
RobLabs
8.0k
points
Computers and Technology
high-school
1
answer
4
votes
94.7k
views
asked
Oct 24, 2020
56.4k
views
Which of the following statements is false? a. All arguments in Java are passed by value. b. When an argument is passed by reference, the called method can access the argument’s value in the caller directly
Nick Sonneveld
asked
Oct 24, 2020
by
Nick Sonneveld
7.7k
points
Computers and Technology
high-school
1
answer
0
votes
56.4k
views
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
Other Questions
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Explain why binary codes are used to represent characters, numbers and symbols :)
This is science they just dont have the subject buy anyways describe interactions you have with the environment that you depend on to meet your basic needs hope u can help
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org