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

Home » ASP Home » ADO Home » Resistor color code reader

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

Search Projects & Source Codes:

Title Resistor color code reader
Author A.Chermarajan.
Author Email chermarajan [at] yahoo.co.in
Description This program is for resistor color code useful for basic Electronic students.Just mention the color code for resistor program gives the exact value for it. If the value might be greater itself onvert to Kilo or Mega ohm as per.
Category ASP » ADO
Hits 19263
Code Select and Copy the Code
Code : #include<conio.h> #include<iostream.h> #include<string.h> #include<process.h> void main() { start: clrscr(); int i; float r=0; char a[10],b[10],c[10],d[10]; cout<<"_____________________________!Color code Reader 1.0!____________________________"; cout<<"Design by:A.Cherma rajan.BE.,"; cout<<"Enter your Resister colour code here "; cout<<"Code 1:"; cin>>a; cout<<"Code 2:"; cin>>b; cout<<"Code 3:"; cin>>c; { if(!(strcmp(a,"black"))) r=0; else if(!(strcmp(a,"brown"))) r=10; else if(!(strcmp(a,"red"))) r=20; else if(!(strcmp(a,"orenge"))) r=30; else if(!(strcmp(a,"yellow"))) r=40; else if(!(strcmp(a,"green"))) r=50; else if(!(strcmp(a,"blue"))) r=60; else if(!(strcmp(a,"violet"))) r=70; else if(!(strcmp(a,"gray"))) r=80; else if(!(strcmp(a,"white"))) r=90; } { if(!(strcmp(b,"black"))) r+=0; else if(!(strcmp(b,"brown"))) r+=1; else if(!(strcmp(b,"red"))) r+=2; else if(!(strcmp(b,"orenge"))) r+=3; else if(!(strcmp(b,"yellow"))) r+=4; else if(!(strcmp(b,"green"))) r+=5; else if(!(strcmp(b,"blue"))) r+=6; else if(!(strcmp(b,"violet"))) r+=7; else if(!(strcmp(b,"gray"))) r+=8; else if(!(strcmp(b,"white"))) r+=9; } { if(!(strcmp(c,"black"))) r*=1; else if(!(strcmp(c,"brown"))) r*=10; else if(!(strcmp(c,"red"))) r*=100; else if(!(strcmp(c,"orenge"))) r*=1000; else if(!(strcmp(c,"yellow"))) r*=10000; else if(!(strcmp(c,"green"))) r*=100000; else if(!(strcmp(c,"blue"))) r*=1000000; else if(!(strcmp(c,"violet"))) r*=10000000; else if(!(strcmp(c,"gray"))) r*=100000000; else if(!(strcmp(c,"white"))) r*=1000000000; } cout<<"Colour code value for your Resister:"; if(r/999999>=1) cout<<r/1000000<<" M"; else if(r/999>=1) cout<<r/1000<<" K"; else cout<<r<<" "; char ch=234,op; cout<<ch; cout<<" Continue (y/n):"; cin>>op; if(op=='y') goto start; else exit(1); getch(); }

Related Source Codes

Script Name Author
ııııııııııııııııııııı VyomWorld
Telephone Directory dhivya
card swapping game (Mini Project) nityanand
simple hangman-pascalsource Seabert
college dirtectory (Mini Project) msridhar
Poll Application John van Meter
ASP Daily Hit Counter. Tejaskumar Gandhi
To avoid null in asp environment using sql Sami
Maklumbalas webmaster
poll John van Meter
EasyASP Template Engine. TjoekBezoer
Basic Calculator using HTML & Javascript. Patrick M. D Souza
What servers support ASP ? VyomWorld
What is ASP? VyomWorld
European Weeknumber menno

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
Copyright ©2003-2015 SourceCodesWorld.com, All Rights Reserved.
Page URL: http://www.sourcecodesworld.com/source/show.asp?ScriptId=1209


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