Java Arrays Lab Code
Budget: $10 – $30 USD
I need a Java program that fulfills the following requirements:
a) Collects ten double values from the user and stores them in an array:
- Outputs values at even indexes
- Outputs values at odd indexes
- Initializes all values to zero and outputs the array
b) Collects five integer values from the user and stores them in an array:
- Calculates and outputs the sum of the numbers
- Calculates and outputs the average
- Calculates and outputs the difference of the numbers
Please note that input error handling is not specified, so you can choose how to handle non-numeric inputs. The ideal candidate would have strong Java programming skills, experience with arrays and loops, and the ability to write clean, readable code.
a) Collects ten double values from the user and stores them in an array:
- Outputs values at even indexes
- Outputs values at odd indexes
- Initializes all values to zero and outputs the array
b) Collects five integer values from the user and stores them in an array:
- Calculates and outputs the sum of the numbers
- Calculates and outputs the average
- Calculates and outputs the difference of the numbers
Please note that input error handling is not specified, so you can choose how to handle non-numeric inputs. The ideal candidate would have strong Java programming skills, experience with arrays and loops, and the ability to write clean, readable code.
Related categories:
Business, Accounting, Human Resources & Legal
Web Scraping
Data Mining
Data Scraping
Data Extraction