PC Review

Thread Tools Rate Thread

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

New Member
Join Date: Aug 2012
Posts: 1
      10th Aug 2012
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
Reply With Quote
4x4 Cruncher
feckit's Avatar
Join Date: Jan 2006
Location: Plant Earth
Posts: 11,009
      26th Aug 2012
is this home/college work which you want us to do for you?

Reply With Quote
Excel Formulator
alow's Avatar
Join Date: Mar 2012
Location: US
Posts: 758
      26th Aug 2012
He's just practicing for life in the real world, where you google all your work instead of knowing what to do!

Reply With Quote
sugar 'n spikes
floppybootstomp's Avatar
Join Date: Mar 2002
Location: Greenwich
Posts: 18,327
      26th Aug 2012
Originally Posted by alow View Post
He's just practicing for life in the real world, where you google all your work instead of knowing what to do!
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

Don Van Vliet 1941 - 2010. And the acid gold bar swirled up and down, up and down.
Reply With Quote

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
hiding values that havent been used yet =?Utf-8?B?Y2hhcmxpZWZvcnR1bmU=?= Microsoft Excel New Users 2 6th Dec 2004 04:12 PM
what is mss32.dll and why havent i got 1 =?Utf-8?B?bWFqZXN0eWsyNQ==?= Windows XP Help 4 26th Jun 2004 06:48 PM
Solutions havent worked :( Rob Racki Windows XP General 2 6th Apr 2004 05:42 AM
IE displays websites that i havent visited faheem Windows XP Internet Explorer 2 15th Jan 2004 02:43 PM
cant start windows xp bacause i havent the password zina Windows XP Security 1 7th Dec 2003 11:04 AM




All times are GMT +1. The time now is 03:45 PM.