Question
Using MATLAB: The expected starting annual salary for a male engineer is $66,097 (average across all disciplines), and the expected starting salary for engineers who
Using MATLAB:
The expected starting annual salary for a male engineer is $66,097 (average across all disciplines), and the expected starting salary for engineers who are female is $63,554. Pay Gap and Earnings Ratio are two terms are commonly used when discussing pay equity, shown in equations below.
PART A Assuming a woman and a man each start at the above salaries, and each earn 5% raises annually, how will the Earnings Ratio and Pay Gap be affected? Use MATLAB to write a code, employing at least one loop to determine the actual difference in salary between men and women, the Earnings Ratio, and Pay Gap each year between 2018 and 2038. The output should be a neatly formatted table in the command window with the heading shown below. Also, using the fprintf function, display in the command window the total difference in pay between a man and a woman over the 20 year period.
The code should also generate a single plot comparing the annual earnings of the man and the woman. Be sure to include a legend, title, and appropriate axis labels.
Women's median earnings Men's median earnings Earnings Ratio- Men's median earnings - Women's median earnings Men's median earnings Pay Gap- Women's median earnings Men's median earnings Earnings Ratio- Men's median earnings - Women's median earnings Men's median earnings Pay GapStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started