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 2 of 2

Thread: help with this pls functions exercices

  1. #1
    Junior Member
    Join Date
    Jan 2022
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default help with this pls functions exercices

    1.Declare a function (from nom minim) that receives three numbers per parameter. It has to return the number
    little black of the three. The function “Exercici1” must have the “print”: “The smallest number is…”.
    2. Declare a function (with a string name) that receives a String per parameter and shows the length on the screen
    of the String. This one worked, it doesn't return res.
    3. Declare a function (of nom times) that rep an array of integers and an enter name, and returns a boolean
    indicating if the number appears in the array. The function “Exercise3” has to show a different message according to yes
    is the array or not.
    4. Declare a function (of multiple names) that rep an enter name and return if the name is multiple of 4
    (manage as you wish). The result must be displayed by the “Exercici4” function.
    5. It declares a function (of nom preu) that receives the price of a product and the decompte to apply-li. it worked
    It will calculate and show the final price.
    Last edited by AbeladaConMermelada; January 21st, 2022 at 06:18 AM.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,145
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: help with this pls functions exercices

    What have you tried?
    Please wrap all posted code in code tags.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Please help me with functions
    By croatoanbtw in forum Computer Support
    Replies: 1
    Last Post: November 24th, 2020, 07:52 AM
  2. in need of some exercices?
    By Kerooker in forum Java Theory & Questions
    Replies: 5
    Last Post: June 4th, 2014, 04:26 PM
  3. Using functions in a calculator
    By aesguitar in forum Java Theory & Questions
    Replies: 9
    Last Post: November 17th, 2013, 10:54 AM
  4. How this GUI functions
    By mathobject in forum Java Programming Tutorials
    Replies: 3
    Last Post: October 15th, 2012, 08:10 AM
  5. need help with using trig functions
    By Tdogg in forum What's Wrong With My Code?
    Replies: 3
    Last Post: July 1st, 2012, 06:47 AM