Tuesday, July 14, 2009

C++ Programmers i realllllly need ur help!!!?

if you can please do this program for me or guide me as to how to do this it would be MUCH appreciated. This is all i can do: (i can only find the remaining time of the same day, not of a specific date)





#include %26lt;iostream%26gt;


#include %26lt;string%26gt;


#include "ccc_time.cpp"


#include %26lt;cmath%26gt;


using namespace std;


int main ()


{


Time t;


int gethour, getmin, min, hour, remain;


gethour = (t.get_hours()%12)*60;


getmin = t.get_minutes();





cout%26lt;%26lt;"Enter the time that the Exam will begin (hh mm): "; cin%26gt;%26gt;hour%26gt;%26gt;min;





remain = abs((gethour + getmin) - ((hour*60) + min))


hour = remain/60;


min = remain%60;


cout%26lt;%26lt;"You still have "%26lt;%26lt;hour%26lt;%26lt;" hours and "%26lt;%26lt;min%26lt;%26lt; " minutes to prepare for the Exam.\n";


return 0;


}





Write a program that asks for the due date of the Midterm (hour, minutes). Then print the


number of minutes between the current time and the date of the midterm in the form “You still have XX


hours and YY minutes to prepare for the midterm.”

C++ Programmers i realllllly need ur help!!!?
If you are still stuck, may be you can contact a C++ expert at website like http://askexpert.info/


No comments:

Post a Comment