Using Java Create a main() method and construct the salary array using shortcut notation or individual assignment statem

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Using Java Create a main() method and construct the salary array using shortcut notation or individual assignment statem

Post by answerhappygod »

Using Java
Create a main() method and construct the salary array usingshortcut notation or individual assignment statements (it's up toyou). Use this data, in the order of the chart below (i.e., use33880.50 as subscript 0… up to 45000.00 for subscript 7) for thepurposes of this lab. Salary 33880.50 10700.25 40204.30 136900.80 33239.00 60774.30 150243.10 45000.00Subscript 0 1 2 3 4 5 6 7Ordinal 1st 2nd 3rd 4th 5th 6th 7th 8thKeep all of the code together, except the declarations (whichby standards you always do at the beginning, in one section).
when you code it, add an appropriate statement to output valuesso you can be sure your changes or updates to the array worked asintended.
For example, if you give a person a 5,000 salary cut, displaythe value afterwards with System.out.println("After cut: " +….); Once you've coded all the worksheet problems (some of which makechanges to location or values in the array), then add a method todisplay the array to see if all the things "took." Why?Some of the problems on the exercises worksheet actually changesalary values stored in the array. If you make changes in the orderlisted in the exercises, everyone in the class should end up withthe same final values.Some of the excercises DON'T change data…they just displaysomething. In that case, it wouldn't affect the final values.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply