Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

data file is two pages of numbers ranging from 0-999. no arrays please. one number per line. 2. Complete #10 on page 264 with these

image text in transcribed
data file is two pages of numbers ranging from 0-999.
no arrays please.
one number per line.
2. Complete #10 on page 264 with these changes (call it NumberData.java): (7) read the data from this file determine and display the sum of all numbers in the file-display with commas in the proper place i.e. every 3rd digit) determine and display the average of all numbers in the file - display to 3 decimal places. determine and display the number of positive numbers in the file determine and display the number of negative numbers in the file determine and display the number of multiples of 5 in the file (a multiple of 5 is evenly divisible by 5) request from the user a lower bound and upper bound - your program will display all values in this range. for example: if your user enters a lower bound of 5 and an upper bound of 100, your program will display all values that fall in this range (inclusive) Do all of this work in one loop. It is cumbersome to close and reopen the file. NOTE WELL: You will NOT use a data structure for this assignment, you will NOT use a data/service class for this assignment

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions