Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can anyone help me solve these 2 programs? Please (JAVA) Program #1: one dimensional array practice (30 points) Declare a String array to accept 10

image text in transcribedCan anyone help me solve these 2 programs? Please (JAVA)

Program #1: one dimensional array practice (30 points) Declare a String array to accept 10 different states in United States, and implement some operations for the string array: 1) Prompts for and read an integer value k, rotate states' name from left side in k times. 2) Implement insertion sort algorithm to sort states' name by alphabetically order from A to Z, without case sensitive. For examples: California is before "Florida, and Alabama is before Alaska. 3) Based on the sorted value, implement binary search algorithm to search a given state's name. 4) Backup the state information in a new array. 5) Print the result after array declaration and each operation. Program # 2: two-dimensional array practice (20 points) Declare a 2-D array with 6 * 8 size, to accept randomly integer numbers, and satisfy the following requirements: 1) Find the total sum for each rows. 2) Find the total sum for each column. 3) Find the max value from a give row. 4) Print the result after array declaration and each operation

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions

Question

=+Define social listening and social monitoring

Answered: 1 week ago

Question

Evaluate the impact of unions on nurses and physicians.

Answered: 1 week ago

Question

Describe the impact of strikes on patient care.

Answered: 1 week ago

Question

Evaluate long-term care insurance.

Answered: 1 week ago