THIS IS A LINUX ENVIROMENT ONLINE EXAM. THE EXAM IS ON MARCH 27TH 7:00 PM US CENTRAL TIME(DALLAS,TX). Please follow the directions given here:1) The exam pdf will be uploaded in instant chat by 7:00...

1 answer below »
THIS IS A LINUX ENVIROMENT ONLINE EXAM. THE EXAM IS ON MARCH 27TH 7:00 PM US CENTRAL TIME(DALLAS,TX). Please follow the directions given here:1) The exam pdf will be uploaded in instant chat by 7:00 pm US central time on March 27th. The expert has to work on the assignment and get the solution back to me by 8:45 pm.2) The exam is on Linux commands and bash scripting in linux and C.3) the expert has to confirm that they have started on the assignment immediately after I upload the exam on instant chat.
4) All material and a sample question paper will be provided to the expert.5) REMEBER TME IS A VERY IMPORTANT FACTOR


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. C/C++ Programming in a UNIX Environment, CS 3377, Assignment 04 1. [100] Create a bash shell script for a number guessing game. Here are the requirements: a. Your program generates a random number between 0 and 128 and keeps asking the user to guess the number until the user guesses it correctly. b. If the user guesses a number that is lower or higher than the number to be guessed then indicate that information to the user as a ‘low guess’ or a ‘high guess’ so that the user can get to the correct guess quicker. c. The program keeps track on number of guesses taken by the user to get to the correct guess. This is user’s score. d. Your program asks user for the name and adds user’s name and the score in a file that keeps track of the scores by various users. e. At the end of the game, the program displays the top 3 scores (lowest 3 scores) along with the name of the users to conclude the game. John 4 Sam 7 Tony 10 You will submit the following: the shell script that you develop and a short description of your experiential learning while working on this project. The second part should be about 5-10 sentences (less than 150 words) talking about what you learned and the process you used to create the game. Script = 75 Points, Report = 25 Points
Answered 6 days AfterMar 22, 2021

Answer To: THIS IS A LINUX ENVIROMENT ONLINE EXAM. THE EXAM IS ON MARCH 27TH 7:00 PM US CENTRAL...

Sudipta answered on Mar 29 2021
156 Votes
Soln 1:
int b=5, a =7, c[10];
int *p;
a) p=&a; //points to the address of a
b) b=b+*p;
c)
*p=0;
d) p=c+1
e) p=&c
b=*(p+2)
Soln2:
Soln 3: Bash code
lo=-17;
hi=17;
declare -a numArr;
for((i=0;i<5;i++))
do
range=$(($hi-$lo+1));
ans=$RANDOM;
let "ans %=...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here