Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Chapter 7 Programming Challenge 1 1 Array Operations Added Specifications: Must use Ch 0 7 Pc 1 1 _ ArrayDataTEMPLATE.java and Ch 0 7 Pc

Chapter 7 Programming Challenge 11 Array Operations
Added Specifications:
Must use Ch07Pc11_ArrayDataTEMPLATE.java and Ch07Pc11_ArrayTestTEMPLATE.java as a starting point found in Canvas Module area with these instructions.
Must create a class ArrayData for the methods defined in the textbook.
Must create a class ArrayTest to exercise methods defined in ArrayData.
Must submit both your ArrayData file and ArrayTest demonstration file.
(See Canvas > Announcements for naming convention when submitting multiple files)
ArrayData must be usable without instances.
ArrayData methods must scan arrays "up", from lower indexes to higher.
ArrayData methods must use loop counters that count down.
ArrayData methods shall assume that the arrays are of ints.
Must not have the same conceptual task coded in more than one place.
Input is read from the ArrayVals.txt file
(Create the file with the values: 51549070-52)
-- note that it is far easier to place this file in your program folder.
Code cannot exploit any "insider knowledge" of the contents of ArrayVals.txt file, other than it being a file of ints.
ArrayTest has getInput() method that reads the ArrayVals.txt file and passes values back to main() via a return statement.
ArrayTest has output() method that receives the values and displays a report of the lowest, highest, total, count, and average of the numbers by directly calling the appropriate class methods.
Bonus: ArrayData calculates the total, highest, and lowest by using a single loop. Array Test Template:

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_2

Step: 3

blur-text-image_3

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

Database Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions

Question

what is cloud computing service changing

Answered: 1 week ago