Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me, Im using MATLAB Please dont use for loop I havent learned that in class yet Please make it easy and simple to

Please help me, Im using MATLAB
Please dont use for loop I havent learned that in class yet
Please make it easy and simple to understand
Please have the output look like the box (in the picture)
Thanks!
image text in transcribed
42. A vectorvstores for several employees of the Green Fuel Cells Corporation their Export PO hours worked 1 week followed for each by the hourly pay rate. For example, if the variable stores S> v Adobe Export PC Convert PDF Files t ox Excel Online 33.0000 10.5000 40.0000 18.0000 20.0000 7.5000 that means the first employee worked 33hours at $10.50 per hour, the second worked 40 hours at $18 an hour, and so on. Write code that will separate this into two vectors, one that stores the hours, worked and another that stores the hourly rates. Then, use the array multiplication operator to create a vector storing in the new vector the total pay for every employee Convert and e with Acrobat Start Free 1. (Attaway Q2.42) Prompt the user for the vector of hours and pay rate data. Sample output: Enter a vector of esployee hours and pay rate data: 33 10.5 40 18 20 7.5 The total pay for each employee is: 346.50 720.00 150.00 Enter a vector of employee hours and pay rate data: [ 40 50 10 15.5 The total pay for each employee is: 2000 155

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

Databases Illuminated

Authors: Catherine M. Ricardo, Susan D. Urban, Karen C. Davis

4th Edition

1284231585, 978-1284231588

More Books

Students also viewed these Databases questions