Add to Favorites    Make Home Page 1449 Online  
 Language Categories  
 Our Services  

Home » Pascal Home » Pascal Projects Home » Program that checks the space on drive a: and also gives a graphical representation of memory.

A D V E R T I S E M E N T

Search Projects & Source Codes:

Title Program that checks the space on drive a: and also gives a graphical representation of memory.
Description
Category Pascal » Pascal Projects
Hits 384025
Code Select and Copy the Code
{ Description: Checks the space on drive a: and also gives a graphical representation of memory. } program floppyspace; uses crt,dos,graph; { This program has been made by Ali ,only by Ali } var driver, mode : integer; theta : real; procedure test_diskfree; var freeb, spaceb : longint; drive : word; freekb, spacekb, freemb, spacemb : real; ch : char; begin writeln('Please enter disk in drive A: and press Enter'); readln; writeln('Checking capacity of DRIVE A: >'); writeln('Please wait...'); delay(1000); drive := 1 ; freeb := diskfree(drive); spaceb := disksize(drive); freekb := freeb/1024; spacekb := spaceb/1024; freemb := freeb/1024000; spacemb := spaceb/1024000; theta := (freekb/spacekb)*360; writeln; writeln('MEMORY OF DRIVE A :'); writeln(' ':20,spaceb,' B or '); writeln(' ':20,spacekb:2:2,' KB or ' ); writeln(' ':20,spacemb:2:2,' MB '); writeln; writeln('FREE SPACE ON DRIVE A :'); writeln(' ':20,freeb,' B or '); writeln(' ':20,freekb:2:2,' KB or '); writeln(' ':20,freemb:2:2,' MB '); writeln; writeln('SPACE USED ON DRIVE A :'); writeln(' ':20,spaceb-freeb,' B or '); writeln(' ':20,spacekb-freekb:2:2,' KB or '); writeln(' ':20,spacemb-freemb:2:2,' MB '); if freeb=-1 then begin writeln; writeln('Error reading disk drive!!'); writeln('make sure that the disk is properly inserted'); end else begin writeln; write('Want the graphical graphical representation ? (Y/N) >'); readln(ch); if (ch='y') or (ch='Y') then begin writeln; writeln('Press any key to show graphical representation...'); readkey; initgraph(driver,mode,'d: pgi'); rectangle(100,170,110,160); setfillstyle(closedotfill,4); bar(100,200,110,190); outtextxy(180,400,'Pie chart of available memory on floppy'); outtextxy(120,190,'Space Free'); outtextxy(120,160,'Space Occupied'); pieslice(320,240,0,round(theta),90); circle(320,240,90); settextstyle(3,0,2); outtextxy(250,19,'FLOPPY SPACE'); end else writeln('O.K! Then Bye...!'); end; end; begin clrscr; test_diskfree; readkey; end.

Related Source Codes

Script Name Author
Calendar date to day number and back Nicky McLean
Matrix Multiple Cirruse Salehnasab
Function Power Recursive Cirruse Salehnasab
swim brian colston
tetris (Mini Project) mehdi farrokhzad
Macsi - space fighting game. Macsi P�ter
Recursive Monkey Puzzle Solution - Project Maxim C.L. Wrne
Maze Game Project In Pascal Mahmood
Excellent Rat in a Maze Program. VyomWorld
A car game. You have to drive the car in such a way that you dont strike a barrier on the road. VyomWorld
Student Database Information System. VyomWorld
Tic Tac Toe Game implemented in Pascal. VyomWorld
Game to Gain more blocks by drawing appropriate lines from correct places(dots). VyomWorld
To Find The Coinage Of The Amount Entered. VyomWorld
Randomizes two 3x3 arrays and indicates the numbers whih are common in both the arrays otherwise an cross 'x' is shown instead. VyomWorld

A D V E R T I S E M E N T




Google Groups Subscribe to SourceCodesWorld - Techies Talk
Email:

Free eBook - Interview Questions: Get over 1,000 Interview Questions in an eBook for free when you join JobsAssist. Just click on the button below to join JobsAssist and you will immediately receive the Free eBook with thousands of Interview Questions in an ebook when you join.

New! Click here to Add your Code!


ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page

 Advertisements  

Google Search

Google

Source Codes World.com is a part of Vyom Network.

Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Interview Questions | Jobs, Discussions | Placement Papers | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | Arabic, French, German | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Software Testing | Google Logo Maker | Freshers Jobs

Sitemap | Privacy Policy | Terms and Conditions | Important Websites
Copyright ©2003-2024 SourceCodesWorld.com, All Rights Reserved.
Page URL: http://www.sourcecodesworld.com/source/show.asp?ScriptID=165


Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions | Quick2Host Review