Prepare an output file with contents of your nested array

Assignment Help JAVA Programming
Reference no: EM132756097

Java Assignment -

Learning Objectives

Putting together a small project with input file and output file

If you choose Java, a review of Java concepts

- Java array type, and 2D arrays

- Creating classes, and instantiating them

Problem Description - A record label executive received text files that contain the top streamed music artists during certain weeks. In order for their in house IT to be able to process the information, they need someone to help process it.

Data Representation - Each file is a text file (data comes from SpotifyCharts.com) in comma separated value (CSV) format. It contains a list of records, line by line, column delimiters are written with a , symbol. Each record is one track by an artist (one track means one song). An artist's name might appear multiple times in a single file.

Each text file is a comma separated value (CSV) file that has a few columns like the following table. Each line in the text file represents one song.

Create a Report: Who appears on the top streamed list?

First, the exec wants to know which artists appears on the list and how many times they appear. Assuming you don't know any data structures yet, it seems the way to proceed to find the answer is with Java arrays.

1. Read in the text file and then save the fields into a nested Java array like myList below.

/* Java nested array syntax */

int cols = 4; // arbitrary number represents columns to create

int rows = 10; // arbitrary number represents rows to create;

String[][] myList = new String[rows][cols];

int[][] arr = { { 1, 2 }, { 3, 4 } };

System.out.println("arr[0][0] = " + arr[0][0]);

Will you limit to just the artist name? Perhaps you can discuss your decision with your class colleagues.

2. If an artist appears multiple times, then that artist probably should only appear once in your nested array.

3. Prepare an output file with contents of your nested array so that the record label executive can see this report.

Create a Report: Who appears on the top streamed list?

1. First, the exec wants to know which artists appears on the list and how many times they appear. Assuming you don't know any data structures yet, it seems the way to proceed to find the answer is with Java arrays.

1. Read in the text file and then save the fields into a nested Java array like myList below.

/* Java nested array syntax */

int cols = 4; // arbitrary number represents columns to create

int rows = 10; // arbitrary number represents rows to create;

String[][] myList = new String[rows][cols];

int[][] arr = { { 1, 2 }, { 3, 4 } };

System.out.println("arr[0][0] = " + arr[0][0]);

2. Prepare an output file with contents of your nested array so that the record label executive can see this report.

3. If an artist appears multiple times, then that artist probably should only appear once in your nested array.

4. Alphabetize the names of artists produced

5. Return list of artists produced

Reference no: EM132756097

Questions Cloud

Implement and analyse a data warehouse : Implement and analyse a Data Warehouse (DW) for Electronics For You, one of the biggest electronics store chains in NZ - Building and Analysing a DW
Compute and display the amount of energy consumed : Compute and display the amount of energy consumed by each allocation and Design and develop a new program to work with the two input data files.
How the principles of learning theory may be used to account : Post a brief description of the crimes you selected. Explain each crime by applying a specific learning theory, using a different theory for each.
Compare compliance and collaboration : Identify the health care professionals' role in compliance and give examples of ways in which the health care professional may actually contribute.
Prepare an output file with contents of your nested array : Prepare an output file with contents of your nested array so that the record label executive can see this report - Alphabetize the names of artists produced
Discuss the consequences of a failure to report : Discuss the consequences of a failure to report. Explain the impact his decision had on patient safety and organizational performance.
Investigate and explain the relevant issues in auditing : Investigate and explain the relevant issues in Auditing and Accounting raised by the case - Any problems, mistakes or misrepresentations made by the defendants
What are the consequences if not followed properly : Respond to the following in a minimum of 175 words: Why is it important to ensure proper exchange of electronic data? What are the consequences if not followed.
Evaluating the professional conduct of a nurse : Critical Analysis Essay of a Case Study - identify and summarise the professional practice issues in the case study from either a nursing or midwifery practice

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd