Question: Explore variables using the env and the set commands. Create a new variable named hrs _ worked. Assign hrs _ worked a value of 2

Explore variables using the env and the set commands.
Create a new variable named hrs_worked. Assign hrs_worked a value of 20.
Create a new variable named hrly_rate. Assign hrly_rate a value of 38.
Create another variable named pay and assign it the value of hrs_worked times hrly_rate.
export all 3 variables.
Set hrly_rate to readonly. Try to unset hrly_rate.
Use the echo command to see the values of all 3 variables.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!