Now, you’re required to write a Python script for forking existing processes by following this algorithm:
1. start by importing the os (operating systems) Python module.
2.then define two distinct functions, one called child() and another called parent(). Both the child() and the parent() just print out the process identifier(PID).
3 the parent() function, first prints out the PID of the process that we are in before calling the os.fork() method to fork the current running process. This creates a brand new process, which receives its own unique PID. Then call the child() function, which prints out the current PID. This PID, should be different from the original PID that was printed out at the start of the script's execution. This different PID represents a successful forking and a completely new process being created.
Draw a class diagram and use case diagram for suppliers of building construction . Write down all the methodclass.
example: getname()
Your Employer requests you to develop a C++
program that allows a user to determine if a student qualifies for the NSFAS through their Average score for Mathematics, English and Physical Sciences. The
program must receive three(3) marks for each of the subject in order to calculate the average.
The average mark must determine whether or not a candidate qualifies for NSFAS.
The number of non-qualifying NSFAS students is
multiplied with the highest amount(R75000) allocated for NSFAS.
1. Prompt the user to capture marks for Mathematics, Physics and English 2. The funding amounts are broken down as follows, an average marks of : a) 75% and above - R75000-00 b) 60% up to 74% - R60000-00 c) 50% up to 59% - R40000-00
LA is an array with 15 elements .write a c++ program that rearrange the elements in LA in ascending order and delete the largest element in the array .
You are given
The first line of input is an integer
In the given example, there are
6 inputs. 1, 2, 3, 5, 9, 6. The numbers 3, 9, 6 are multiples of 3.
Out put should be
3
9
6
Sample Input 1
6
1
2
3
5
9
6
Sample Output 1
3
9
6
Sample Input 2
4
1
3
6
8
Sample Output 2
3
6
You are given
The first line of input is an integer
In the given example, there are
6 inputs. 1, 2, 3, 5, 9, 6After
3, we have encountered 5, which is a multiple of 5.So, the output should be
Write a menu driven application to perform the banking operations using JAVA.
Your application must contain the following functionalities. Use constructors, getter
and setter functions wherever required.
In the menu give options for Account Creation, Balance Enquiry,
Deposit and
Withdrawal
Do not allow to withdraw money if the balance is < = 500
Initial balance must be a minimum of 500.
Write a menu driven application to perform the banking operations using JAVA.
Your application must contain the following functionalities. Use constructors, getter
and setter functions wherever required.
In the menu give options for Account Creation, Balance Enquiry,
Deposit and
Withdrawal
Do not allow to withdraw money if the balance is < = 500
Initial balance must be a minimum of 500.