|
 |
|
|
|
|
|
|
|
|
|
|
Description
can anybody do a calculator for me?? it's a final project of CS1. at least 17 keys. I have to do a perfect project to pass the class. I hope you guys can help me! I really need extra credit!! add more keys than the example! thanks very much. I'll up load a example!
Design a basic calculator that is able to perform the four basic arithmetic operations: +, -, *, and /
User will input into this calculator in infix notation:
Key
Display
1 1
2 12
+ 12
7 7
= 19
5 5
1 51
- 51
1 1
1 11
+ 40
2 2
/ 42
7 7
= 6
All functions must be heavily commented.
Notes:
Global Variables: I have used the following global Variables. You may find them useful.
gLeftOperand as Decimal
gRightOperand as Decimal
gOperator as String ‘this is the Operator to be applied next.
gDecimalPressed as Boolean ‘This indicates that the decimal point has been pressed.
gEnterPressed as Boolean ‘This indicates that an Operator (or the equal sign) has been pressed
Regarding the Decimal Point: when Decimal Point is pressed, check to see if it has been pressed previously. If it has, ignore this click. if it has not been pressed previously, set the gDecimalPressed to true and call NumberPressed(".") This will prevent the user from entering a number like this: 35.42.12.25
Regarding Clear: When C is pressed, reset all the global variables: Left and Right operands, Operator, gDecimalPressed should be set to False, gEnterPressed should be set to true (so that we can begin a new number after this) and set the display to zero.
Functions:
You will use at the minimum the following functions in your program:
NumberPressed(N as String)
This function will be called from all Number keys. You will pass the key that was pressed to this function and this function will process the key.
So, when 2 is pressed, you will call NumberPressed("2") etc.
Depending on the value of gEnterPressed, this function will either add the new digit to the displayed number or starts a new number (resets gEnterPressed back to False) and displays the new number.
This function will give explanations in a textbox (as shown in the sample program) about it’s operations. These explanations must be in your own words and must match the activities of the function.
OperatorPressed(Op as String)
This function will be called from all Operator keys (+, -, *, /, =)
So, when + is pressed you will call OperatorPressed(“+”) etc.
This function
1. Applies the gOperator to the Left and Right operands, 2. Stores the Op into the gOperator global variable 3. Resets the gDecimalPressed to False (so that it can be pressed again while entering the new number) 4. This function treats = differently than the other operators.
This function will give explanations in a textbox (as shown in the sample program) about it’s operations. These explanations must be in your own words and must match the activities of the function.
Extra Credit: (Only awarded to programs whose basic functions work perfectly.) Add more advanced functions to this calculator: Exponent, Trig functions etc.
Reminder
You may not start working in this and any project before
your bid is accepted. Any user who violates this policy
may have their account permanently suspended.
|
| Shortlist |
| Decline Bid |
|
|
Dhaka,
BD
location |
US$150
bid amount |

         
(183
reviews)
feedback |

5 day(s)
delivery time |

|
| |
Please check PM
Bid Time: 06-04-2008 16:42
|
|
|
|
| Shortlist |
| Decline Bid |
|
|
Atlanta,
US
location |
US$120
bid amount |

         
(38
reviews)
feedback |

5 day(s)
delivery time |

|
| |
Please see PMB.
Thx
-Aanvik
Bid Time: 06-04-2008 12:57
|
|
|
|
| Shortlist |
| Decline Bid |
|
|
Dhaka,
BD
location |
US$170
bid amount |

         
(18
reviews)
feedback |

7 day(s)
delivery time |

|
| |
Can be done.
Bid Time: 06-05-2008 04:04
|
|
|
|
| Shortlist |
| Decline Bid |
|
|
Indore,
IN
location |
US$200
bid amount |

         
(8
reviews)
feedback |

6 day(s)
delivery time |

|
| |
Dear Sir / Mam
Our company is working in IT industry since last 8 years. This company is one of the fastest growing IT Services Company of Central India. Our vision is to provide the highest quality IT services to our clients at a fair Cost with a focus on client delightment. And to maintain a fair & pleasant work environment with opportunity for professional development.
We have a very strong team from the area of web based & Desktop based application and Web Designing, logo and graphic design for developing secure legacy applications in real time. We have expertise in,ColdFusion ,ASP .NET, PHP, AJAX, ORACLE, MYSQL, Flash Dolphin Customize and Photoshop. Our company follows all coding standards, complete SDLC, grass roots of software development and strong customer support for our clients up till their satisfaction level .
We develop applications on the fallowing platforms:
Windows, UNIX, NT Server.
Bid Time: 06-05-2008 02:42
|
|
|
|
|
|
dhaka,
BD
location |
US$70
bid amount |

         
(8
reviews)
feedback |

5 day(s)
delivery time |

|
| |
plaese check the pm..thank you
Bid Time: 06-05-2008 01:28
|
|
|
|
| Shortlist |
| Decline Bid |
|
|
kolkata,
IN
location |
US$200
bid amount |

         
(6
reviews)
feedback |

5 day(s)
delivery time |

|
| |
i have done same kind of project during my study.i can do it.
Bid Time: 06-04-2008 12:53
|
|
|
|
| Shortlist |
| Decline Bid |
|
|
Cairo,
EG
location |
US$99
bid amount |

         
(3
reviews)
feedback |

4 day(s)
delivery time |

|
| |
Kindly check PM for more details.
Bid Time: 06-05-2008 01:50
|
|
|
|
| Shortlist |
| Decline Bid |
|
|
kenitra,
MA
location |
US$75
bid amount |

(No Feedback
Yet)
feedback |

0 day(s)
delivery time |

|
| |
i can help you , and i can do it now
Bid Time: 06-04-2008 13:03
|
|
|
|
| Shortlist |
| Decline Bid |
|
|
Lahore,
PK
location |
US$100
bid amount |

(No Feedback
Yet)
feedback |

3 day(s)
delivery time |

|
| |
Hi,
We are ready to deliver you. Please see PMB
Bid Time: 06-04-2008 15:29
|
|
|
|
| Shortlist |
| Decline Bid |
|
|
Beijing,
CN
location |
US$200
bid amount |

(No Feedback
Yet)
feedback |

10 day(s)
delivery time |

|
| |
more discussion on pm
Bid Time: 06-04-2008 20:10
|
|
|
|
| Shortlist |
| Decline Bid |
|
|
Belgrade,
YU
location |
US$100
bid amount |

(No Feedback
Yet)
feedback |

2 day(s)
delivery time |

|
| |
Please, check PM
Bid Time: 06-05-2008 08:23
|
|
|
|
| Shortlist |
| Decline Bid |
|
|
INDORE,
IN
location |
US$95
bid amount |

(No Feedback
Yet)
feedback |

8 day(s)
delivery time |

|
| |
IF YOU WANT SIMILAR MODULE WITH SOME DIFFERENT LOOK AND FEW FUNCTIONS IT WILL BE DONE
Bid Time: 06-05-2008 04:44
|
|
|
|
| Shortlist |
| Decline Bid |
|
|
Smederevo,
YU
location |
US$60
bid amount |

(No Feedback
Yet)
feedback |

4 day(s)
delivery time |

|
| |
I have few finished projects based on your proposal. i can send you these projects exes if you like.I can make full scientific calculator for you ,with clean , heavily commented code.
Bid Time: 06-05-2008 06:29
|
|
|
|
|