Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: Hi, I am a beginner please help for code

  1. #1
    Junior Member
    Join Date
    Apr 2021
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Hi, I am a beginner please help for code

    Happy Events is an event management company who are specialists in conducting birthday parties for its customers. They charge for their services as below.

    The charge per person is Rs.350.

    Depending upon the number of guest they charge an additional fee.

    Number of guests Extra charge

    Below 50: nil

    50-99: 12% from total amount

    100-149: 15% from total amount

    150- 200: 18% from total amount

    If the number of guest goes beyond 200, a separate plan is available.

    Create a program to accept the number of guests and display the bill as given in the sample format

    Note : The Total Amount should be of float data type and when displaying display with no decimal value.

    Sample input 1

    Enter the name of the customer

    Samson

    Enter the date

    12/02/2019

    Enter the number of guests

    65

    Sample output 1

    Happy Events

    Name of the customer: Samson

    Date of the event: 12/02/2019

    No. of guests: 65

    Total Amount: Rs.25480

    Sample input 2

    Enter the name of the customer

    Samson

    Enter the date

    12/02/2019

    Enter the number of guests

    250

    Sample output 2

    Check for a separate plan

  2. #2
    Junior Member
    Join Date
    Apr 2021
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to write a code for below question

    Happy Events bill generation
    Happy Events is an event management company who are specialists in conducting birthday parties for its customers. They charge for their services as below.

    The charge per person is Rs.350.

    Depending upon the number of guest they charge an additional fee.

    Number of guests Extra charge

    Below 50: nil

    50-99: 12% from total amount

    100-149: 15% from total amount

    150- 200: 18% from total amount

    If the number of guest goes beyond 200, a separate plan is available.

    Create a program to accept the number of guests and display the bill as given in the sample format

    Note : The Total Amount should be of float data type and when displaying display with no decimal value.

    Sample input 1

    Enter the name of the customer

    Samson

    Enter the date

    12/02/2019

    Enter the number of guests

    65

    Sample output 1

    Happy Events

    Name of the customer: Samson

    Date of the event: 12/02/2019

    No. of guests: 65

    Total Amount: Rs.25480

    Sample input 2

    Enter the name of the customer

    Samson

    Enter the date

    12/02/2019

    Enter the number of guests

    250

    Sample output 2

    Check for a separate plan

  3. #3
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Hi, I am a beginner please help for code

    http://mattgemmell.com/2008/12/08/what-have-you-tried/
    http://forums.codeguru.com/showthrea...ork-assignment

    Be sure to wrap all posted code in code tags.

    This post will be removed if there is no reply in a couple of days.
    If you don't understand my answer, don't ignore it, ask a question.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Hi, I am a beginner please help for code

    @shoeb.ahmed.27
    Please read this: http://www.javaprogrammingforums.com...n-feeding.html
    If you don't understand my answer, don't ignore it, ask a question.

  5. The Following User Says Thank You to Norm For This Useful Post:

    shoeb.ahmed.27 (April 3rd, 2021)

  6. #5
    Junior Member
    Join Date
    Apr 2021
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Hi, I am a beginner please help for code

    Thanks for these beautiful articles Norm. Before this I read your previous posted link for "What have you tried" as well. I really regret for posting such help.

Similar Threads

  1. Help with beginner code
    By KSB Dad in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 13th, 2013, 07:31 AM
  2. Beginner code
    By Skybear in forum What's Wrong With My Code?
    Replies: 11
    Last Post: December 1st, 2012, 07:15 PM
  3. Hello, I'm a beginner and I really need help for my code..
    By aimEhjO in forum Member Introductions
    Replies: 10
    Last Post: August 4th, 2012, 09:22 AM
  4. Need Help with code ...beginner
    By Envious1 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: February 19th, 2012, 08:52 AM
  5. Beginner - Help with my code.
    By eddross in forum What's Wrong With My Code?
    Replies: 2
    Last Post: April 12th, 2010, 09:30 AM

Tags for this Thread