Store the grades that you read in an arraylist

Assignment Help Data Structure & Algorithms
Reference no: EM13698822

Question: We expect the file to contain grades represented by integer values, one per line. If you encounter a value that is not an integer, you should throw an exception, print a message to the console, skip that value, and continue processing. Store the grades that you read in an ArrayList so that all the grades are available for retrieval.

You should also have, as a minimum:

  • A constructor with just one parameter, the file name
  • Mutator
  • Accessor
  • toString().
  • Method that return the highest grade
  • Methods that return the grade average
  • Method that return the lowest grade
  • Method that return all the grades as an array of letter grades.

Test your class with a client class.

Reference no: EM13698822

Questions Cloud

Determines the largest value : Write a program Largest that reads three integers from the user and determines the largest value - Write a program InOrder that reads three integers from the user and prints the three integers in sorted order.
Write a program to play a game of craps : Write a program to play a game of "craps," a dice game popular in casinos. Here are the rules - Use functions appropriately. The program should allow the user to play another round.
Find the initial concentration of the weak acid or base : Question- Find the initial concentration of the weak acid or base in an aqueous solution of pyridine (C5H5N) with a pH of 8.81. Kb=1.80x10^-9. Answer in units of mol/L.
Calculate the molarity of h2c2o4 in xalic acid : Question- Calculate the molarity of H2C2O4 in 0.2 M oxalic acid (H2C2O4) if Ka1= 0.059, Ka2=6.5x10^-5, and Kw=1x10^-14. Answer in units of mol/L.
Store the grades that you read in an arraylist : We expect the file to contain grades represented by integer values, one per line. If you encounter a value that is not an integer, you should throw an exception, print a message to the console, skip that value, and continue processing.
A reaction is second order with respect to a : Question- A reaction is second order with respect to [A] and first order with respect to [B]. If the [A] is decreased by a factor of 3 while [B] remains constant, by what factor will the rate change
Find smallest element and its index : Write a C++ program that inputs 10 integers into an array and displays the inputs, the smallest element and its index
What was the mass percent of arsenic trichloride : o this solution was added 1.670 grams of KI and 50.00 mL of a 0.00850 M KIO3 solution. The excess I3- was titrated with 50.00 mL of a 0.02000 M Na2S2O3 solution. What was the mass percent of arsenic trichloride in the original sample
Allow a user to manage the inventory of a small store : Write a C++ program that will allow a user to manage the inventory of a small store.  The inventory for the small store will contain the following information for each product in the inventory:

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Question about edge connectivity

The edge connectivity of an indirected graph is minimum number k of edges that must be removed to disconnect the graph.

  Data structures for a single algorithm

Data structures for a single algorithm

  In this assignment you are to write a program that analyzes

in this assignment you are to write a program that analyzes a selection of text counting the number of times each word

  Design a linear-time algorithm

Design a linear-time algorithm that verifies that the height information in an AVL tree is correctly maintained and that the balance property is in order.

  Conceptual model entity relationship diagram

Assume you are asked you to create a new entity-relationship diagram for a corporation for a customized shipment tracking system.

  Steps of asymmetric encryption algorithms to read message

Using only asymmetric encryption algorithms write down any steps taken by Bob which permit him to read the message.

  Devise a linear-time algorithm to count the parallel edges

Devise a linear-time algorithm to count the parallel edges in a graph. Write the algorithm in pseudocode.

  List of common data structures

Make a list of some of the common data structures provided by C#. You should have a minimum of 4 different data types.

  Analyzing certain software properties affects

Describe how the lack of metrics for analyzing certain software properties affects the software engineering discipline.

  Create algorithm which takes as inputs matrices

Create the algorithm which takes as inputs, matrices C, D, and vertex indices i and j, and returns minimum-cost path from vertex i to vertex j.

  Determine how long the specific algorithms take

Some problems can be theoretically solved (we can explain the algorithm solving problem). How long does the specific algorithms take?

  Creating database for charity event

Your Project is to organize a charity event. You must use at least two events, one of which must be a Windows program such as Word, WordPad, or Paint.

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