Write a method with the following header: public static void showGradeDistribution(int a, int b, int c, int...

60.1K

Verified Solution

Question

Programming

Write a method with the following header:

public static void showGradeDistribution(int a, int b, int c,int d,

int f)

It should print a graph (using asterisks) for each of theletters entered in the reverse order of the

parameter list and with a label. In addition, if A and B gradessum is equal or exceeds that of grades C

and D and F, the message “Strong class!” should be displayed.For example a method call of:

showGradeDistribution(5,7,4,4,3);

Would print:

A: *****

B: *******

C: ****

D: ****

F: ***

Strong class

Answer & Explanation Solved by verified expert
3.7 Ratings (400 Votes)
Thanks for the question Below is the code you will be needing Let me    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students