Discuss the problem of the comma-separated values

Assignment Help Basic Computer Science
Reference no: EM131608855

Question: A comma-separated values (CSV) file is a simple text format used to store a list of records. A comma is used as a delimiter to separate the fields for each record. This format is commonly used to transfer data between a spreadsheet or database. In this Programming Project, consider a store that sells five products abbreviated as A, B, C, D, and E. Customers can rate each product from 1-5, where 1 is poor and 5 is excellent. The ratings are stored in a CSV file where each row contains the customer's rating for each product. Here is a sample file with three customer ratings:

A, B, C, D, E

3, 0, 5, 1, 2

1, 1, 4, 2, 1

0, 0, 5, 1, 3

In this file format, the first line gives the products. The digit 0 indicates that a customer did not rate a product. In this case, the first customer rated A as 3, C as 5, D as 1, and E as 2. Product B was not rated. The third customer rated C as 5, D as 1, and E as 3. The third customer did not rate A or B. Create a text file in this format with sample ratings. Then, write a program that reads in this text file and extracts each rating using the String Tokenizer class. Finally, the program should output the average rating for each product. Customers that did not rate a product should not be considered when computing the average rating for that product. Your program can assume there will always be exactly five products but it should work with an arbitrary number of customer ratings.

Reference no: EM131608855

Questions Cloud

Value of their stock when the required rate of return : What is the value of their stock when the required rate of return
When the situation doesnt warrant humor : When the situation doesn't warrant humor - don't use it. But what if a humorous remark has always worked for you but then one day
Maximum allowable payback period is three years : Compute the payback statistic for Project B if the appropriate cost of capital is 12 percent and the maximum allowable payback period is three years.
Create a project management plan for your client : Create a project management plan for your client that outlines how you will implement the HRIS in Gladwell Grocery Stores.
Discuss the problem of the comma-separated values : A comma-separated values (CSV) file is a simple text format used to store a list of records. A comma is used as a delimiter to separate the fields.
Prepare an income statement and retained earnings statement : Prepare an income statement, retained earnings statement, and balance sheet analyzing your findings using the questions below, in a total of 1,050 words.
Calculate the equity multiplier : Calculate the equity multiplier.
State the purpose for government mandates : Give three (3) examples of penalties that organizations induce when they fail to comply with government mandates such as OSHA or EEO.
Company existing reporting systems : What are some workarounds to get data if not provided by the company's existing reporting systems?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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