Kirk Coolbeth: In what programming language? More importantly though, do your own homework!
Jimmie Doerfler: This might give you an idea or two:-
Shane Getler: Well, let's break it down. To use the calculator program, there are basic steps you take. First, you input numbers and the operators in sequence (input). Next, when you hit the equals sign (equivalent of a 'GO!' button), the calculator processes the data and calculates the total (processing). In order to process the data, it must use storage systems to store the numbers and operators (storage). Finally, the calculator displays the answer...outputting it into the box (output). Therefore, the calculator program (and essentially every other program in existence) uses: input, output, processing, and storage....Show more
Anton Waln: I haven't worked on C language but the "C++" program written could help you to write your computer in c language:-----------------------------------------------#include #in! clude void main(){clrscr(); int no1, no2, total; char op; cout cin >>no1 >>no2; switch( op ) { case '+': total= no1+no2; cout break; case '-': total= no1-no2; cout break; case '*': total= no1*no2; cout break; case '/': total= no1/no2; cout break; case 'n': exit(0); default: cout } getch();}...Show more
Caryl Mclaen: in c language
Cody Petrulis: Gosh, you're hopeless. I've already given you a program which does what you're asking in a less retarded way over here:http://answers.yahoo.com/question/index;_ylt=AoC18...It's obvious that your primary goal is to learn to program with C and not to write small, useless programs. My question to you is: Why the hell are you requesting source code for a program you've already received source code for? If you're unable to modify my program to make it work in your inferior way, then this clear! ly isn't a good exercise for you. Get a copy of "The C Program! ming Language (Second Edition)" by Kernighan and Ritchie, and dump whatever crappy learning method you initially had for learning C....Show more
No comments:
Post a Comment