Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Problem The next three assignments will analyze the statistics from the Auburn W

ID: 3813409 • Letter: P

Question

Problem The next three assignments will analyze the statistics from the Auburn Women's Basketball 2016-2017 season. The first report contains a table with the date, Auburn score, opponent score and W or L for an Auburn win or loss. The season record will be presented in a table and graphs Instructions for all assign scripts O See Standards for Documentation of MATLAB Programs on the Canvas Resources page O Insert comments at the top and throughout each fil Include the follow comments at the beginning of this (and A submitter's name, GROUP or none Grade of ZERO for files with submitter name not part of Canvas group. Not in a group? GROUP is none other group members' names or none For your own protection, type none" if submitting alone program file name, ext. assign02a.m ALL STUDENTS' NAMES MUST MATCH NAMES ON CANVAS. due date of the assignment statement(s) about collaboration Zero points for comments if no collaboration statement a short narrative about what the file does o Use the algorithm given as comments throughout your program. 5 points for absence of any of O Observe the instructor's rule for naming variables. these required comments at the o UUse ALL CAPS for constants variable names top at the top of each file. o Start other variables with lower case o Use descriptive variable names Use Sample Input/Output as a guide If you do not submit individually, there O Code clari will be Indent blocks as needed. Use Smart Indent. a 5 POINTS PENALTY for not joining a o Divide your solution program code into sections as noted in the algorithm group on Canvas. Groups can be 2-4 students. Use blank lines as needed to group statements DO NOT join a group unless you hav o Use section comments as well as the algorithm step comments. worked with the other members. If you do, Use comments to show units ou will be removed from the group and clear all to clear previous run output. Use clc given the grade of zero. Use the CONSTANT and variable names, not numbers No extra output use, i e. use semicolons Program: assign08.m iven function names for the functions. You may use different variable names Use the getstats (filename) read data file and return stats function [date, code, home, score print and graph summary function print Report (date code home score) print stats function printstats (date, score, nGames) print stat table function seasonRecord (code, home score) print and graph the season record. otice that there is no file named printstats or seasonRecord because these are subfunctions that are used by and located in the printReport file. 1-In assign08. m, make sure the data file exist and only use the filename get Stats functions to do the tasks, if the file is available 2-In get Stats, read auburn wbb stats 2017.txt into date,code home,score matrices and vectors as instructed See below, only save items in red in FIGURE 1 date, code home, score 3-In print Report, use printstats to print a table of all games as printReport assign08 hown below. Use seasonRecord to print and graph the season date,code,nGames record. printstats 4-In printstats, print date, scores, and W or L for Auburn win or loss. See output below. ode, home, score 5-In seasonRecord, print a table for the season record, number of printUnits Auburn wins and losses. Create 3 pie charts on one figure for the OVERALL for all games, conference games, and non- conference games. COMP1200 2017sp- assi p. 1 of 2

Explanation / Answer

import java.util.List;
import java.util.Scanner;

public class Maze {

   ArrayList lines;
//   int row, column;
   int rows, columns;
   int width, height;
   public Position packmanPos;
   public Position ghostPos;
   public ArrayList pills, powerPills;
  
   public Maze(int m) {
       //maze txt. file load
       try {
           pills = new ArrayList();
           powerPills = new ArrayList();
           lines = new ArrayList();
           Scanner s = new Scanner(new File("mazes/"+m));
           int r = 0;
           while (s.hasNextLine()) {
               String line = s.nextLine();
               lines.add(line);
               if (line.contains("4")) {
                   ghostPos = new Position(r, line.indexOf('4'));
               }
               if (line.contains("5")) {
                   packmanPos = new Position(r, line.indexOf('5'));
               }
               for (int i=0; i                    if (line.charAt(i) == '2') {
                       pills.add(new Position(r, i));
                   } else if (line.charAt(i) == '3') {
                       powerPills.add(new Position(r, i));
                   }
               }
               r++;
           }
           s.close();
          
           rows = lines.size();
           columns = lines.get(0).length();
          
           width = columns*2;
           height = rows*2;
          
       } catch (FileNotFoundException e1) {
           e1.printStackTrace();
       }
   }

   public char charAt(int r, int c) {
       return lines.get(r).charAt(c);
   }

   public char[][] getCells() {
       char[][] cells = new char[rows][columns];
       for (int r=0; r            System.arraycopy(lines.get(r).toCharArray(), 0, cells[r], 0, columns);
       }
       return cells;
   }

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote