Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program that prompts the user first to enter the number of employees and

ID: 3664206 • Letter: W

Question

Write a program that prompts the user first to enter the number of employees and then to enter the name and bonus amount for each employee (the name should be a single string with no spaces, the bonus should be a real number). The program should then display the name and bonus amount for the employee with the highest bonus. Call your file: Bonus. java. Modify the above program to display two employees with the highest bonus amount. (Do not submit a separate program for this, just modify your original code.)

Explanation / Answer

class bonus

{ public static void main(string args[])

int max;

String name[10];

int bonus_amount[10];

for(int i=0;i<10;i++)

}

max= bonus_amount[0]

for(i=0;i<10;i++)

if( max<bonus_amount[i])

max=bonus_amount[i];

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote