subject

The purpose of this project is to reinforce the topics for OOP covered in class. Project Requirements1. You will modify your Java Class called Sphere from project 1. Specifically, any attempt to create or set the radius to a negative value should throw an must include a main method with appropriate test(s). Remember what an appropriate level of testing includes. Your Sphere must also include javadoc comments and tags for the class, and all methods and constructors.2. You will create a new class called Project2. Project2 class will have a main method that reads a single command-line argument: the name of a file to open and process. To process this file, you will read it line-by-line and create a running Total of the double values contained in the file. When your main finishes, it should print the total number of lines, the number of lines skipped (because they were invalid or did not contain a single double value on them), the minimum value read and the largest value read. There will be boundary conditions and exceptions that your main method will need to detect and handle properly. Valid lines in a file only contain a number that is a double. If a line is blank, it should be skipped. If a line has any alpha or non-numeric characters, it should be skipped. No line will have more than one number on it. Finally, you should create a documentation. txt file. Please have the file include you name, your n# and describe how you implemented the Sphere object. What challenges did you have? How did you go about testing? What work and what does not work?

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 06:00, Wolfie215
Which of the following is a way that advancements in technology improve humans' ability to measure air quality and protect human health? a. air quality data gathered by new instruments can be used to reduce exposure to pollutants. b. new technologies enable natural and human-made pollution sources to be located and monitored. c. air quality data gathered by new instruments can be used to predict trends in pollution over time. d. new technologies allow governments to make informed decisions about the regulation of pollution. (choose more than one)
Answers: 2
image
Computers and Technology, 22.06.2019 18:30, yayamcneal05
Which cultural aspect does this type of song best portray? a german polka dance
Answers: 1
image
Computers and Technology, 23.06.2019 10:30, badpotterchris
How would you categorize the software that runs on mobile devices? break down these apps into at least three basic categories and give an example of each.
Answers: 1
image
Computers and Technology, 23.06.2019 11:00, la200564
How should you specify box sizes on a web page if you want the boxes to vary according to the font size of the text they contain? a. in pixels b. in inches c. as percentages d. in em units
Answers: 2
You know the right answer?
The purpose of this project is to reinforce the topics for OOP covered in class. Project Requirement...

Questions in other subjects:

Konu
Mathematics, 22.09.2019 05:30
Konu
Mathematics, 22.09.2019 05:30
Konu
Biology, 22.09.2019 05:30
Konu
Mathematics, 22.09.2019 05:30