Input File open validation and average

  • Status: Closed
  • Prize: $25
  • Entries Received: 7

Contest Brief

Declare the file stream objects at the same place you declare all other variables (on the top of the block, above the banner section).
Have the stream object "connected" to the file for the smaller possible time. I.e. open just before you are about to use the file and close the connection as soon as you are done (not at the end of the program)
When reading from a file you may assume that the data in the file are the correct type (integers), so no ignore needed and you can read them in the same extraction statement (since there is no prompt).
Remember that the input file should be in the SAME folder as your program

Recommended Skills

Top entries from this contest

View More Entries

Public Clarification Board

  • babarrana327
    babarrana327
    • 4 years ago

    @Youness Z.
    if you want to add on i can do that too...

    • 4 years ago
  • babarrana327
    babarrana327
    • 4 years ago

    task done

    • 4 years ago
  • Southbite
    Southbite
    • 4 years ago

    Are there system requirements for this (like must run on Windows or Linux)?

    • 4 years ago
    1. Southbite
      Southbite
      • 4 years ago

      Also, is there an expected format for the input (the file being read)?

      • 4 years ago

How to get started with contests

  • Post your contest

    Post Your Contest Quick and easy

  • Get tons of entries

    Get Tons of Entries From around the world

  • Award the best entry

    Award the best entry Download the files - Easy!

Post a Contest Now or Join us Today!