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 16:30
What type of file does a cookie place on web site visitors' computers so that web site managers can customize their sites to their visitors' preferences?
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
Read this excerpt from helen keller’s autobiography, the story of my life. have you ever been at sea in a dense fog, when it seemed as if a tangible white darkness shut you in, and the great ship, tense and anxious, groped her way toward the shore with plummet and sounding-line, and you waited with beating heart for something to happen? i was like that ship before my education began, only i was without compass or sounding-line, and had no way of knowing how near the harbour was. "light! give me light! " was the wordless cry of my soul, and the light of love shone on me in that very hour. . the morning after my teacher came she led me into her room and gave me a doll. the little blind children at the perkins institution had sent it and laura bridgman had dressed it; but i did not know this until afterward. when i had played with it a little while, miss sullivan slowly spelled into my hand the word "d-o-l-l." i was at once interested in this finger play and tried to imitate it. when i finally succeeded in making the letters correctly i was flushed with childish pleasure and pride. running downstairs to my mother i held up my hand and made the letters for doll. i did not know that i was spelling a word or even that words existed; i was simply making my fingers go in monkey-like imitation. in the days that followed i learned to spell in this uncomprehending way a great many words, among them pin, hat, cup and a few verbs like sit, stand and walk. based on this excerpt, which words best describe helen keller?
Answers: 2
question
Computers and Technology, 24.06.2019 15:50
Subscribe to j p g a m e t u b e on you tube ?
Answers: 2
question
Computers and Technology, 24.06.2019 17:30
Click on the tab on the ribbon to open the backstage view. file view insert review
Answers: 1
You know the right answer?
The purpose of this project is to reinforce the topics for OOP covered in class. Project Requirement...
Questions