I'm coding a simulation of a sports game, and it works fine for the most part; compiles and runs like it should. The directions ask that I I assume that I am supposed to be using printf and %.2f, but whenever I try to incorporate that into my code, it ceases to run properly. Help would be much appreciated!
import java.util.Scanner;
public class Team {
public String name;
public String location;
public double offense;
public double defense;
public Team winner;
public Team(String name, String location) {
  this.name = name;
  this.location = location;
  this.offense = luck();
  this.defense = luck();
}     
public double luck() {
    return Math.random();
}
Team play(Team visitor) {
    Team winner;
    double home;
    double away;
    home = (this.offense + this.defense + 0.2) * this.luck();
    away = (visitor.offense + visitor.defense) * visitor.luck();
    if (home > away)
      winner = this;
    else if (home < away)
      winner = visitor;
    else
      winner = this;
    return winner;
}
public static void main(String[] args) {
  Scanner s = new Scanner(System.in);
    System.out.println("Enter name and location for home team (on separate lines)");
                         String homeName = s.next();
                         String homeLocation = s.next();
                         Team homeTeam = new Team(homeName, homeLocation);
    System.out.println("Enter name and location for home team (on separate lines)");
                         String awayName = s.next();
                         String awayLocation = s.next();
                         Team awayTeam = new Team(awayName, awayLocation);
    Team winnerTeam = homeTeam.play(awayTeam);
    System.out.printf("Home team is:" + homeName + " from" + homeLocation + " rated" + homeTeam.offense + " (offense) +" + homeTeam.defense + " (defense)" + "\n");
    System.out.printf("Away team is:" + awayName + " from" + awayLocation + " rated" + awayTeam.offense + " (offense) +" + awayTeam.defense + " (defense)" + "\n");
    System.out.printf("Winner is:" + winnerTeam.name + " from" + winnerTeam.location + " rated" + winnerTeam.offense + " (offense) +" + winnerTeam.defense + " (defense)" + "\n");
}
 
     
    