Hi! Can I get some help writing the code for this in Java

Learning Goal: I’m working on a java question and need support to help me learn.

Write a Python program that includes a function that takes a list of integers and a number val as parameters and finds the index of the first number in the list greater than val.

Your program should contain one function:

(1) greater(lst,val): This function takes two parameters: a list of integers and a number val (int). It should return the index of the first number in the list that is greater than val. If no element of the list is greater than val, len(lst) should be returned.

(2) Outside the function, you should do the following:

a. Prompt the use multiple times to enter 5 integer elements and add them to a list called my_list. (use for loop)

b. Prompt the use to enter a number value (integer) called my_val.

a. Call the function greater() with 2 arguments: my_list and my_val. d. Print the output that the function returns.

Are you struggling with your paper? Let us handle it - WE ARE EXPERTS!

Whatever paper you need - we will help you write it

Get started

Starts at $9 /page

How our paper writing service works

It's very simple!

  • Fill out the order form

    Complete the order form by providing as much information as possible, and then click the submit button.

  • Choose writer

    Select your preferred writer for the project, or let us assign the best writer for you.

  • Add funds

    Allocate funds to your wallet. You can release these funds to the writer incrementally, after each section is completed and meets your expected quality.

  • Ready

    Download the finished work. Review the paper and request free edits if needed. Optionally, rate the writer and leave a review.