Purdue University Global Functions and Arrays Project In this assessment you will complete a program to demonstrate the skills for this learning competency for your selected language path.
Note: If your language of choice is Web Development, you will need to complete the exercises in both PHP and JavaScript.
Using the language in which you have chosen to focus: C#, Java, Web Development languages (PHP and JavaScript), please complete the following
Assessment:
In this program you will write two functions. One function will locate and return the largest value in an integer array. The second function will loop through the integer array, check each value to see if it is even or odd and place the appropriate word in a corresponding string array. Finally, your program will loop through the two arrays, printing the integer value from the integer array followed by the string value from the string array in the same item position.
Assessment Requirements
Define an integer array that will hold 10 integers.Initialize it with the following values: 56, 77, 23, 12, 88, 59, 97, 33, 38, 64.
Define a string array that will hold 10 strings.
Write a function, named findMax, that will accept two arguments and return an integer value. The first parameter is an integer array. The second parameter is the size or length of the integer array. Loop through the positions in the array, searching all items to find the largest value in the array. Return the array index of the largest value found.
Write a function named, evenOrOdd, that will accept three parameters. The first parameter is the integer array used in the above function. The second parameter is the string array from step 2 and the third parameter is an integer indicating the size of the two arrays. This function will perform the following tasks:
This function will loop through the first array, checking each value to see if it is even or odd.
For each item in the integer array, the function will then place the appropriate value, even or odd, in the corresponding position of the string array.
Hint: Using the modulus operator, (also called the modulo), to divide the number by 2 will result in either a remainder of 0 or 1. A remainder of 0 indicates an even number and a remainder of 1 indicates an odd number. The modulus operator for all of the languages in this class is %.
After calling both functions, print the maximum number determined by findMax as well as the array index position of the largest number. Next, the program will loop through the two arrays and print the integer from integer array followed by the corresponding even or odd value from the string array.
EXPECTED OUTPUT
56, 77, 23, 12, 88, 59, 97, 33, 38, 64
The largest number in the array is 97 located at array index 6.
The numbers were:
56 is even
77 is odd
23 is odd
12 is even
88 is even
59 is odd
97 is odd
33 is odd
38 is even
64 is even
Directions for Submitting Your Assessment
The source code file is the file in your project that contains the code you wrote. You will only need to submit the source code file for your program and not the entire project folder or any additional project files. Below are listed the file extensions for the source code file for each language:
.cs file for C#
.java file for Java
.php and .js files for Web Development
Naming Your Project and Source Code File
While you can change your file name later, it will be simpler with less chance of confusion if you name your new project and code file with the following naming convention when you create it. The code file(s) should be saved as: IT213M4_YourLastName_Language. The source code file and the project name can be the same.
Why Choose Us
Top quality papers
We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.
Professional academic writers
We have hired a team of professional writers experienced in academic and business writing. Most of them are native speakers and PhD holders able to take care of any assignment you need help with.
Free revisions
If you feel that we missed something, send the order for a free revision. You will have 10 days to send the order for revision after you receive the final paper. You can either do it on your own after signing in to your personal account or by contacting our support.
On-time delivery
All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.
Original & confidential
We use several checkers to make sure that all papers you receive are plagiarism-free. Our editors carefully go through all in-text citations. We also promise full confidentiality in all our services.
24/7 Customer Support
Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.
Our Services
No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.
Essays
You are welcome to choose your academic level and the type of your paper. Our academic experts will gladly help you with essays, case studies, research papers and other assignments.
Admissions
Admission help & business writing
You can be positive that we will be here 24/7 to help you get accepted to the Master’s program at the TOP-universities or help you get a well-paid position.
Reviews
Editing your paper
Our academic writers and editors will help you submit a well-structured and organized paper just on time. We will ensure that your final paper is of the highest quality and absolutely free of mistakes.
Reviews
Revising your paper
Our academic writers and editors will help you with unlimited number of revisions in case you need any customization of your academic papers