Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

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 SUBMISSION

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions