Click to See Complete Forum and Search --> : I need help with my C++ question
Victoria
03-13-2000, 11:35 AM
I am new with C++ program and now I need help with me C++ assignment....I
do not know how to apply the class. Please help me....
Write a C++ program that includes a class to determine whether a time is
AM or PM based on data of military time or "evening" / "morning".
For example:
data
1800 should produce 6:00 PM
3:00 morning should produce 3:00 AM
There is no way i will write a program for you because then you would never
learn. I can give you some tips here however.
- You have to come up with a way to determine whether the time is AM or PM,
so you should use an IF statement. If you do not understand that then you
should talk to your teacher.
for example
if the time was over 1200 hours but not 2400 then it would be pm and if it
was under 1200 hours then it would be am.
that should get you on your way
"Victoria" <autum_child@kittymail.com> wrote:
>
>I am new with C++ program and now I need help with me C++ assignment....I
>do not know how to apply the class. Please help me....
>
>Write a C++ program that includes a class to determine whether a time is
>AM or PM based on data of military time or "evening" / "morning".
>
>For example:
> data
> 1800 should produce 6:00 PM
> 3:00 morning should produce 3:00 AM
>
>
>
Mike Reilly
03-15-2000, 04:56 PM
With this kind of question, you should be specific about which part of the
question you are currently stuck on. Generally, people on this NG don't do
the whole homework assignment for you, but will help you whenever you get
stuck.
Hope that helps.
Victoria wrote in message <38cd0ad8$1@news.devx.com>...
>
>I am new with C++ program and now I need help with me C++ assignment....I
>do not know how to apply the class. Please help me....
>
>Write a C++ program that includes a class to determine whether a time is
>AM or PM based on data of military time or "evening" / "morning".
>
>For example:
> data
> 1800 should produce 6:00 PM
> 3:00 morning should produce 3:00 AM
>
>
>
devx.com
Copyright WebMediaBrands Inc. All Rights Reserved