Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

hello, this is for Programming 2 with the java language. This is a lab assignment with two parts. The 1st part I did the methods

hello, this is for Programming 2 with the java language.
This is a lab assignment with two parts. The 1st part I did the methods for the fillup array and range method. I may not be right though.. last method is supposed to calculate the mean, I did not do that part... I actually dont know if the other two is correct, Im pulling at straws..
The 2nd part is to add a constructer to a already made constructer class program called Person, and to make adjustment to call the new constructor and methods and reset thingy in the user program called StaticTest.
Here is the assignment for the Stats program and below that is my work on the program...
Below that is the assignment for the constructer class and the user class and the default work for them.
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Here is for the constructor and user class part...
image text in transcribed
image text in transcribed
Here is the default constructor program...
image text in transcribed
Here is the user default program...
image text in transcribed
Thank you so much for your help
CSC 205 Lab 2 : Array Stats Program & OOP Review Due by Monday, September 10, 2:00 PM Goals After completing this lab, you should be able to: Work with loops and arrays in Java Use and call multiple class methods and understand the value of structured programming Make use of instance methods and understand how both instance methods and class methods can be used within the same class. . Be able to differentiate between instance variables and class variables Write constructors, getters, and setters. Lab Setup Change into your Labs directory, and let's create and change into a Lab2 directory Now, let's copy over a source file I've already started for you (Stats.java) to use for your program along with a sample executable file. cp /pub/digh/CSC205/Lab2/* The Array Stats Program Two of the measures taken on a group of data are the range of data and the mean of data. The range of a group of data is defined to be the difference of the largest element and the smallest element. The mean is defined to be the average of the group of data. Complete the program Stats so that it will successfully compute the range and mean of a data set that is input by a user. Input and Output The input to your program will be n positive integers one per line from the keyboard, where 1 <>

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Sham Navathe,Ramez Elmasri

5th Edition

B01FGJTE0Q, 978-0805317558

More Books

Students also viewed these Databases questions

Question

How was their resistance overcome?

Answered: 1 week ago

Question

3. What strategies might you use?

Answered: 1 week ago