15,539 Topics

Member Avatar for
Member Avatar for k1d

SHORTEST-JOB-FIRST , PRIORITY , ROUND ROBIN I need the idea of each of the above algorithms as flow chart??? please help me

Member Avatar for k1d
0
135
Member Avatar for riturajraina

Hi! I am developing a project in which i want to run 2 programs simultaneously in such a way that when the user runs 1st program,the 2nd program gets called from the 1st program and now both the 1st program and the 2nd program start executing simultaneously. For ex :Suppose …

Member Avatar for varunrathi
0
418
Member Avatar for RaulC

I have to make an assignment for my class I ve done 9 assingments already but this one got me lost. How can I do it? New concepts reinforced: Pointers 1. Create the function GetEmployeeData. 2. Call the function above passing as arguments the addresses of Name, Id, RateOfPay, and …

Member Avatar for alc6379
0
107
Member Avatar for kiki021600

This is the code I wrote for a calculator in C #include <stdio.h> int main (int argc, char **argv) { int i; int value; int total; char operator; total=atoi(argv[1]); for(i=2; argc>i+1; i=i+2) { operator=argv[i][0]; value=atoi(argv[i+1]); if(operator=='+') { total=total+value; } else if(operator=='-') { total=total-value; } else if(operator=='*') { total=total*value; } else …

0
68
Member Avatar for jifiii

Hello, I am trying to write a tee filter in C language, almost like the UNIX utility. But I have no idea where to begin can anybody give me a direction I should start in.

Member Avatar for alc6379
0
116
Member Avatar for irish

I am taking a class in C and I am having a problem bringing an int through scanf. I have to create a function that will check a date in this format (MMDDYY). So I have set up a scanf for the users input and then I bring it into …

Member Avatar for vegaseat
0
155
Member Avatar for dalaharp

hi, in turbo C the maximum array size i am able to specify is array[250][250].. what should i do to enlarge this size to say..array[512][512].. i dont know a thing about memory allocation, so please help me out/.. :-|

Member Avatar for vegaseat
0
154
Member Avatar for tyalangan

Hey everyone. Been doing C for a little while now and this website has helped me in advancing my knowledge and skills in C programming. I have another question now... it's really bugging me actually... I'm trying to make a program basically just encode and decode. It seems too simple …

Member Avatar for vegaseat
0
159
Member Avatar for sherbertmonkey

Ight im kinda stressed now i have this program due in like 3 hrs but im gonna turn it in late! I would show you my progression but its just the frame work of my thoughts and nothing on it answers my question. I have to creat a calendar using …

Member Avatar for Dave Sinkula
0
103
Member Avatar for missy

this is the beginner again how do u display one of three user-selected shapes, ('T'=triangle, 'D'=diamond, or 'R'=rectangle and 'X' to terminate). using a switch statement. please help me with the following. prompt user to choose a shape, using a switch statement, then, choose the appropriate code/function required to prompt …

Member Avatar for jwenting
0
97
Member Avatar for lizjci

im studying programming fundamentals..I dont know what is the commands and syntax of c language, pls can u give me some definition and information about c language...thnks!!!!!!!!! ;)

Member Avatar for Sphyenx
0
691
Member Avatar for erin21gobra

I know it refers back to variable but I have never seen it used before, could someone please explain :o void change_item( diner * d, float *total ) { int item_num, quantity, new_item_num, new_quantity; float price; display_items(d); do { printf("\nEnter item number to be added : "); scanf(" %d", &item_num …

Member Avatar for serfurj
-1
203
Member Avatar for Archer

Is my code correct??? I would like to find the percentage like for example: 30pcs of 60pcs is 50%. But how do I code it??? I mean, how to code to get the PERCENTAGE... Is the formula: (num/total) * 100 ??? Is this correct: [code] for(x=0;x<3;x++) { y=total[x]; p[x]=((float)(y/grand))*100; } …

Member Avatar for Dave Sinkula
0
104
Member Avatar for thatsalok

Hi All, In one of my project, I need signed Key Algo. As crypto always go miles over my head. So if any provide me nice pointer or source code. Let me explain looking for this type of thing. Using user name (any name) I generate the Keythat key I …

0
54
Member Avatar for potential

guys, i need your help. please... i need to make a function which compares 2 values if they are equal up to 1,2,3,4,5 significant figures. it needs 3 parameters: x1, x2 (the values to be compared) and sf (the # of sign. figures) i think i need to subtract x1 …

Member Avatar for anastacia
0
117
Member Avatar for Reagan

I am trying to get a program to draw a sine curve (from 0 to 2pi). It takes 8 lines to draw the complete curve. However, the user can choose to use up to 100 lines to make the curve smoother. How do I get the program to calculate that? …

Member Avatar for nvanevski
0
134
Member Avatar for jifiii

Ok, for a lab I have to write the UNIX more filter in C, but I have got everything done execpt one thing. I only hvae it to where it can read 20 lines at a time. But what I want to do is if argv[1] == -Pxx where xx …

Member Avatar for nvanevski
0
179
Member Avatar for indranil
Member Avatar for frrossk
0
68
Member Avatar for givenr

Hello everybody! My name is Given and I'm new to these Forums. I have been given an assignment by my c programing teacher and I don't know where to start can somebody helpme? I have attached my question here.

Member Avatar for givenr
0
93
Member Avatar for nufanvandal

Hello, I have a project which involves basic implementations of linked lists, in C. First though, I have to read the information from a file, which contains all different types(int, char, float) which is my problem...after i read the information into the nodes, it should be smooth sailing.. I was …

Member Avatar for nufanvandal
0
123
Member Avatar for shahin

Hello All I am new at this website and I hope I can be a good memeber. I have a question about C programing language. I need to change the decimal point of a double for example: If I have a doubles with 5 decimal digits 123.45678 234.12345 34.34567 I …

Member Avatar for Dave Sinkula
0
306
Member Avatar for 1o0oBhP

I have done a bit of physics programming and linked lists before. Anyone want me to post a tutorial on it??? would be about single / doubley linked lists, a bit about quick searching and simple particle physics if any1s interested...?

Member Avatar for Dave Sinkula
0
90
Member Avatar for fwongmc

Hello everybody!I am a new to C.My lecture asked us to write a program with pointers.But I do think I get stuck on pointer's stuff.Can anyone please do me a flavour?It is kinda urgent stuffs. The following are the questions: Write a program to dispense change.The user enters the amount …

Member Avatar for jwenting
0
131
Member Avatar for netjet

I can't figure out how to keep it from running off the array and going crazy. I tried a few functions, but they either get rid of my output or funk it up. I want the knight to be a 3 the kill spots a zero and everything else a …

Member Avatar for netjet
0
104
Member Avatar for Archer

Can anyone help me on strings??? I am a newbie and I have a problem dealing with string(school thing). ---------------------------------------------------- A program that checks if the substring "the" exist in the string inputted by the user. * Use a function for checking. ----------------------------------------------------- I'm in a big trouble right now... …

Member Avatar for Archer
0
196
Member Avatar for FireNet

[code] Graphics In Pixel Part II B 'Realization of an Enigma' [/code] Introduction ------------ Life's unfair, writing good tutorials take a lot of time, not typing it, but thinking up the content does. Life's fun too, I had quite a good time learning new stuff. My hobby at present is …

Member Avatar for FireNet
1
242
Member Avatar for CNewbie

I am trying to write a program that takes a series of numbers input by a user and performs some calculations on it. While I have most of the code put together and working perfectly fine, I haven't been able to write code that will refuse the users input if …

Member Avatar for vegaseat
0
157
Member Avatar for jifiii

Does anybody have a source code for the MORE filter used on Linux, because I am curious as to how it works.

Member Avatar for jwenting
0
104
Member Avatar for rama

Hi, i'm working on assignment i did part of it and i need help in some functions which are : add(Ta) and remove(int i)// an exception is thrown when adding a duplicate entry or when deleting with an out of bound index i . the instructor gave us the main …

Member Avatar for rama
0
133
Member Avatar for ellas747

I have this program but a liitle confused about getting the loop to work. i have to write a program that inputs a text and a search string from the keyboard. using a function strstr locate the first occurrence of the search string of the line of text, and assign …

Member Avatar for ellas747
0
121

The End.