Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ion: (5 points)Writ a program named ArrayRandom.java. This program defines 10 elements integer array, then assign random numbers between 60 and 100 to each of

ion:
(5 points)Writ a program named ArrayRandom.java. This program defines 10 elements integer array, then assign random numbers between 60 and 100 to each of the element, then perform the following tasks: 1. find the smallest number, 2. find the largest number 3. calculate average Then printout the the three numbers as follows: The smallest number: 65 The largest number: 99 Average: 85 (5 points)Writ a program named ArrayRandom2.java. This program defines 10 elements integer array, then assign random numbers between 0 and 100 to each of the element, then perform the following tasks: 1. find how many of them are divisible by 3, 2. find how many of them are divisble by 21, Then printout array elements and the result as follows: [69, 33, 21, 66, 21, 15, 48, 15, 89, 9] 9 numbers in this array are divisible by 3 2 numbers in this array are divisible by 21 (5 points)Write a program (named Gradebook.java) that reads the final grades for a class. The final grades are saved in a data file. After reading in the data, calculate average grade for the whole class, find the lowest and highest, then printout the 3 numbers in a nice format. A sample data file (gradebook.txt) and output are given for testing purpose. Data file: 86 89 78 100 76 Sample output: Average: 87.80 Lowest: 76.00 Highest: 100.00 (5 points)Design a programming named CharDistribution.java, which counts how many times each of the alphabetic characters (convert lower case to upper case) appears in the data file. Then print the result as follows: A - 65 B - 99 C - 5 D - 0 ... Z - 2 

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 Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions

Question

What is the pre - clinical phase? Explain its importance.

Answered: 1 week ago

Question

internationalization of business?

Answered: 1 week ago