menu
Qamnty
Login
Register
My account
Edit my Profile
Private messages
My favorites
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…
Ask a Question
Questions
Unanswered
Tags
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…
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 & Tech
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.7k
points
Computers & Tech
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 & Tech
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 & Tech
high-school
1
answer
0
votes
56.4k
views
Ask a Question
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
Other Questions
“What does it mean when we “rework” copyrighted material?”
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.
Disadvantages of using animation in advertising? advantages and disadvantages of using animation for education? advantages and disadvantages of using animation in entertainment?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qamnty