شباب ممكن المساعده في حل هالمسألتين من قلب متوهجه الدكتور طالبها واجب وانا عندي امتحان مو قادره احلها
Modify the time class of Fig.6.18 to include a tick member function that increments the time stored in a time object by one second. The time object should always remain in a consistent state. Write a program that tests the tick member function in a loop that prints the time in standard format during each iteration of the loop to illustrate that the tick member function works correctly. Be sure to test the following cases:
a) .Incrementing into the next minut
B). Incrementing into the next hour.
c). Incrementing into the next day (i.e., 11:59:59PM to 12:00:00AM).
Modify the Date class of Fig.6.24 to perform error checking on the initializer values for data members month, day and year. Also, provide a member function next Day to increment the day by one .The Date object should always remain in a consistent state. Write a program that tests function nextDay in a loop that print the date during each iteration to illustrate that nextDay works correctly .Be sure to test the following cases:
a). Incrementing into the next month.
B). Incrementing into the next year.
مشكورين وجزاكم الله خير على المساعده
طالبه كمبيوتر جديده(متوهجه)