Question: java code Objectives You will learn: 1. Declaring and initializing arrays 2. Comparing input to array elements. Exercise 1. Given two Arrays A= (2,4,7,8,3) and

java code
java code Objectives You will learn: 1. Declaring and initializing arrays 2.

Objectives You will learn: 1. Declaring and initializing arrays 2. Comparing input to array elements. Exercise 1. Given two Arrays A= (2,4,7,8,3) and B={11,3,2,12,13). Write a program that find the common numbers in both arrays. Print the values in a new array "C" 2. A company pays its sales people on a commission basis. The sales people receive $200 per week plus 9% of their gross sales for that week. For example, a salesperson who grosses $5,000 in sales in a week receives $200 plus 9% of $5,000, or a total of $650. Write an program to find the gross sales of a person in every week if the array A contains the total earning in the first 9 weeks. A={200,300,400,500,600,700,800,900,1000)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!