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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:30
In my email i got a message it says a quick message and in message details on who its from its says nicole and under nicole is [email protected] -
Answers: 1
question
Computers and Technology, 23.06.2019 01:50
Create a class named majors that includes an enumeration for the six majors offered by a college as follows: acc, chem, cis, eng, his, phys. display the enumeration values for the user, then prompt the user to enter a major. display the college division in which the major falls. acc and cis are in the business division, chem and phys are in the science division, and eng and his are in the humanities division. save the file as majors.java.
Answers: 2
question
Computers and Technology, 23.06.2019 17:00
What does the faves button do? a. users mark a web page as a favorite b. leads other readers to favor a specific page c. readers sort and align their favicons, or favorite icons d. leads users to a message board where they can post questions
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
What are two ways to access the options for scaling and page orientation? click the home tab, then click alignment, or click the file tab. click the file tab, then click print, or click the page layout tab. click the page layout tab, or click the review tab. click the review tab, or click the home tab?
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
question
Mathematics, 22.04.2020 23:00
question
Mathematics, 22.04.2020 23:00
question
Arts, 22.04.2020 23:00
question
Computers and Technology, 22.04.2020 23:00
Questions on the website: 13722362