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, 23.06.2019 15:00
Based on the current economic situation do you expect the employment demand for graduating engineers to increase or decrease? explain the basis for your answer. with a significant economic recovery, what do you think will happen to future enrollments in graduating engineering programs?
Answers: 1
question
Computers and Technology, 24.06.2019 21:30
How do i copy and paste equations and pictures like math graphs, to post on this site to get my questions answered?
Answers: 2
question
Computers and Technology, 24.06.2019 21:30
The hybrid uses 144 to 158 volt batteries.
Answers: 1
question
Computers and Technology, 24.06.2019 21:40
Clunker motors inc. is recalling all vehicles in its extravagant line from model years 1999β€”2002 as well as all vehicles in its guzzler line from model years 2004β€”2007. a boolean variable named recalled has been declared. given a variable modelyear and a string modelname, write a statement that assigns true to recalled if the values of modelyear and modelname match the recall details and assigns false otherwise.
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, 24.06.2019 14:00
question
Computers and Technology, 24.06.2019 14:00
question
Mathematics, 24.06.2019 14:00
question
Mathematics, 24.06.2019 14:00
Questions on the website: 13722361