473,388 Members | 1,097 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,388 software developers and data experts.

New @ programming really need a tutor and im struggling and i need some help understanding

one of my assignments is create a class named numbers whose
Main()method holds two interger variables, assign values to the
variables. within the class, create two methods, Sum() and
Difference(),that compute the sum of the difference between the values
of the two variables, respectively. each method should perform the
computation and display the results. in turn call each of the two
methods from Main(), passing the values of the two interger valuesof
the two interger variables.
then

B

Add a method named Product() to the Numbers class. This method should
compute the multiplication product of the two intergers. but not
display the answer. instead it should return the answer to the calling
Main() program, which displays the answer.
sorry for the sloppy typing and if any help or ideas is available it
is greatly appreciated.
Nov 16 '05 #1
4 1612
You DO need a tutor, Tim. Someone who can sit down with you and explain the
concepts one at a time.

This is not something that newsgroups do very well.

Have you looked around the web for tutoring services? Have you asked your
teacher if a tutor is available at your school?

I'd love to help, but there is no way, given this medium, that it would
work.

Get face-to-face help, Tim. Once you "get" the concepts involved, the
assignments will flow naturally.

--- Nick

"Tim M." <ti******@cox.net> wrote in message
news:72**************************@posting.google.c om...
one of my assignments is create a class named numbers whose
Main()method holds two interger variables, assign values to the
variables. within the class, create two methods, Sum() and
Difference(),that compute the sum of the difference between the values
of the two variables, respectively. each method should perform the
computation and display the results. in turn call each of the two
methods from Main(), passing the values of the two interger valuesof
the two interger variables.
then

B

Add a method named Product() to the Numbers class. This method should
compute the multiplication product of the two intergers. but not
display the answer. instead it should return the answer to the calling
Main() program, which displays the answer.
sorry for the sloppy typing and if any help or ideas is available it
is greatly appreciated.

Nov 16 '05 #2
"Tim M." <ti******@cox.net> wrote:
[homework assignment]


You won't learn or understand much if we just give you a solution to
the entire problem.

What have you tried so far, and why didn't it work?

P.
Nov 16 '05 #3
ti******@cox.net (Tim M.) wrote in
news:72**************************@posting.google.c om:
one of my assignments is create a class named numbers whose
Main()method holds two interger variables, assign values to the
variables. within the class, create two methods, Sum() and
Difference(),that compute the sum of the difference between the values
of the two variables, respectively. each method should perform the
computation and display the results. in turn call each of the two
methods from Main(), passing the values of the two interger valuesof
the two interger variables.
then

B

Add a method named Product() to the Numbers class. This method should
compute the multiplication product of the two intergers. but not
display the answer. instead it should return the answer to the calling
Main() program, which displays the answer.
sorry for the sloppy typing and if any help or ideas is available it
is greatly appreciated.


What is your text book for the course? Perhaps one of us, if we are
familiar with the text, can point you to some reading. In teaching C# I
am using the books by Jesse Liberty, "Programming C#" for those who have
worked in Java or C++ and "Learning C#" for absolute newbies. I find
the books quite clear to the students. Perhaps one of these, notvery
expensive paperbacks would help.

--
Dennis Roark

de***@sio.NOSPAMmidco.net
Starting Points:
http://sio.midco.net/denro/www
Nov 16 '05 #4
> What is your text book for the course? Perhaps one of us, if we are
familiar with the text, can point you to some reading. In teaching C# I
am using the books by Jesse Liberty, "Programming C#" for those who have
worked in Java or C++ and "Learning C#" for absolute newbies. I find
the books quite clear to the students. Perhaps one of these, notvery
expensive paperbacks would help.

Thank you for the kind words and the recommendations. Please be aware that I
provide full source code, a FAQ, errata and a link to a private support
forum on my web site: http://www.LibertyAssociates.com. In addition, I try
to spend time on this group answering questions (though with Whidbey on the
horizon, time has been at a premium lately).

Thanks again.
--
Jesse Liberty
..Net Author - O'Reilly Media
http://www.LibertyAssociates.com
Nov 16 '05 #5

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

Similar topics

33
by: Joe Cheng | last post by:
I'm curious about something... many Artima.com members who have a Java background and learned Python have come to the conclusion that Java and Python are highly complimentary languages. They would...
38
by: BORT | last post by:
Please forgive me if this is TOO newbie-ish. I am toying with the idea of teaching my ten year old a little about programming. I started my search with something like "best FREE programming...
10
by: Simon Mansfield | last post by:
I have been given a list of exercises to do by my tutor, one of which is this: http://www.cems.uwe.ac.uk/~amclymer/Software%20Design%20and%20C++/Exercises/Exercise%208/Exercise.html Which i am...
6
by: John Walton | last post by:
Hello, everyone. I just began school, and they already assigned us science fair. Since I'm in 8th grade, I get to do demonstrations for our projects. I'm probably going to demonstrate Python's...
34
by: Volker Hetzer | last post by:
Hi! I've done lots of programming for CAD, which was basically C/C++ and tcl/tk. Now, we are thinking about introducing more web based tools, programming them ourselves and right now the toolchain...
42
by: Kevin Spencer | last post by:
Is it just me, or am I really observing a trend away from analysis and probem-solving amongst programmers? Let me be more specific: It seems that every day, in greater numbers, people are coming...
18
by: Frankie | last post by:
I have been hired to go to a former client of mine and train their staff programmers on ASP.NET. These guys have only Mainframe, MS Access, SQL Server, and VB6 desktop application development...
1
by: J-89 | last post by:
Hello I am a Higher Computing Student who in standard grade(last year) had someprior knowledge of basic Visual Basic Programming and then moved school at a bad time during prelims before the main...
20
by: Mike | last post by:
Hi all, I am cramming for an technical interview about C++ and programming... I believe there will be problems on data-structures and algorithms... could anybody recommend some online...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.