helpppp

Please support our C++ advertiser: Intel Parallel Studio Home
Closed Thread

Join Date: Nov 2008
Posts: 6
Reputation: khatib009 has a little shameless behaviour in the past 
Solved Threads: 0
khatib009 khatib009 is offline Offline
Newbie Poster

helpppp

 
0
  #1
Nov 30th, 2008
I am having a serious problem with a assignment i must do, this is the final assignment and the person that used to help me is not helping me anymore, i need to recieve a good grade on this assignment, and i dont know how i can because i dont know the material!! can someone please be willing to help me with this code..i am willing to pay thank you
Quick reply to this message  
Join Date: Aug 2005
Posts: 15,442
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1474
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: helpppp

 
0
  #2
Nov 30th, 2008
>>dont know how i can because i dont know the material!!
I'd say you better start by reading the books and other material, and doing the exercises at the end of each chapter. You won't learn how to program is other prople do your work for you. Yes, we will help, but only after you post code to show you are making efforts.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Quick reply to this message  
Join Date: Jun 2008
Posts: 182
Reputation: mrboolf will become famous soon enough mrboolf will become famous soon enough 
Solved Threads: 18
mrboolf mrboolf is offline Offline
Junior Poster

Re: helpppp

 
0
  #3
Nov 30th, 2008
Originally Posted by khatib009 View Post
can someone please be willing to help me with this code..i am willing to pay thank you
LOL, what code?!?
well, if you're not lazy beyond hope of recovery...

Some people (me included) could feel offended by posts like yours - being offered money for what? homework?
Try to follow Ancient Dragon wisest advice.
Last edited by mrboolf; Nov 30th, 2008 at 6:38 pm.
Quick reply to this message  
Join Date: Nov 2008
Posts: 6
Reputation: khatib009 has a little shameless behaviour in the past 
Solved Threads: 0
khatib009 khatib009 is offline Offline
Newbie Poster

Re: helpppp

 
0
  #4
Nov 30th, 2008
Thank you I will post the assignment, maybe someone will be able to solve it for me because I have no interest in this class but I had to take it for graduation.

Problem Statement
Combine the Time class of Figs. 10.8–10.9 and the Date class of Figs. 10.17–10.18 into one class called DateTime; and add the following modifications: (if anyone is interested in helping me i can send the figs. in a seperate file.)

1. Include a tick member function that increments the time stored in a DateTime object by one second. The DateTime object should always remain in a consistent state. Thus, if the current time of a DateTime object is 11:59:59 AM, calling the tick member function will increment the DateTime object by one second, and therefore changing the current time to 12:00:00 PM.

2. Perform error checking when initializing the values for data members year, month, and day as follows:
a. The initial value for data member year should be greater than 1900; otherwise, set year to 1900.
b. The initial value for data member month should be between 1 and 12; otherwise, set month to 1.
c. The initial value for data member day should be between 1 and the number of days in the current month; otherwise set day to 1. The number of days for the month of Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec are 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, respectively. Note however, if it is a leap year, the number of days in the month of Feb is 29 instead of 28. A leap year is either a year that is divisible by 400 or a year that is not divisible by 100 and is divisible by 4.

3. Provide a member function nextDay to increment the day by one. The DateTime object should always remain in a consistent state. For example, if the current date of a DateTime object is 12-31-2004, calling the member function nextDay will increment the day by one to 1-1-2005.

To test whether nor not your DateTime class is correct, you can run the following DateTimeTest.cpp program (see next page). This program makes use of the DateTime class that you must develop. When this program is executed, the first portion of your program output should look similar to the following:
Universal time: 23:59:57 12-31-2004
Standard time: 11:59:57 PM 12-31-2004
Universal time: 23:59:58 12-31-2004
Standard time: 11:59:58 PM 12-31-2004
Universal time: 23:59:59 12-31-2004
Standard time: 11:59:59 PM 12-31-2004
Universal time: 00:00:00 1-1-2005
Standard time: 12:00:00 AM 1-1-2005
Universal time: 00:00:01 1-1-2005
Standard time: 12:00:01 AM 1-1-2005
.
.
.
  1. //DateTimeTest.cpp
  2. //This cpp file tests your DateTime class.
  3.  
  4. #include <iostream>
  5. using std::cout;
  6. using std::endl;
  7.  
  8. // include definitions of class DateTime
  9. #include "DateTime.h"
  10.  
  11. int main()
  12. {
  13. const int MAXTICKS = 30;
  14.  
  15. //instantiates object dt of class DateAndTime
  16. DateTime dt( 12, 31, 2004, 23, 59, 57 );
  17.  
  18. for ( int ticks = 1; ticks <= MAXTICKS; ticks++ )
  19. {
  20. cout << "Universal time: ";
  21. dt.printUniversal(); // invokes function printUniversal
  22. cout << "Standard time: ";
  23. dt.printStandard(); // invokes function printStandard
  24. dt.tick(); // invokes function tick
  25. } // end for
  26.  
  27. cout << endl;
  28. return 0;
  29. } // end main
Last edited by Ancient Dragon; Nov 30th, 2008 at 6:44 pm. Reason: add code tags
Quick reply to this message  
Join Date: Nov 2008
Posts: 6
Reputation: khatib009 has a little shameless behaviour in the past 
Solved Threads: 0
khatib009 khatib009 is offline Offline
Newbie Poster

Re: helpppp

 
0
  #5
Nov 30th, 2008
I am sorry if you feel offended, but all I am saying is that I do not want to waste your time. I am in need of help and I am willing to pay for your time, I dont see where the problem is.
Quick reply to this message  
Join Date: Jun 2008
Posts: 182
Reputation: mrboolf will become famous soon enough mrboolf will become famous soon enough 
Solved Threads: 18
mrboolf mrboolf is offline Offline
Junior Poster

Re: helpppp

 
0
  #6
Nov 30th, 2008
Well you misunderstood me completely, I think.
I'll assume it's my fault, so I'll try to be clearer:

There's not a single person here that will do your homework for you. And I'd add "thank God for this!", although you might feel frustrated because of this.

Keep in mind that if you don't have interest in doing your homework and consequently in passing your class we have even less interest in doing your job for you.

Read the forum rules for more detailed explanations.
Quick reply to this message  
Join Date: Nov 2008
Posts: 6
Reputation: khatib009 has a little shameless behaviour in the past 
Solved Threads: 0
khatib009 khatib009 is offline Offline
Newbie Poster

Re: helpppp

 
0
  #7
Nov 30th, 2008
How come there are always people like you wherever a person goes? anyways please send me a message or reply to my post for whoever is willing to help
Quick reply to this message  
Join Date: Aug 2005
Posts: 15,442
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1474
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: helpppp

 
0
  #8
Nov 30th, 2008
Originally Posted by khatib009 View Post
I am sorry if you feel offended, but all I am saying is that I do not want to waste your time. I am in need of help and I am willing to pay for your time, I dont see where the problem is.
Do we really give a shit? NO. There are many things in life we have to do but don't like to. Learn to deal with it and do the work you are given.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Quick reply to this message  
Join Date: Nov 2008
Posts: 6
Reputation: khatib009 has a little shameless behaviour in the past 
Solved Threads: 0
khatib009 khatib009 is offline Offline
Newbie Poster

Re: helpppp

 
0
  #9
Nov 30th, 2008
you people are really a bunch of weirdos not willing to take some money for your work. Thats some high self-esteem levels you people are showing. All of you need to get lives.
Quick reply to this message  
Join Date: Jun 2008
Posts: 182
Reputation: mrboolf will become famous soon enough mrboolf will become famous soon enough 
Solved Threads: 18
mrboolf mrboolf is offline Offline
Junior Poster

Re: helpppp

 
0
  #10
Nov 30th, 2008
I am here to learn. Sure I'd like to earn money with my work someday - but with a honest WORK. This is not a work, is helping some cheater who thinks he's better than the others, and I don't like to do this neither with nor without money.
You said take and you said well. Learn the difference between take and earn.

Have fun with your trying-to-go-on-without-effort future life.
Bye.
Quick reply to this message  
Closed Thread

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC