1 write a c program that takes an eastern


1. Write a C++ program that takes an Eastern standard time in hours, minutes, and seconds,and prints it out in Central time, Mountain time, or Pacific time. The following are the various requirements of the program:

a. User inputs using keyboard the EST (Eastern Standard Time) time in hours,minutes and seconds format.

b. Use the "enum" data type for the collection of Time Zones.

c. Other variables can be declared locally where they are needed.

d. Should contain a function named GetTime that returns time in hours, minutes and seconds format, and another function named GetZone that returns a time zone, which could be Central or Mountain or Pacific.

e. Should also contain two void functions - PrintTime that prints time in all four zones andPnntZone that prints time zone in words.

f. All the functions should be called from the main.

2094_time converstion.png

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: 1 write a c program that takes an eastern
Reference No:- TGS0442734

Now Priced at $25 (50% Discount)

Recommended (92%)

Rated (4.4/5)