Member Avatar for Salma_6

Ask the user to enter

  • Name
  • ID
  • File Name

Randomly choose five grades for that person from 1 to 100 and store them in an array that can hold five integers.
Then output the name, ID, and those five grades to the screen and save the output into the specified file.

The file will look like:

220181234
Ahmed Ihab

Grade 1 : 60
Grade 2 : 75
Grade 3 : 30
Grade 4 : 96
Grade 5 : 63

Note:
Write the File using BufferedWriter

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.