Note:For my frist exam (my midterm) I had a really bad experiance, the expert couldn't even delvier a single question on time. I recevied the ansers 24 hours late.When my exam is finsihed. I scored...

1 answer below »
Note:For my frist exam (my midterm) I had a really bad experiance, the expert couldn't even delvier a single question on time. I recevied the ansers 24 hours late.When my exam is finsihed. I scored very low on that exam inspite of paying money. This time please make sure you assign this to your best expert and alsoI need one by one answers, meaning right after the expert answers a question they should send me the solution one by one. Because I can't wait like last time, till the last minute. When the time came to submit the exam, I did not have a single solution from the expert. Once again I'm emphasizing, I need the best expert on the Job and I need solutions one by one, right after the expert finishes one question solution they should send it to me .
This is a Exam based on Python programming, Linux Process Creation meaning using fork() function to spawn a new process. How to create a child processusing fork, running a C function using the child process, and parent process learning using the waitpid function to conclude that the child process hascompleted and PERL Programming. All this should work in Linux in general.
Exam Detatils:THIS IS A LINUX ENVIROMENT based ONLINE EXAM. THE EXAM IS ON Saturday, May 9, 2020, 7 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 May 9th .The expert has to work on the assignment and I need one by one answers, meaning right after the expert answers a question they should send methe solution one by one immediatley. By 8:45 pm I should have all the questions.The Topics are as follows:
1) Python: modules, comments, print, arithmetic operators, order of operation, lists, tuples, dictionaries, conditional operators, logical operators, if, else, elif, loops, for, while, break, continue, functions, return, readline(), string operators, file i/o, classes, objects and much more.
2) Process Creation in C: fork() function in Linux/Unix to spawn a new process. Cover the basics of what it does, how to do work in parent and child processes, and how to correctly terminate. Basics of fork and checking parent vs child - Building via command line and GCC - Structing code with a function to do work. - Seeing processes via ps -a - Demo having two separate address spaces - Return a value from child to parent using exit() and wait() - See zombie process - See fork in a loop.
3) PERL: basics plus pragmas, scalars, arrays, hashes, printf, print, math functions, conditionals, boolean operators, if, elsif, else, unless, ternary operator, looping, for, foreach, while, do while, reading input, given, strings functions, s///, ranges, slice, sort, push, pop, join, subroutines, recursive subroutines, packages, object oriented Perl and so much more.
4) Linux Process Communication: THIS IS JUST AN EXAMPLE QUESTION. QUESTION LIKE THIS MAY APPEAR ON THE EXAM. Write a C/C++ program that creates a pipe between the parent and child to send data using the pipe function. Ask the user to provide his/her name as an input to the program. Make the parent process write Hello followed by the name typed in by the user, for example, “Hello John Smith”, to the pipe, and let the child process display the text in the standard output. Make parent and child print their process ids before writing to the pipe and after reading from the pipe.
Exam Contents:I will be attaching the exam contents such as an previous semester exam paper, slides we use in class, Textbook, video tutorials we used in class and Assignments.THIS IS VERY IMPORTANT, THE PREVIOUS SEMSETER EXAM PAPER SHOWS THE PATTERN OF QUESTION WE WILL BE GETTING, NOT SAME QUESTIONS. JUST PATTERN. The exam is similar and resembles the sample final exam question paper and Assignments. All the assignments I'm attaching are done by your experts only.


Answered 18 days AfterApr 20, 2021

Answer To: Note:For my frist exam (my midterm) I had a really bad experiance, the expert couldn't even delvier...

Swapnil answered on May 09 2021
156 Votes
1)
(Bash)
from random import randint
def mode(l):
return max(set(l), key=l.count)
def squares(l):
sum=0
for i in l:
return sum
count=0
numbers=[]
while count<23:
numbers.append(randint(-17, 81))
count=count+1
print(" Mode: ",mode(numbers)," Sum of Squares: ",squares(numbers))
(python)
from random import randint
start = randint(-17, 81)
end = randint(-17, 81)
if start > end:
start, end = end, start
i = count < 23
while i <= end:
print(i)
i += 1
2)
(BASH)
#!/usr/bin/env bash
average() {
argCheck 2 $#
d=$(bc <<< "scale=2; $1 + $2")
echo $d
}
square() {
argCheck 1 $#
d=$(multiplication $1 $1)
echo $d
}
division() {
argCheck 2 $#
num1=$2
num2=0.0
if (( $(echo "$num1 == $num2" |bc -l) )); then
echo "Error: Cannot divide by zero"
exit 4;
fi
d=$(bc <<< "scale=2; $1/$2")
echo $d
}
sqrt() {
argCheck 1 $#
num2=0.00
if (( $(echo "$1 < $num2" | bc -l) )); then
echo "Error: Cannot take...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here