Write a Matlab Code for the following: A co-op is paid a $15.00 hourly wage up...

90.2K

Verified Solution

Question

Mechanical Engineering

Write a Matlab Code for the following:

A co-op is paid a $15.00 hourly wage up to 20 hours per week. Inaddition, any hours over 20, the co-op collects an overtime wagethat is 1.5 times greater, and any hours over 30, 2.0 timesgreater. Using an in-else statement, write a code that calculatesthe co-op’s gross paycheck for: a) 15 hours worked b) 28 hoursworked c) 35 hours worked

Answer & Explanation Solved by verified expert
3.7 Ratings (529 Votes)
a 15 hours worked clearclc x 15 wage 15 normalpay wage20 ifx20 x30 ehours x30 normalpay 525 epay ehours20wage pay normalpay epay disp The gross    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students