Write a java program that: • Declares two corresponding arrays with size 5, one for employee's name and the other for total salary. • Read employee information: name and working hours. Store the name in name array and calculate the salary as below and store it in salary array. Salary= working hours* 5. • Print on screen the name of employee with minimum salary.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question
Write a java program that:
• Declares two corresponding arrays with size 5, one for
employee's name and the other for total salary.
• Read employee information: name and working hours. Store
the name in name array and calculate the salary as below and
store it in salary array.
Salary= working hours* 5.
• Print on screen the name of employee with minimum salary.
Enter Emp
1 name and working hour
>> Ahmed 60
Enter Emp
2
name
and working hour
>> Jaffer 62
Enter Emp
3
name and working hour » Huda 33
Enter Emp
4
name
and working hour
>> Fatima 44
Enter Emp
5 name
and working hour
>> Mustafa 50
Huda has the minimum salary 165.0
Transcribed Image Text:Write a java program that: • Declares two corresponding arrays with size 5, one for employee's name and the other for total salary. • Read employee information: name and working hours. Store the name in name array and calculate the salary as below and store it in salary array. Salary= working hours* 5. • Print on screen the name of employee with minimum salary. Enter Emp 1 name and working hour >> Ahmed 60 Enter Emp 2 name and working hour >> Jaffer 62 Enter Emp 3 name and working hour » Huda 33 Enter Emp 4 name and working hour >> Fatima 44 Enter Emp 5 name and working hour >> Mustafa 50 Huda has the minimum salary 165.0
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Arrays
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage