You should really state what language you are using. I have produced your method in C#, and should be easily translatable in to any other language.
static void RotateRight<T>(T[] arr)
{
T temp = arr[arr.Length - 1];
for (int i = arr.Length - 1; i >= 0; i--)
{
if (i == 0)
arr[i] = temp;
else
arr[i] = arr[i - 1];
}
}
Answer:
def weeklyPaid(hours_worked, wage):
if hours_worked > 40:
return 40 * wage + (hours_worked - 40) * wage * 1.5
else:
return hours_worked * wage
hours_worked = 50
wage = 100
pay = weeklyPaid(hours_worked, wage)
print(f"Total gross pay: Rs.{pay:.2f} ")
Explanation:
provides gross pay
Assuming this is only and external hard drive and there is no operating system installed on it, first, if you can't seem to access the drive, format it to a format your computer should be able to read. Then, I'd recommend organizing everything. Add folders for each class you take, and inside those add folders for actual homework and one for projects. You can add a miscellaneous folder if you'd like, for any extra files you might need to use.
Trl + Alt + Delete. I think