完了済み

428607 Time Zone

This is a C++ program and I need to be able to build it with Visual Studio 2010 Express. Thank you.

STEP 1

Create a new project which consists of two classes; the base Time class and a derived extTime class.

The base class should have data members that are used to represent the hour and the minute both of type integer. The derived class has one additional data member that represents the time zone. This data member should have a string data type.

STEP 2

Create a function for each of the operations listed below:

Base class:

• set the time

• return the time

• print the time

• increment the hour

• increment the minute

• a default constructor and a constructor with parameters

Derived class: should have (in addition to the classes above) its own

• print which prints the time zone in addition to the time

• constructor

STEP 3

Construct the main method so that it can test the member functions of each of the parent and the child class by instantiating objects of these classes and calling the appropriate functions.

SAMPLE OUTPUT

Time starts out = 5:10

doTest <> with a Time object:

initially time = 5:10

after setting, time = 0.0

after incrementing time = 23:59

doTest<> with an extTime object:

Initially time = 5:10

After setting, time = 0.0

After incrementing time = 23:59

After changing tz et = 5:10 EST

スキル: その他, C プログラミング

さらに表示: programming classes, c programming string functions, classes programming, 0 1 integer programming, the time, integer programming, time class, object function method, string integer, print studio, visual studio test project, object method, create sample project visual studio, function time, time string, studio 2010, studio set, print express, class function create, time est

採用者について:
( 10件のレビュー )

プロジェクトID: #2174477

アワード:

nitin89

As discussed..$23(including project fees)..Thankx

$23 USD 0日以内
(0レビュー)
0.0