C Programming CS 2123
Popular in Course
Popular in ComputerScienence
This 12 page Class Notes was uploaded by Miss Alden Shanahan on Tuesday October 20, 2015. The Class Notes belongs to CS 2123 at Southern Polytechnic State University taught by Kai Qian in Fall. Since its upload, it has received 37 views. For similar materials see /class/225455/cs-2123-southern-polytechnic-state-university in ComputerScienence at Southern Polytechnic State University.
Reviews for C Programming
Report this Material
What is Karma?
Karma is the currency of StudySoup.
You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!
Date Created: 10/20/15
Demo Di tanc pp 1 Click start 9 programs 9 l cr0s0ft Visual Studio 2005 9 Mcrosoft Visual Studio 2005 2 Click File 9 New 9 Project mlurlavlace cmsmms Erd I In In In 1 39 7mm 3 Select Visual C and Win32 Console Application and Name the project as Distance Click OK button rmed types Tempiates a mam Visualsmdiamslalledtemnhtes A m cm s mWizard Generai cm Cansa e Avvhtannn m A Pm 5m Dexma Make ie mm wmz gm Server Prayer mertanguages am noempmm W a as z ECLRENDWPrmect fuel mm xcarm 5 3 3 MFC Smart DEVVCE Amvex Cunt mi Other PFDJEEQTVDES EEMFC Smart DEW m mam gawm s mes Cantmi uhvary ame DistaHEEi Lumoarv c Damments and semgsmmngvesmu v mwse Saiut mName39 Distance 7 meats gum rm suiuoun cam 4 Click Finish button to load the project m m vquot mm and Dana m M39an tmm ML EH53 14 7 Wm mmmc vaggk gm mm may ism oi I I 5 Delete all the lines in the page displayed and enter the following lines of code distancecpp includelt stdio hgt includelt stdafx hgt includequotconio hquot int main l float kms miles printfquotn Please Enter the Distance in miles to be converted to kms n scanfquotfquot amp miles kms miles 85 printfquotn The Equivalent distance in kms fquot kms getchltgt return 0 lxl e Bit View Prujm mid Debug Taals Windaw Immuan Heb 696 algalave va yumg vwmz V immimm V axa S9393 A lncludeltstdl anclxdeltst lian m1 e quottaxis man I 1 flea ms nules p1ntfquot Please 312 3 BlEEEnCE 1 miles 2 be D39Eei c m m acaniquotiiquot L 16115 kms nulas39 615 P1nfquotn 12 qunalem dLatance ma Eezcht recuzmon x m2 Cal 1 all INS sun Ng gm ass an gen Mmm m 015 usmp mmu 3 9 3 103PM 6 Now that we are done With writing the code Click File 9 Save Distancecpp 7 Now to compile the code click Build 9 Build Distance s 51 am View raw HEP 5 i F7 v Win32 V l m mlarlavlace v l 211 j g x E 3 Rehmldsuluoan cmwun 7 Clean samm Clean Distance Pncflquotn Please canflquotiquot x 1112 m mles39 svs Prncflquotr 1 32 Eeccnll 2 m Instead use me ISO cu unnfnmanc um 3m 7 and Serummy my 2 weznxnglsy sum succeeded u felled a uprcnrdac u SklPPEd ms s nlmi IEM IE m Inn In IL IM Imam In neskmp msvnMli ch 1 ms a6 mam 8 To Run the application click Debug 9 Start Debugging as follows Aim mew Pmen 9 v Wm V m m ar ap ace a 3 5 5 I v j Anamtquress 31 qu scepxnm m Fm areewam x flea m mnee prmrflquotn Please Er Era Distance in mzee canfkquotfquot mnee bu mles39 215 ler d13canca 11 me he 90st neee fax ch15 121 A Instead use me ISO cw emsmene neee Jen e r and Seccxnus c x 2 mummy ed a felled u upeeeeeeee u slapped m m m 1 Ch INS mint lmy In In In I I I m Ir r DemM5vm o We Waime 9 In the opened Window Enter any miles to be converted to miles and then press enter button ltdocumellts P39Pease Enter the Distance in m iTes tn be zonverted to kw The Equivaient distance in kms 72000000 Demo Distancecpn 1 Click start 9 programs 9 Microsoft Visual Studio NET 2005 9 Microsoft Visual Studio NET 2003 2 Click File 9 New 9 Project lzuEznus uisz us Twas i or pm 5 Select Visual c Projects and Win32 Console Project and Name the project as Distance Click OK button New Project x e a Project Types Iemplates E E 39v39isual Basic Projects 39 at MFC ActiveX Control Visual C Projects quot MFC Application Li 39u39isual J Projects 39 Visual c Projects Setup and Deployment Projects i Other Projects 5 39v39isual Studio Solutions quot132 PrOJect 3 v39u39indows Control Library NEI39 Ll EC i39u39indows Service NI IA Console application type of Win32 project ame I Distancel Loca on I C 39Documents and Settingsi run quotv39aclcliraju vMy Documer rowse I Project will be created at 0 5quotan j quot I mu 39Studio j 39 Mor I OK I Cancel I Help I 4 Click Finish button to load the project s 5 Elle Edit Mew Erniezt amid Debug Iaals Mndnw EE D whenlaaerwmEvaimmg m wagamau cw was Rd We pm DWSBHCE mp 5 Delete all the lines in the page displayed and enter the following lines of code distancecpp includeltstdiohgt includeltstdafxhgt includequotconiohquot int main l float kms miles printfquotn Please Enter the Distance in miles to be converted to kms scan quotfquot amp miles kms miles 85 printfquotn The Equivalent distance in kms fquot kms getch return0 4m agawzau M Benny 1m mmw help Eu Denny 6 mmhg NOW that we are done With writing the code Click File 9 Save 0 Distancecpp NOW to compile the code click Build 9 Build Distance gt1 me 39lQQ E PEv meal it 3mm 5mm ReadMe m 8 To Run the application click Debug 9 Start as follows Elle an new 2mm ma memos Anagram A Eratesses MAMHE step 1mm F l 1 Pin ne rxe Eserce 1 Jules m be curveea w ms quot1 1 9 In the opened Window Enter any miles to be converted to miles and then press enter button documents and settingsarun vaddirajumv dommems nfsud the Distance in miles to be converted to kms 45 Pl ease Enter The Equivalent distance in kms 72000000
Are you sure you want to buy this material for
You're already Subscribed!
Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'