subject

Import java. util. Scanner; public class LosingSquad { public static void main(String[] args) { Scanner scnr = new Scanner(System. in); Squad squad = new Squad(); String name = scnr. next(); int wins = scnr. nextInt(); int losses = scnr. nextInt(); squad. setSquadName(name); squad. setSquadWins(wins); squad. setSquadLosses(losses); if (squad. getLossPercentage() < 0.5) { System. out. println("Congratulations, Squad " + squad. getSquadName() + " has a winning average!"); } else { System. out. println("Squad " + squad. getSquadName() + " has a losing average."); } } }

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:00
What is one way in which tablets differ from laptops and notebooks? tablets are designed for touch-based interaction. tablets are designed to be used as desktops. tablets are designed for input via a keyboard and mouse. tablets are designed to be larger than laptops.
Answers: 1
question
Computers and Technology, 22.06.2019 21:00
Kirk found a local community college with a two-year program and he is comparing the cost with that of an out-of-state two-year school. what is the expected total cost for one year at the local community college if kirk lives at home? what is the expected total cost for one year at the out-of-state school if kirk lives on campus?
Answers: 2
question
Computers and Technology, 24.06.2019 01:10
Create a program that will take in a single x and y coordinate as the origin. after the input is provided, the output should be all of the coordinates (all 26 coordinates read from the “coordinates.json” file), in order of closest-to-farthest from the origin.
Answers: 1
question
Computers and Technology, 24.06.2019 03:00
What is one potential problem associated with an organization purchasing new technology early in its lifecycle
Answers: 1
You know the right answer?
Import java. util. Scanner; public class LosingSquad { public static void main(String[] args) { Scan...
Questions
question
Mathematics, 29.06.2019 07:00
question
Mathematics, 29.06.2019 07:00
question
Mathematics, 29.06.2019 07:00