473,379 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

calculator program with memory function

Is there anyone have calculator program with memory function ?

I need it for submission of assignment.

Vijaykumar Dave

Apr 26 '07 #1
11 5255
Vijaykumar Dave wrote:
Is there anyone have calculator program with memory function ?

I need it for submission of assignment.
Better get started, then. Should only take you a few hours.
--
clvrmnky

Direct replies will be blacklisted. Replace "spamtrap" with my name to
contact me directly.
Apr 26 '07 #2
Vijaykumar Dave wrote, On 26/04/07 21:22:
Is there anyone have calculator program with memory function ?
Yes thanks. One came with Windows and another with Linux.
I need it for submission of assignment.
Then I suggest you try to write one.

It is not in the interests of professional programmers or students
hoping to become professional programmers to help you to cheat. The
students might later be competing with you for a job, and the
professional programmers might end up having to sort out the mess you
would create if you passed and got a job without knowing how to program.
--
Flash Gordon
Apr 26 '07 #3
Vijaykumar Dave wrote:
Is there anyone have calculator program with memory function ?
Yes, and the source for several of these is easily found with a simple
web search.

I need it for submission of assignment.
With all due respect, I hope your teacher spots your cheating and throws
your ass out of school.

Apr 26 '07 #4
Martin Ambuhl wrote On 04/26/07 16:44,:
Vijaykumar Dave wrote:
>>Is there anyone have calculator program with memory function ?


Yes, and the source for several of these is easily found with a simple
web search.
>>I need it for submission of assignment.


With all due respect, I hope your teacher spots your cheating and throws
your ass out of school.
Too much respect: he's due lots less.

--
Er*********@sun.com
Apr 26 '07 #5
Martin Ambuhl wrote:
Vijaykumar Dave wrote:
>I need it for submission of assignment.


With all due respect, I hope your teacher spots your cheating and throws
your ass out of school.
Thanks for the image, as a non-US English speaker, I have a picture of
his innocent donkey being expelled form school :)

--
Ian Collins.
Apr 26 '07 #6
"Vijaykumar Dave" writes:
Is there anyone have calculator program with memory function ?

I need it for submission of assignment.
Write a calculator that only adds two numbers. Then modify it to do
subtract as well. Add multiply and divide. Add memory. Turn it in for
credit. If you get stuck along the way, post what you have so far. We
don't know who you are so there is no reason to be embarrassed by what you
have.
Apr 26 '07 #7
Vijaykumar Dave wrote:
Is there anyone have calculator program with memory function ?

I need it for submission of assignment.

Vijaykumar Dave
Sure! Here you go. This works perfectly for me and I think you'll find
the code not only very clear to read but quite informative as well!

#include <stdio.h>
#include <stdlib.h>

#define A(x, y) (x) + (y)
#define S(x, y) (x) - (y)
#define M(x, y) (x) * (y)
#define D(x, y) (x) / (y)

const char mem[] = /* Our "memory" */
{
100, 111, 121, 111, 117, 114,
111, 119, 110, 104, 111, 109,
101, 119, 111, 114, 107, 107,
116, 104, 120, 98, 121, 101
};

int main(int argc, char **argv)
{
int i;

for (i = 0; i < sizeof(mem); i += 2)
{
printf("%2.2s: %d + %d = %d\n", &mem[i],
mem[i], mem[i + 1], A(mem[i], mem[i + 1]));
printf("%2.2s: %d - %d = %d\n", &mem[i],
mem[i], mem[i + 1], S(mem[i], mem[i + 1]));
printf("%2.2s: %d * %d = %d\n", &mem[i],
mem[i], mem[i + 1], M(mem[i], mem[i + 1]));
printf("%2.2s: %d / %d = %f\n", &mem[i],
mem[i], mem[i + 1], D((float)mem[i], (float)mem[i + 1]));
}

return(0);
}
Apr 27 '07 #8
Vijaykumar Dave wrote:
>
Is there anyone have calculator program with memory function ?
Yes.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

Apr 27 '07 #9
Eric Sosman said:
Martin Ambuhl wrote On 04/26/07 16:44,:
>>
With all due respect, I hope your teacher spots your cheating and
throws your ass out of school.

Too much respect:
No, Martin only gave him all *due* respect, which is exactly the right
amount for this occasion.
he's due lots less.
That's all he got.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Apr 27 '07 #10
CBFalconer wrote:
Vijaykumar Dave wrote:
>Is there anyone have calculator program with memory function ?

Yes.
I do too.

--
Joe Wright
"Everything should be made as simple as possible, but not simpler."
--- Albert Einstein ---
Apr 27 '07 #11
On Apr 27, 1:22 am, Vijaykumar Dave <vijaykumard...@gmail.comwrote:
Is there anyone have calculator program with memory function ?

I need it for submission of assignment.

Vijaykumar Dave
Thanks to all as I have tried and created my own program. Thanks for
boosting me to do the work....

thanks again.

May 3 '07 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Rafael | last post by:
Hi Everyone, I need some help with my calculator program. I need my program to do 2 arguments and a 3rd, but the 3rd with different operators. Any help would be great. Here is my code.... ...
3
by: Paul | last post by:
I want to make a simple calculator program but dont know where to get started. This is not GUI but a simple terminal program. It would get input like this Enter number: 5 + 10
58
by: Flipke | last post by:
Hello, I wanna make a calculator where i can give the input in one word. for example : (15*3) / (2+3) I think i most read this in as a string and then share it in different parts to do the...
1
by: Eric Terrell | last post by:
Folks: I've posted the full source code to C# Programmable Calculator at my website: http://www.personalmicrocosms.com/html/cspcalc.html C# Programmable Calculator is a Reverse Polish...
5
by: Steven Smith | last post by:
I was flicking through the windows accesories programs for some inspiration for todays vb challenge when I came accross the calculator program & thought that looks easy I could do that. However...
24
by: firstcustomer | last post by:
Hi, Firstly, I know NOTHING about Javascript I'm afraid, so I'm hoping that someone will be able to point me to a ready-made solution to my problem! A friend of mine (honest!) is wanting to...
15
by: colinNeedsJavaHelp | last post by:
I am attempting to program a very basic calculator. The program simply needs to prompt the use to input the computation i.e. 2 * 5 The program needs to compute this and display the result as "The...
1
by: remya1000 | last post by:
from my system i need to open a calculator in remote machine. and i'm using Vb.net and WMI. i need to pop up the calculator in remote machine, while i run one program in my system. while running in...
2
by: aemado | last post by:
I am writing a program that will evaluate expressions using binary trees. Most of the code has been provided, I just have to write the code for the class functions as listed in the header file....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.