Question

(b) Suppose that mstead (ie part (a) did uot exist). Alice had made the following changes: ) public static double returnAvera

If Git merges the changes of Alice and Bob, what is the output of nain)? A. 73.3333333 B. average: 73.3333333 C. Here are the

please I need it urgent thanks

(b) Suppose that mstead (ie part (a) did uot exist). Alice had made the following changes: ) public static double returnAverage (doubie0] oxrs, int n) double su- double averoge sun ; System.out print(everage return average: and Bob had made the following chauges public static void moin doubleJ exanis 198, 6a, 70 double average returnAverage(exots, ) System.out printin average:everage):
If Git merges the changes of Alice and Bob, what is the output of nain)? A. 73.3333333 B. average: 73.3333333 C. Here are the finaln: 90 60 70 average: 73.3333333 D. 73.3333333 average: 73.3333333 E. we can automatically merge, but the resulting code is broken (static erro) F, we can automatically merge, but the r G. w resulting code is broken (dynamic error) we can antomatically nerge, but the resulting code is broken (no error, wrong answer) H. we cainot automntically merge the changes Briefly explain your answer.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

If you have any doubts, please give me comment...

Answer: F (We can automaticlly merge, but the resulting code is broken (dynamic error))

It raises an Runtime error, which means we will get DivisionByZeroException, because we passed 'returnAverage(exams, 0)', where n is zero, any number by zero is not possible... so we will get Runtime error. It's a dynamic error.

Add a comment
Know the answer?
Add Answer to:
please I need it urgent thanks (b) Suppose that mstead (ie part (a) did uot exist). Alice had made the following changes: ) public static double returnAverage (doubie0] oxrs, int n) double su-...
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
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
ADVERTISEMENT