Hi gud day. i have a little problem of this: 

computing telephone bill. The meeting scheme is as
follows: Call made on a weekday between 6:00am -
6:00pm are charged to 2.50 per minute. Charges made at
other times during weekdays are charge discounted rate
of 2.00 per minute.Calls anytime on a weekend are
charge a weekend rate of 1.50 per minute.

Write a C-program that will ask the user to enter the
following information.

a.> an integer type representing the day call was
made, Let 1 represent monday, 2 represent tuesday and
so on...
b.> an integer representing the time (24 format) the
call started.
c.> an integer representing the length of the time
duration of the call in minute ( assume that all call
are rounded to the next minute, i.e. a call lasting 2
minutes and 35 seconds are billed as 3 minutes call.)

The rate appliend depends on the day the call was made
and on the time the call was started (not when it
ended).Based on the information entered, the program
should print the bill corresponding to the call.


i have some code for this problem and it seems
lacking. can you please help me of this if you don't
mind. because i have tried already and our instructor
wont accept. please help me.... that was a (Neste - if
and ladderized if or else if) thanks and more power.
hoping to hear you soon... 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 





To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/c-prog/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to