General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 31st, 2004, 02:24 PM
crappyprogramme crappyprogramme is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 1 crappyprogramme User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
"Do my homework" request

How would i write a program using a function to form the plurals of English nouns according to the following rules:

· if the noun ends in “y” and not “oy” remove the “y” and add “ies”;

· if the noun ends in “s”, “ch”, or “sh”, add “es”;

· otherwise just add “s”.



Use another function to print each noun and its plural. Test your program on the following data:

“chair” “dairy” “boss” “circus” “fly” “dog” “church” “clue” “dish” “boy”

Also this one

2. Write a program with a function that reads a float constant (not in scientific notation) typed from the keyboard as a character string (hint: use cin >> ) and returns the number of digits to the left of the decimal point and the number of digits to the right of the decimal point. This function should call another that ensures that the first character is a digit (‘0’ ... ‘9’) or a sign (‘+’ or ‘-’) and that the rest of the characters are digits or a period (‘.’). The function outputs a message if this validation test fails. We will assume that at most one sign is present in a legal float numeric value and that it must appear in front of the value. In addition, if no period is encountered in the line, then the number of digits appearing to the right of this nonexistent point would be zero.

eg Enter a number: 234.890

Digits to the left: 3 Digits to the right 3



Enter a number 79467

Digits to the left: 5 Digits to the right 0



Enter a number -.14

Digits to the left 0 Digits to the right 2



Enter a number 43red4

Sorry that is not valid

Reply With Quote
  #2  
Old March 31st, 2004, 02:30 PM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
Send a message via ICQ to dhouston
I charge $150 an hour for doing homework. If you're game, I'll give you my DevArticles discount -- $125 an hour, 10-hour minimum.
__________________
Please don't PM me asking for solutions outside the scope of a thread.
Keeping all responses in a thread stands to help others who come along later,
which is after all what this forum's all about.

Reply With Quote
  #3  
Old March 31st, 2004, 05:04 PM
Pheifel Pheifel is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Denmark
Posts: 174 Pheifel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 46 sec
Reputation Power: 15
Send a message via MSN to Pheifel
Hey... give me a mail at emil@lightside.dk, and we can talk about it. But i dont believe, that anyone will give you the program for free.

Reply With Quote
  #4  
Old March 31st, 2004, 08:19 PM
crudesys crudesys is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: California
Posts: 25 crudesys User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
BAD TITLE my friend. i guess people here are not geared to do other people's homework, but to provide ideas instead. good luck on your homework. you need that

Reply With Quote
  #5  
Old April 1st, 2004, 01:00 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Posts: 2,056 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 44 m 22 sec
Reputation Power: 0
Correct - we do not do people's homework here. Infact, I'm of the opinion threads like this one should be deleted. This is a programmers forum for learning, helping out others who are stuck on a particular problem, and sharing knowledge.

Reply With Quote
  #6  
Old April 1st, 2004, 12:31 PM
Pheifel Pheifel is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Denmark
Posts: 174 Pheifel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 46 sec
Reputation Power: 15
Send a message via MSN to Pheifel
heh... and beeind new here i am using quite a lot of the helping but slowly helping others

Reply With Quote
  #7  
Old May 5th, 2004, 12:31 PM
xoxjessicaxox xoxjessicaxox is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: canada nova scotia
Posts: 4 xoxjessicaxox User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via MSN to xoxjessicaxox
Red face Can someone do my homework!!!! its on badminton/archery

i have to have my homework done. i need my project done on badminton, thats my first project. i need the history, and the rules. then i need the history and rules of archery.

Reply With Quote
  #8  
Old May 5th, 2004, 01:04 PM
Pheifel Pheifel is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Denmark
Posts: 174 Pheifel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 46 sec
Reputation Power: 15
Send a message via MSN to Pheifel
lol

lol

Reply With Quote
  #9  
Old May 6th, 2004, 04:38 AM
Spongy's Avatar
Spongy Spongy is offline
Alternately High
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Hilversum, Netherlands
Posts: 223 Spongy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 56 m 41 sec
Reputation Power: 15
Send a message via MSN to Spongy
Hahahaha!!!!

People just cannot be serious about this! "Please, I'm to lazy! Do my homework!"
Hahahahahaha
__________________
Work to live, don't live to work

Reply With Quote
  #10  
Old May 6th, 2004, 04:38 AM
Spongy's Avatar
Spongy Spongy is offline
Alternately High
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Hilversum, Netherlands
Posts: 223 Spongy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 56 m 41 sec
Reputation Power: 15
Send a message via MSN to Spongy
Lol

Quote:
Originally Posted by xoxjessicaxox
i have to have my homework done. i need my project done on badminton, thats my first project. i need the history, and the rules. then i need the history and rules of archery.


Ever heard of Google???

Reply With Quote
  #11  
Old May 6th, 2004, 10:52 AM
xoxjessicaxox xoxjessicaxox is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: canada nova scotia
Posts: 4 xoxjessicaxox User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via MSN to xoxjessicaxox
Lightbulb umm...

umm... NO DUHHHH! how the hell do you think i found out about this site.

Reply With Quote
  #12  
Old May 6th, 2004, 11:19 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Posts: 2,056 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 44 m 22 sec
Reputation Power: 0
Hi xoxjessicaxox, welcome to the devarticles forums!

As you may have guessed by now, after having a little look around, this is a forum for programmers all over the world, who are keen to help out others who may be stuck with a particular problem. There's a heavy slant towards web languages such as ASP and PHP - so if you're getting into web development, or are doing a computing course at school or uni, feel free to hit us up with any problem you might have. Or if you can help out with any problems other are having, lend a hand!

Enjoy your stay!
Stumpy

Reply With Quote
  #13  
Old May 7th, 2004, 11:01 AM
xoxjessicaxox xoxjessicaxox is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: canada nova scotia
Posts: 4 xoxjessicaxox User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via MSN to xoxjessicaxox
Talking thanks stumpy :)

thanks stumpy. i will help people as much as i can. tanks again

Reply With Quote
  #14  
Old May 7th, 2004, 11:08 AM
xoxjessicaxox xoxjessicaxox is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: canada nova scotia
Posts: 4 xoxjessicaxox User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via MSN to xoxjessicaxox
Talking stumpy, are you...

stumpy... are you a person, or a computer program... im just curious. i dont want to be rude, so dont take it the wrong. anyways, thanks for your help, i got to go for now so cya!

Reply With Quote
  #15  
Old May 10th, 2004, 10:14 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
Send a message via ICQ to dhouston
Stumpy is a person, though rumor has it he's a cyborg with six legs, a bionic eye, and PDAs for butt cheeks.

Reply With Quote
  #16  
Old May 10th, 2004, 05:27 PM
Spongy's Avatar
Spongy Spongy is offline
Alternately High
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Hilversum, Netherlands
Posts: 223 Spongy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 56 m 41 sec
Reputation Power: 15
Send a message via MSN to Spongy
i thought he looked like RoboCop...

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > "Do my homework" request


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap