Computers

University

Image

Method in Java

8
plays

7 questions

Show Answers
See Preview
  • 1. Multiple Choice
    30 seconds
    1 pt

    Write method header to Return a sales commission, given the sales amount and the commission rate

    public static double getCommission(double salesAmount)

    public static double getCommission(double salesAmount, double commissionRate)

    double getCommission(double salesAmount, double commissionRate)

    public static double(double salesAmount, double commissionRate)

  • 2. Multiple Choice
    30 seconds
    1 pt

    Write method header Display the calendar for a month, given the month and year

    public static void (int month, int year, int day)

    public static void printCalendar(int year)

    public static void printCalendar(int month, int year)

    void printCalendar(int month, int year)

  • 3. Multiple Choice
    30 seconds
    1 pt

    Write method header to Return a square root of a number

    public static void double sqrt(value)

    public static void double sqrt(double value)

    public static double sqrt(value)

    public static double sqrt(double value)

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?