Question: Write a program that generates and save 100 random integers between 0 and 9 into a text file. Then read the data from the text

Write a program that generates and save 100 random integers between 0 and 9 into a text file. Then read the data from the text file to calculate and display the count for each number (0 to 9). You need to apply all programming techniques such as selection, loop, array, method and file i/o in your program. Your program should have at least three methods:

  1. A method to generate random numbers and save
  2. A method to count each number.
  3. A method to display the final count for each number.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!