Create a Report - Who appears on the top streamed list

Assignment Help Other Subject
Reference no: EM132625116

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

Attachment:- Java Assignment & Dtata Files.rar

Reference no: EM132625116

Questions Cloud

Academic business journal related to your area of interest : Using the library databases, select one in-depth article from a well-respected academic business journal related to your area of interest.
Advancements in science and technology : 3. Enumerate at least three advancements in science and technology during each of the following periods in history.
What is the target cost if operating income of sales : What is the target cost if operating income is 25% of sales? A competitor is bringing a new 17" monitor to market that will sell for $225.
Pros and cons for each of each advertising resources : Explain employee selection and environmental factors that affect the selection process - What are the pros and cons for each of each advertising resources.
Create a Report - Who appears on the top streamed list : Create a Report: Who appears on the top streamed list? If an artist appears multiple times, then that artist probably should only appear once in nested array
Current approaches or trends related to training : Evaluate at least three current approaches or trends related to training (in organizations), including pros and cons of each.
Discuss what is the change in operating income : Frank's Computer Monitors, Inc., currently sells 17", What is the change in operating income if marketing is correct and only the sales price is changed?
What does the discipline of sociology study : What does the discipline of sociology study?
How the entry to close the manufacturing overhead : Hill Construction Company uses a job-order costing, Explain how entry to close the Manufacturing Overhead account would affect the Cost of Goods Sold account.

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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