C/C++ Programming in a UNIX Environment, CS 3377, Problem Set 03 Submit as four shell script files that can be run. [25X4] 1. Write a bash script that copies all files of the current directory into a...

1 answer below »
DUMMY


C/C++ Programming in a UNIX Environment, CS 3377, Problem Set 03 Submit as four shell script files that can be run. [25X4] 1. Write a bash script that copies all files of the current directory into a new sub-directory, and then deletes the created sub-directory along with its contents and displays a message that indicates completion of the task. 2. Write a bash script that reads two numbers x and y and performs addition, subtraction, multiplication, and division of the two numbers (x+y, x-y, x*y, x/y) and prints out each of these values along with some text to indicate what these numbers are. 3. Write a script that generates two random numbers between -5 and 25, calculates their average, and if the average is greater than 10 then prints “High Average” else prints “Low Average”. You can use $RANDOM to generate the random numbers. 4. Write a script using the for-loop construct that counts the number of directories looping through the files in the directory name provided by the user on a prompt by the script. a FINAL EXAM – AUTUMN SESSION 2021 School of Law EXAM INSTRUCTIONS Read all the information below and follow any instructions carefully before proceeding. Clearly indicate which question you are answering. UNIT NAME: Criminal Law UNIT NUMBER: 200010 NUMBER OF QUESTIONS: 2 VALUE OF QUESTIONS: Part A (Problem Question) – 30 marks Part B (Critical Reflection) – 15 marks ANSWERING QUESTIONS: You must answer both Part A and Part B of this exam. Submit your response to Turnitin via the link on vUWS. · PART A (maximum 1250 words): Follow the problem solving format guide available on vUWS under ‘Assessment 2’ folder and refer to Sample Answer 3 in Week 4 Module. · PART B (maximum 750 words): See ‘Assessment 4’ folder for reflective writing guide. LECTURER/UNIT COORDINATOR: Dr Amira Aftab TIME ALLOWED: Released: 9 am, 7 June 2021 Due: 9 am, 15 June 2021 TOTAL PAGES: 3 RESOURCES ALLOWED Only the resources listed below are allowed in this exam. Any printed or digital material. The following citation formats are required for this exam: · You must provide in-text citations for both Part A and Part B. · Cases and legislation: (Royall v R (1991)) or (s.18 Crimes Act 1900 (NSW)) · Secondary sources: (Kohn, 2010) at the end of a sentence where a point has been raised from the reading. Essentially: ([author last name], [year of publication]). PART A: Problem Question (30 marks) Part A should be max. 1250 words. Mike is a university student who works two part-time jobs to help support his elderly grandfather, who lives in an assisted living facility. He feels like he “owes him” as his grandfather raised him. Mike has a long-time friend Trent who has been trying to convince Mike that he should quit university, as he would make more money working with him. It is unclear what Trent does for work, but Mike suspects it is something that “is not quite right”. One of Mike’s part time jobs is being a teller at a bank. Mike hates working there as the manager is a bully who makes Mike and other tellers do his tasks for him, and Mike is convinced that he should be paid more for the work he does. One Friday evening Trent meets Mike at the University bar for drinks. Trent tries again to convince Mike to come work with him. Mike again refuses. Trent seems to give up and suggests they go hang out at Mike’s apartment. After a couple of hours of watching TV, Trent decides to leave but before going asks if he can leave a small package with Mike for a couple of weeks. Mike is hesitant but agrees. Trent tells Mike that the wrapped parcel would be best kept in the oven to hide it for safekeeping, knowing that Mike does not cook. A couple of weeks later, Trent returns to visit Mike. Trent appears aggressive and pushes his way into the apartment. Trent then tells Mike that he needs to help him out with something otherwise “bad things will happen”. Mike asks if everything is okay and what Trent means by “bad things will happen”. Trent laughs hysterically and says “oh, I’m fine nothing bad will happen to me. Your girl, on the other hand, should be worried, since you think you’re all fancy and better than me studying law at Uni and won’t join me”. Mike is initially confused about the “your girl” comment as he is currently single, but then realises Trent is referring to one of his classmates who he studies with regularly at the university library. Mike is unsettled at the thought that Trent has been watching him. Mike tries to talk to Trent reminding him that they are old friends and asks where this aggression is coming from. Trent then says, “he doesn’t care about friends” and that Mike has to “cooperate or be ready to face the consequences.” Trent then tells Mike to “grab some cash” from the bank he works at. Mike does not want to, but he fears for his classmate’s safety. Over the next couple of weeks, he observes the activity in the bank. He notices that one of the ATMs in the branch is “out of order” awaiting repair. The manager mentions that the ATM is letting out lots of money because the security system “has a bug”. Mike stays back after work one night and accesses the faulty ATM to withdraw $20,000. The next day, Mike is “freaking out” and goes to visit his grandfather. He takes $1000 of the $20 000 he got from the bank, as a gift for his grandfather. Mike also bought himself a new laptop for $1500 to help with his studies. His grandfather asks where he got so much money from. Mike tells him that it was a bonus from work, that they are paying back money they owe him for doing the manager’s boring administrative tasks. Mike decides that he is going to convince Trent to let him return the money to the bank. The day after visiting his grandfather, Mike messages him to say that the $1000 is not entirely legal and not to tell anyone where he got it from. A week later, on a tip-off, the police visit Mike’s apartment and search it (note: the warrant and search are legal). They find $17,500 in cash and whilst conducting the search also discover in the oven the package that contains 50g of cocaine. The police track down the missing $1000 cash to Mike’s grandfather. Referring to unit materials answer the following: a) Consider the criminal liability of Mike in relation to the cash, and any relevant defences. (15 marks) b) Consider the criminal liability of Mike in relation to the cocaine. (10 marks) c) Consider the criminal liability of Mike’s grandfather in relation to the $1000. (5 marks) PART B: Critical Reflection (15 marks) Part B should be max. 750 words. The experiences of Aboriginal and Torres Strait Islander peoples with the criminal justice system are complex. The complexities are shaped by the historical and political context of our legal system. Referring to the study materials covered in this unit, critically reflect on the relationship between Aboriginal and Torres Strait Islander peoples and the criminal law in Australia by focusing on one or more relevant key issues. In doing so, consider the impact which the relevant study materials have had on shaping your understanding of how Aboriginal and Torres Strait Islander peoples are treated in the Australian criminal justice system. Use the following questions as prompts: · Did the content of the study materials tie in with your pre-existing knowledge? · Did the above content challenge the way you think, or did it affirm what you already knew? · What are, in your view, the most important issues relating to the treatment of Aboriginal and Torres Strait Islander peoples by the criminal law system in Australia? Explain your view. · Do you have any suggestions about how to improve the current situation? Your answer should not be limited to only addressing the above prompts, which are just a guide. END OF EXAMINATION 1
Answered 24 days AfterJun 19, 2021

Answer To: C/C++ Programming in a UNIX Environment, CS 3377, Problem Set 03 Submit as four shell script files...

Karishma answered on Jul 13 2021
156 Votes
PART B: Critical Reflection
Aboriginal and Torres Strait Islander are the ancient natives of Australia and have now been recognised as Sover
eign People. Both belong to different group/tribes of people, wherein on one hand, Aboriginal is associated with original peoples of mainland Australia and on another hand Torres Strait belong to and are referred as original peoples of few islands in North of Australia. They are at times also referred to as Indigenous People.
These Indigenous people have their own cultural beliefs, forms of creative expression. One such belief is that the physical environment came into existence due to action of spiritual ancestors. Since the history, the path for Aboriginal and Torres Strait Islander with Criminal justice had been extremely difficult and complicated. From the start at federation, there was complete control and authority over these people by States and communities. The history showcases the way in which racist belief turned into legislations. There was so much control by States on these people. There is a concerning relationship between these people and criminal legal justice system of the land. For example, there is a disparity and high level of Indigenous juveniles / youth between age group 0-17 and adults between age groups 18-24 which are major cause of concern for criminal justice system. Apart from indigenous youth, there is also intergenerational...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here