dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: need help

  1. #1
    Join Date
    Nov 2015
    Posts
    1

    Unhappy need help

    Guys i need help and don't even know where to start!?


    The application should enable the user to enter:
    • The family name – must contain at least 1 character.
    • The number of children in the family – must be an integer value greater than 0.
    • For each child the following details should be entered:
    o The child’s name – must contain at least 1 character.
    o If the child is a girl or boy – must be a single character which is g or b, regardless of case.
    o The child’s age – must be an integer value greater than or equal to 0 but less than or equal
    to 12.
    • The number of adults accompanying the children – must be an integer value greater than 0.
    • If a photograph is required – must be a single character which is y or n, regardless of case.
    The application should print out a ticket for the family containing the family name and the details for each
    child, number of accompanying adults and the photographic requirements together with the total cost of the
    visit.
    The total cost of the visit can be determined as follows:
    • If the child is 1 year old or less then the visit it is free as no present is required.
    • If the child is more than 1 year old but less than or equal to 5 years old then the cost is €5, as a small
    present is required.
    • If the child is more than 5 years old but less than or equal to 12 years old then the cost is €7.50 as a
    large present is required.
    • If there are more than 2 adults accompanying the child/children then there is an additional charge of
    €2.50 per adult.
    • If a picture is required then an extra charge of €10 is applied.
    Having processed the details for one family, the “elves” should be asked if they would like to process the
    details for another family. The “user” must enter a single character which is y or n, regardless of case.
    When there are no further families to be processed the application should provide a summary of the data
    entered as follows:
    • The total number of bookings.
    • The total number of children booked.
    • The number of girl and boy presents required in each age category.
    • The total number of photographs required.
    • The total value of the bookings made.

  2. #2
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,856

    Re: need help

    What have you tried? Be sure to wrap any posted code in code tags.
    Norm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)