Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Can someone plz help me solve these problems using MATHLab not Python!!! Thank you Review Exercises: 1. Hourly workers receive overtime when they work more

Can someone plz help me solve these problems using MATHLab not Python!!! Thank you image text in transcribed
image text in transcribed
Review Exercises: 1. Hourly workers receive overtime when they work more than 40 hours per week. Generally, overtime pay is 150% of the regular pay. Write a program that asks the user to enter the number of hours worked and the hourly pay. The program then decides what the compensation is. Here are sample runs: Enter hours worked this week: 50 Enter hourly rate: 20 Overtime $300.00 Regular hours -$800 00 Total pay $1,100.00 Enter hours worked this week: 30 Enter hourly rate: 20 Overtime $ 0.00 Regular hours $600.00 Total pay $600.00 2. A driver computes his miles per gallons by recording hid odometer reading each time he fills the gas tank. Subtracting the previous odometer reading yields the miles travelled, and dividing by the gallons entered yields the miles per gallon. Write a program that reads values from the user until he enters -1 for the odometer reading. After the second set of figures, print mile per gallon for each fil-up. 3. Write a program that asks the user to enter 3 integers for the 3 sides of a triangle. The program then decides if (a) the three numbers make a triangle, (b) the triangle is isosceles, (c) the triangle is equilateral, (d) it is irregular triangle, or (e) the triangle is a right triangle. Irregular triangle: Three different sides and no 90 angle Isosceles triangle: Only two sides equal Equilateral triangle: All three sides are equal Right triangle: has a 90 angle Write a program, using nested for-loop, and selection to generate the following pattern: 4. a. b. C. itional Samples: row 0:1:6 for row- 0:1:6 for col - 0:16 for col-0:1:6 if col > row

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_2

Step: 3

blur-text-image_3

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

Oracle Solaris 11.2 System Administration (oracle Press)

Authors: Harry Foxwell

1st Edition

007184421X, 9780071844215

More Books

Students explore these related Databases questions