Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write a java program of that question LD 6. Use JOptionPane class to show the messages and let user enter the data in the dialog
write a java program of that question
LD 6. Use JOptionPane class to show the messages and let user enter the data in the dialog box for this exercise. You need to calculate average score by a game for a team. Ask the user a team name, then number of games played, then total points in all games. Then calculate average score by game, and show to the user. Dialog example: Input ? Enter the team's name Real Madrid OK Cancel I I Input ? Enter number of games the team played 25 OK Cancel Enable Editing less you need to edit, it's safer to stay in Protected View 6 7 10 1 Input ? Enter number of games the team played 25 OK Cancel x input ? Enter total scores the team accumulated in all games 40 OK Cancel Message The average game points for the team Real Madrid is 1.6 OK SUBMISSIONStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started