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

C++

i need a c++ code for these different tasks (Separately ):
1) a program to input both the forename and surname of a person and
output the name in reverse, i.e: David John will be displayed as John
David

2)store the salaries (differentt) for each month of the year in an
array and output the average salary for a month.

Nov 10 '05 #1
17 3650
* Teacher:
i need a c++ code for these different tasks (Separately ):
1) a program to input both the forename and surname of a person and
output the name in reverse, i.e: David John will be displayed as John
David

2)store the salaries (differentt) for each month of the year in an
array and output the average salary for a month.


Both your questions are fully discussed in FAQ item 5.3.

Google for "C++ FAQ", then pick the C++ FAQ Lite by Marshall Cline, this
group's official FAQ.

Hth.,

- Alf

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Nov 10 '05 #2
hi, how do i get to FAQ item 5.3.? is there a link..thanks

Nov 10 '05 #3
oh...lol i have read FAQ 5.3, its not a home work! me and my mates are
not intrested in C++ codes and we use it for other purposes so we do
not want to waste time on learning the whole coding! lol, so i would
really be happy if you help me getting the code

Nov 10 '05 #4
are you going to look into this? thanks

Nov 10 '05 #5
How much are you willing to pay to have a programmer write this for you?

Teacher wrote:
are you going to look into this? thanks

Nov 10 '05 #6

"Teacher" <te********@gmail.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
oh...lol i have read FAQ 5.3, its not a home work! me and my mates are
not intrested in C++ codes
So why are you asking for C++ code?
and we use it for other purposes so we do
not want to waste time on learning the whole coding!
Ah, so you're lazy and want others to do your
work for you. Good luck with that.
lol, so i would
really be happy if you help me getting the code


So you want a ready-made solution handed to you.
That's not what this newsgroup is for.

I suggest you post your solicitation to a
'help wanted' group or some such. Be prepared
to provide compensation for whatever you're
asking for.

Also note that for purposes of the simple
applications you describe, there's no particular
reason to choose C++ as the language to use.
Other, simpler languages would be more appropriate.

-Mike
Nov 10 '05 #7

Teacher wrote:
are you going to look into this? thanks


Why yes of course! Let me drop everything I'm doing right now and tend
to your problem right away!

Let's see, here's what I can come up with to help you out:

You should...
.... review FAQ entry 5.2 (what Alf probably meant)
.... review FAQ entry 5.7
.... read the whole FAQ while you're at it
.... learn how to quote text you're referring to in Google's goup app
.... learn how to ask a coherent question
.... learn how to use the Caps or Shift key on your keyboard
.... learn how to sign your name

Come back when you're done :D.

Cheers,
Andre

Nov 10 '05 #8
Teacher wrote:
oh...lol i have read FAQ 5.3, its not a home work! me and my mates are
not intrested in C++ codes and we use it for other purposes so we do
not want to waste time on learning the whole coding! lol, so i would
really be happy if you help me getting the code


Do you really expect us to believe you want code to do that? For what
purpose?
Brian

--
Please quote enough of the previous message for context. To do so from
Google, click "show options" and use the Reply shown in the expanded
header.
Nov 10 '05 #9
"Teacher" <te********@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
are you going to look into this?


Are you? Did you not read my reply?

How much are you offering for my services?

(If you seriously want to do business, send
me an email, this group is not appropriate
for such things).

-Mike
Nov 10 '05 #10

"Teacher" <te********@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
i need a c++ code for these different tasks (Separately ):
1) a program to input both the forename and surname of a person and
output the name in reverse, i.e: David John will be displayed as John
David

2)store the salaries (differentt) for each month of the year in an
array and output the average salary for a month.


No, you don't need any custom code for that. Any
spreadsheet program (e.g. Microsoft Excel) can
do those jobs quickly and easily.

Unless of course this *is* school work.

-Mike
Nov 10 '05 #11
Teacher wrote:
are you going to look into this? thanks


Teacher,

Hey, I'm really sorry I've been so slow in getting to this. I've always
prided myself on not making excuses and I don't want to start now, but
it's been a really trying week.

My cat was clawing at my keyboard and popped off the 'I', 'F', and 'E'
keys and so far we've been unable to find them. Not only has this made
coding difficult (particularly conditionals, as you might well imagine)
but we're concerned she may have swallowed one or more of the keys (her
previous owner says she's always had a taste for vowels) and the worry
is really impacting my ability to concentrate on your project.

To follow up on my prior correspondences, my pet hamster's leprosy shows
no signs of improving, and on a separate but no less serious note, after
four days my wife has still not managed to unstick her arm from the
sewer pipe at the side of our house.

I really appreciate your understanding in this time of personal difficulty.

Mark
Nov 10 '05 #12
Mark P wrote:
Teacher wrote:
are you going to look into this? thanks


Teacher,

Hey, I'm really sorry I've been so slow in getting to this. I've always
prided myself on not making excuses and I don't want to start now, but
it's been a really trying week.

My cat was clawing at my keyboard and popped off the 'I', 'F', and 'E'
keys and so far we've been unable to find them. Not only has this made
coding difficult (particularly conditionals, as you might well imagine)
but we're concerned she may have swallowed one or more of the keys (her
previous owner says she's always had a taste for vowels) and the worry
is really impacting my ability to concentrate on your project.


So, did you cat leave the mouse behind for another round of Tom and
Jerry Series ? :)

[snip]

Nov 10 '05 #13
ben

No, you don't need any custom code for that. Any
spreadsheet program (e.g. Microsoft Excel) can
do those jobs quickly and easily.

Even more easily to be done manually.

Unless of course this *is* school work.
Agree.

-Mike


Ben
Nov 10 '05 #14

Teacher wrote:
i need a c++ code for these different tasks (Separately ):
1) a program to input both the forename and surname of a person and
output the name in reverse, i.e: David John will be displayed as John
David
ah, very easy, just two steps:
read David John
print John David
2)store the salaries (differentt) for each month of the year in an
array and output the average salary for a month.

simpler than the above one, print Average(salary)

Nov 10 '05 #15
"ravips" writes:
Teacher wrote:

i need a c++ code for these different tasks (Separately ):
1) a program to input both the forename and surname of a person and
output the name in reverse, i.e: David John will be displayed as John
David

ah, very easy, just two steps:
read David John
print John David


Teacher made a common mistake in translating from Latin. He said i.e. when
he actually meant e.g. So your solution does not work.
Nov 10 '05 #16
osmium wrote:
"ravips" writes:

Teacher wrote:


i need a c++ code for these different tasks (Separately ):
1) a program to input both the forename and surname of a person and
output the name in reverse, i.e: David John will be displayed as John
David


ah, very easy, just two steps:
read David John
print John David

Teacher made a common mistake in translating from Latin. He said i.e. when
he actually meant e.g. So your solution does not work.


???

I don't get your meaning here. i.e. means "that is", and e.g. means "for
example". The colon looks a little bad here, but that doesn't seem to
invalidate the solution.

Of course I've never taken Latin. I take my definitions from
Merriam-Webster.

--John Ratliff
Nov 11 '05 #17
On 9 Nov 2005 16:19:07 -0800, "Teacher" <te********@gmail.com> wrote:
i need a c++ code for these different tasks (Separately ):
1) a program to input both the forename and surname of a person and
output the name in reverse, i.e: David John will be displayed as John
David
What about names like Mary Jane Doe? Do you want Doe Mary Jane or Doe
Jane Mary?
2)store the salaries (differentt) for each month of the year in an
array and output the average salary for a month.


If you have read other threads in c.l.c++ you should have noticed that
questions like this get a much more useful response if they include a
copy of the code that you have developed. Look at DIAMOND SHAPE for
an example.

If you show willing by trying it yourself first then you will get a
lot more help than if you want us to do all the work. Besides you
don't say how much you are willing to pay; my rates go up to $300 per
hour, depending on what you want me to do.

It will be a lot cheaper for you if you write something yourself and
show it here for us to see.

rossum
The ultimate truth is that there is no ultimate truth
Nov 12 '05 #18

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

Similar topics

3
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
1
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the...
4
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the...
1
by: inderjit S Gabrie | last post by:
Hi all Here is the scenerio ...is it possibly to do this... i am getting valid course dates output on to a web which i have designed ....all is okay so far , look at the following web url ...
2
by: Jack | last post by:
Hi All, What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g. select x from y where z=:parameter Which in asp/jsp would be followed by some statements to bind a value...
3
by: Sandwick | last post by:
I am trying to change the size of a drawing so they are all 3x3. the script below is what i was trying to use to cut it in half ... I get errors. I can display the normal picture but not the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
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...

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.