please help me with this, i havent a clue what to do!

Discussion in 'Webmaster / Programming' started by lewishorsey92, Aug 10, 2012.

  1. lewishorsey92

    lewishorsey92

    Joined:
    Aug 10, 2012
    Messages:
    1
    Likes Received:
    0
    You must complete all the following tasks:
    • Display a welcome message and a menu of operations (see below).
    • Assume the current folder is always "C:\Windows"
    • Prompt the user to select one of the operations:
    1. Full File Listing: Display the filenames and lengths of all the files in the current folder. The format for the directory listing should be like this:
    Files in: C:\Windows

    File 1: explorer.exe : Filesize:2871808
    File 2: ODBC.ini : Filesize:376
    File 3: winhlp32.exe : Filesize : 9728
    ...
    2. Filtered File Listing: ask the user to enter one of "exe", "ini" or "log". Display only the files in the current folder that match that filter. The display should be formatted in the same way as the full file listing, except you should also display the filter used.
     Tip: This is fairly straightforward - when you use the method GetFiles you can pass it a filter string, e.g: GetFiles("*.exe")

    3. Folder Statistics: Display the following statistics about all the files in the current folder. Do not list any files in this case.
    Files in: C:\Windows
    Number of files in folder: 49
    Smallest file: setuperr.log : 0 bytes
    Largest file: explorer.exe : 2871808 bytes
    Total size of all files: 7121424 bytes

    4. Quit, to exit the program
    • After each operation (except 4) is complete wait for the user to press a key to continue, displaying an appropriate message to this effect. After the key press, the program should clear the screen, then return to the welcome message and the user may select another operation.
    • Your program must validate user input:
    o Check for mistakes in the user input and in each case display an error message and allow the user to provide the input again
    o For example, on the main menu the user is given the options 1, 2, 3 or 4. If the user enters 7, then display “Sorry, you must enter 1,2,3 or 4” and then allow the user to make a choice again
     
    lewishorsey92, Aug 10, 2012
    #1
    1. Advertisements

  2. lewishorsey92

    feckit 4x4 Cruncher VIP Member

    Joined:
    Jan 14, 2006
    Messages:
    11,097
    Likes Received:
    3
    Location:
    Plant Earth
    is this home/college work which you want us to do for you?:lol:
     
    feckit, Aug 26, 2012
    #2
    1. Advertisements

  3. lewishorsey92

    alow Excel Formulator VIP Member

    Joined:
    Mar 20, 2012
    Messages:
    759
    Likes Received:
    0
    Location:
    US
    He's just practicing for life in the real world, where you google all your work instead of knowing what to do! :thumb:
     
    alow, Aug 26, 2012
    #3
  4. lewishorsey92

    floppybootstomp sugar 'n spikes Moderator

    Joined:
    Mar 5, 2002
    Messages:
    18,339
    Likes Received:
    6
    Location:
    Greenwich
    I'd never looked at it like that, lol

    Still, Google won't get you far holding down a real job in a real situation, the organic grey matter needs to have a few 0's & 1's of it's own stored in there ;)

    lewishorsey (who's yo Daddy? Mr Ed?) somebody here may be able to help you out, good luck, but next time pay more attention in class :D
     
    floppybootstomp, Aug 26, 2012
    #4
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. mistymoo1975

    Help needed with Publisher!!! please!!

    mistymoo1975, Mar 6, 2008, in forum: Webmaster / Programming
    Replies:
    0
    Views:
    753
    mistymoo1975
    Mar 6, 2008
  2. gennyl

    Help for an Amateur Please?

    gennyl, Apr 14, 2008, in forum: Webmaster / Programming
    Replies:
    6
    Views:
    966
    SlimJim
    Apr 30, 2008
  3. cliveshelly
    Replies:
    2
    Views:
    787
    shazbat99
    Jul 24, 2008
  4. lave024

    Excel Help Please

    lave024, Sep 7, 2010, in forum: Webmaster / Programming
    Replies:
    0
    Views:
    677
    lave024
    Sep 7, 2010
  5. suzzette73

    VB Code help for Excel 2003 - Please Help

    suzzette73, Nov 13, 2010, in forum: Webmaster / Programming
    Replies:
    0
    Views:
    581
    suzzette73
    Nov 13, 2010
Loading...

Share This Page