| | |
Program a Calculator Using Turbo C
![]() |
•
•
Join Date: Aug 2004
Posts: 1
Reputation:
Solved Threads: 0
Iam a freshmen and we're given a task to program a calendar using turbo C
and does'nt exceed line 54 and some texts are with specific colors.(red) for the days under sunday,(light gray)for the month....
I will really appreciate your help thanks.......
Here's the format:
ex:
enter month:1
january 2004 (lightgray)
s m t w th f s
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
try again[y/n]?
and does'nt exceed line 54 and some texts are with specific colors.(red) for the days under sunday,(light gray)for the month....
I will really appreciate your help thanks.......
Here's the format:
ex:
enter month:1
january 2004 (lightgray)
s m t w th f s
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
try again[y/n]?
If you bothered to read the last week or so of posts then you would have seen that I gave a complete implementation for something like this. You could easily modify that or use it as a basis for your own implementation. But no, you wanted someone to do your homework to your exact specifications. Anything else would require real work. :mad:
•
•
•
•
Originally Posted by Narue
If you bothered to read the last week or so of posts then you would have seen that I gave a complete implementation for something like this. You could easily modify that or use it as a basis for your own implementation. But no, you wanted someone to do your homework to your exact specifications. Anything else would require real work. :mad:
We, at Daniweb, don't do your homework for you-- we're here as a resource to help, not to cheat. If you want our assistance, please write some code and post it here, and then our members will help you troubleshoot it.
Thanks for your cooperation.
Alex Cavnar, aka alc6379
•
•
Join Date: Oct 2009
Posts: 1
Reputation:
Solved Threads: 0
-1
#4 32 Days Ago
ok i have made a calculator using turbo c but it keeps disappearing when i choose the run command can any body help me please
c Syntax (Toggle Plain Text)
#include<stdio.h> #include<conio.h> int sum (int x,int y) { int z; z=x+y; return z; } int sub (int x,int y) { int z ; z=x-y; return z; } int mult (int x,int y) { int z; z=x*y; return z; } float dev (int x,int y) { float z; z=x/y; return z; } void main () { int a,b,c; int d; clrscr(); printf("enter the first integer"); scanf("%d",&a); printf("enter the second integer"); scanf("%d",&b); int i=1; printf("what kined of operation do you wanna apply .please choose from the list:\n%d)addition(+)\n%d)subtract(-)\n%d)multiplitation(*)\n%d)division(/)",i,i+1,i+2,i+3); scanf("%d",&c); switch (c) { case '1' : d=sum(a,b); printf("%d + %d = %d",a,b,d); break; case '2': d=sub(a,b); printf("%d - %d = %d",a,b,d); break; case '3': d=mult(a,b); printf("%d * %d = %d",a,b,d); break; case '4' : if (b>0) { d=dev(a,b); printf("%d / %d = %d",a,b,d); } else if (b<0) { d=dev(a,b); printf("%d / %d = %d",a,b,d); } break; } getch(); }
Last edited by WaltP; 31 Days Ago at 3:35 am. Reason: Added CODE tags -- with all the help about them, how could you miss using them????
0
#6 31 Days Ago
•
•
•
•
ok i have made a calculator using turbo c but it keeps disappearing when i choose the run command can any body help me please
The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
![]() |
Similar Threads
- i need a good c++ program for vista (C++)
- program calculator (C++)
- my program-calculator (C++)
- c++ & ti calculator (C++)
- RUNNING D PROGRAM...need help urgently... (C++)
- Graphics calculator (IT Professionals' Lounge)
- Displaying bitmap (C++)
Other Threads in the C Forum
- Previous Thread: Small problem with 8051 programming
- Next Thread: alignments
| Thread Tools | Search this Thread |
#include * ansi api array arrays binarysearch calculate centimeter changingto char character convert copyanyfile copyimagefile copypdffile creafecopyofanytypeoffileinc createcopyoffile createprocess() database dynamic execv fflush fgets file floatingpointvalidation fork forloop frequency function getlogicaldrivestrin givemetehcodez grade graphics gtkwinlinux histogram homework i/o ide inches include infiniteloop input interest intmain() iso keyboard km license linked linkedlist linux list looping loopinsideloop. lowest matrix microsoft mysql oddnumber open opendocumentformat openwebfoundation pdf pointer posix power program programming pyramidusingturboccodes radix read recursion recv recvblocked reversing scanf scheduling segmentationfault send sequential shape single socket socketprogramming stack standard strchr string suggestions test threads turboc unix urboc user variable whythiscodecausesegmentationfault win32api windowsapi






