HI
the prgram below request a user to enter 3 character id number and interger age. a function must be used
that tells the user how many years to retirement. i must pass the age and print
a message in the function. retirement age is 65 for persons over 45 and 70 for all
other persons. the...
(Read More) The programming assignment is to read a text file, extract the words from it, and save them in a 2D array that contains the word and the number of occurrences of that word. For example, if a text file contains the words "first" "second" "third" "second", the array should contain - first 1 second...
(Read More) struct PCB* handleProcessArrival_PP(struct PCB *processhead,struct PCB *processtail,struct PCB *currProcess,struct PCB *newProcess,int currTime){
if(currProcess==NULL){
newProcess->executionStartTime = currTime;
newProcess->executionEndTime =...
(Read More) Just another way to check if a word is palindromic or not.
In my country (Greece) if a word is palindromic we say it is
"καρκινική" that's why i named the fuction in the code kark().
-What it does?
If we would say that word has n letters,then this
compares the first with the n letter, next...
(Read More) I am very poor in calculating complexities.
Please some one let me know what is the complexity of the below program.
I actually want to write a program for finding the nth last element with 0(n) complexity.
but unable write, please give me some idea.
the below code works perfectly and i...
(Read More) This code is just handling the SIGCHLD signal, but as you can see, the parent process should ignore this SIGCHLD signal according to the signal function. But in fact, the parent process will omit the signal function, and handling the child process using "wait". I wonder why the parent do not ignore...
(Read More) Displays which partitions are on which physical hard drives and shows partition starting offset and length.
Developed and tested under XP using a Borland C++ compiler.
Code is not provided for the private includes, but changes to make to code work are trival. References to werrtxt() and...
(Read More) Code written and tested using the Borland C++ compiler.
Code uses access() to determine if an input string exists either as a directory name or as a file name. If access() fails, the string is neither a file or directory and the function terminates. If it does exist, the name is used as input to...
(Read More) /*
difference between %i ad %d
%i reads the value and it recognizes the value as what base
it is when we read the value as 023 (base 8) it is 19 (base 10)
and 0xa(base 16) it is 10 in (base 10).
*/
OUTPUT:
(Read More)