![Computers and Technology](/tpl/images/cats/informatica.png)
Computers and Technology, 10.06.2020 21:57, babyj93
Given main(), define the Team class (in file Team. java). For class method getWinPercentage(), the formula is:teamWins / (teamWins + teamLosses)Note: Use casting to prevent integer division. Ex: If the input is:Ravens133 where Ravens is the team's name, 13 is number of team wins, and 3 is the number of team losses, the output is:Congratulations, Team Ravens has a winning average!If the input is Angels 80 82, the output is:Team Angels has a losing average. Here is class WinningTeam:import java. util. Scanner;public class WinningTeam {public static void main(String[] args) {Scanner scnr = new Scanner(System. in);Team team = new Team();String name = scnr. next();int wins = scnr. nextInt();int losses = scnr. nextInt();team. setTeamName(name);team. setTeamWins(wins);team. setTeamLosses(losses);if (team. getWinPercentage() >= 0.5) {System. out. println("Congratulations, Team " + team. getTeamName() +" has a winning average!");}else {System. out. println("Team " + team. getTeamName() +" has a losing average.");}}}
![answer](/tpl/images/cats/otvet.png)
Answers: 1
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 04:10, kris1920
Write a program that reads a set of floating-point values. ask the user to enter the values, then print • the average of the values. • the smallest of the values. • the largest of the values. • the range, that is the difference between the smallest and largest. of course, you may only prompt for the values once.
Answers: 3
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 06:30, chloeholt123
For which utilities, if any, does the landlord pay?
Answers: 2
Do you know the correct answer?
Given main(), define the Team class (in file Team. java). For class method getWinPercentage(), the f...
Questions in other subjects:
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 21.10.2020 01:01
![Konu](/tpl/images/cats/mat.png)
Mathematics, 21.10.2020 01:01
![Konu](/tpl/images/cats/User.png)
Engineering, 21.10.2020 01:01
![Konu](/tpl/images/cats/fizika.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 21.10.2020 01:01
![Konu](/tpl/images/cats/obshestvoznanie.png)
![Konu](/tpl/images/cats/en.png)
English, 21.10.2020 01:01
![Konu](/tpl/images/cats/mat.png)
Mathematics, 21.10.2020 01:01
![Konu](/tpl/images/cats/istoriya.png)
History, 21.10.2020 01:01