Assingnment problem

This is a discussion on Assingnment problem within the C Programming forums, part of the General Programming Boards category; AIf who have write the program is like below: please send to me for reference: Urgent This assignment requires to ...

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    3

    Assingnment problem

    AIf who have write the program is like below: please send to me for reference:
    Urgent



    This assignment requires to develop a telephone report system. You might live in a house where there are a number of people using the phone. When the phone bill comes I include all calls from that one person- that is ,you want to be able to tell each person how much they owe for the phone bill.As a resonable approximaion if you can provide a report that gives a otal for each distinct phone nmber called then each person can pay for their designated number.[This assumes that no person rings someone else s designatd number.]

    The requirements for the telephone report program will:
    1. Enter all the bill lines(store them in an array of records),which come in ascending order of date and time of call. Each bill line include the year, day of month, month name,day of week, start time of call, the number called and the cost,
    For example

    2000 14 Jan Tue 08:30 PM 0738463697 0.25

    Report the line number (and ignore that line) if it is not in the expected format.


    2 . Sor all the bill lines (array of records) into ascending order of telephone number . This will mean that all calls to the same number will be together.

    3 Now produce the report.For each distinct phone number produce a summary bill line which gives the hone number ,total cost of all calls to that phone number, the first date (in the bill) that number was called, the last date that that number was called, the earliest time of day (on any date) that that number was called, and the latest time of day ( on any date) that that number was calle .

    For example

    0738463697 23 call $ 5.75 frm 07 Jan 2000 to 30 Mar 2000 from 11:19 am to 8.30 PM


    4 . Give a grand total cost of the bill ,the first date and the last date and the last date that any number was
    called. This can be used to check against the bill to help verify all calls have been processed.

    For example

    All number 262 calls $65.50 from 03 Jan 2000 to 5 Apr 2000 from 11:19 am to 8:52 PM



    Hints:

    All data (apart from the cost of each call, which will need to be totaled : ad apart from the month name) can be treated as string and compared with strcmp.



    All the data key in by the user




    This is can use C++ ,this can include searching ,sorting ,recurcive method.

    Clarification
    While this is a straightforward problem the requirement may not give you all of the information you need when considering exactly what your program should do. In this time case , you will fill the role of the client. You will be clarifying any finer points of the requirement yourself .All do what you like to the program ,and must have above basic requirement.



    Due date 30.9.2001

  2. #2
    Registered User Fool's Avatar
    Join Date
    Aug 2001
    Posts
    335
    What do you have so far?

    -Fool

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 04:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 10:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21