Forum: Shell Scripting Apr 22nd, 2008 |
| Replies: 5 Views: 1,314 nope dpesnt help me , have no clue how to sub function |
Forum: Shell Scripting Apr 22nd, 2008 |
| Replies: 5 Views: 1,314 OH YEa also I have afile named cen which has the tempertures as follow
1
8
22
43
89
283
120
212
1043 |
Forum: Shell Scripting Apr 22nd, 2008 |
| Replies: 5 Views: 1,314 Hi I am trying to write a script that converts centigrade to fahrenheit and vice versa I need to use a sub-function to perform the calculations. Can anyone help me get started on this I am kinda lost... |
Forum: Shell Scripting Apr 16th, 2008 |
| Replies: 3 Views: 770 HELLO i HAVE A SCRIPT THAT TAKES INFORMATION FROM 2 FILES AND PUT IT IN ONE, NOW I NEED TO PUT ALL THE INFORMATION(OUTPUT) INTO A NEW FILE , THIS IS HAS TO BE DONE IN THE ORIGINAL SCRIPT NOT COMMAND... |
Forum: Shell Scripting Apr 10th, 2008 |
| Replies: 0 Views: 635 Please help!!!!
ok
the first file is this
dave 734
bob 313
carol 248
mary313
ted248 |
Forum: Shell Scripting Apr 10th, 2008 |
| Replies: 1 Views: 576 Please help!!!!
ok
the first file is this
dave 734
bob 313
carol 248
mary313
ted248 |
Forum: Shell Scripting Apr 10th, 2008 |
| Replies: 13 Views: 2,708 Please help!!!!
ok
the first file is this
dave 734
bob 313
carol 248
mary313
ted248 |
Forum: Shell Scripting Apr 10th, 2008 |
| Replies: 1 Views: 576 I got 2 fiels with information on both i need to put the information all in one file useing loop. how the hell do I do that, I have 2 files one named p21 the p22 and now in a looping structure i... |
Forum: Shell Scripting Apr 9th, 2008 |
| Replies: 13 Views: 2,708 SEE THE THING IS, i HAVE 2 FILES ONE WITH NAMES WITH DAYS AND THE OTHER WITH NAMES AND NUMBERS. SOMEHOW I NEED TO TAKE INFORMATION FROM BOTH FILES AND PUT IT IN ONE FILE USING LOOP STATEMENT. I HAVE... |
Forum: Shell Scripting Apr 9th, 2008 |
| Replies: 13 Views: 2,708 yes I do , I ahve read the looping chapter but dont really understand which loops to use cause the examples are different |
Forum: Shell Scripting Apr 9th, 2008 |
| Replies: 0 Views: 569 HI i AM TRYING TO WRITE A SHELLS SCRIPT THAT WILL TAKE INFORMATION FROM 2 FILES AND COMBINE IT INTO ONE FILE USING LOOP, NOW i AM STUCK i GOT THE 2 FILES
ONE IS NAMED DATE
THE OTHER IS NAME
... |
Forum: Shell Scripting Apr 9th, 2008 |
| Replies: 13 Views: 2,708 I have the files inputed but I just dont know what loop statement to use and to get it to print it in a file in order by date |
Forum: Shell Scripting Apr 9th, 2008 |
| Replies: 13 Views: 2,708 HEY, I am new at this but I am in a middle of an excercise for an online class I am taking and I am doing a exercise and I am stuck. the instruction are as follow
: write a shell script that will... |
Forum: C May 3rd, 2007 |
| Replies: 17 Views: 2,048 I DID ALL BYMYSELF LOL JK NARUE THANK YOU VERY MUCH YOUR GUIDENCE HELPED ALOT
LOOK AT THE OUTCOME
double sum = 0;
for (x=0; x<2; x++)
{
double avg = ( st[x].assignment + st[x].quiz1 +... |
Forum: C May 3rd, 2007 |
| Replies: 17 Views: 2,048 i relized it was just a simple mistake at teh begging of the code i had set it to 25 studetns but by the time i got to the bottom i just put in a random number of students
now i am done with that... |
Forum: C May 3rd, 2007 |
| Replies: 17 Views: 2,048 hey it worked narue yo the man
i figur wat was wrong i had the tot # of student to 25 so i changed it all to 2 and it worked
now how do i place ** next to the ones with 95 % |
Forum: C May 3rd, 2007 |
| Replies: 17 Views: 2,048 /*for (x=0; x<2; x++)
{
if (st[x].id == 0)
break;
printf("\n %ld ", st[x].id);
printf("\t %s ", st[x].name);
printf("\t %.1f ", st[x].assignment); //print average instead and *** when >95
} ... |
Forum: C May 3rd, 2007 |
| Replies: 17 Views: 2,048 also it is givin me the wrong output
i need to list the avg of all the students entered with a *** next to the ones with 95% or higher |
Forum: C May 3rd, 2007 |
| Replies: 17 Views: 2,048 so why do u divede by 5 not 3 |
Forum: C May 3rd, 2007 |
| Replies: 17 Views: 2,048 ok lets see
so far i got this as your alredy know now where do i start, like how do I total the avg for all students.
struct student
{
long id;
char name[26];
float assignment;
float... |
Forum: C May 3rd, 2007 |
| Replies: 17 Views: 2,048 lol its not homework school is done lastweek
I just had this problem left over and couldt seem to get the avg of all the students also the *** beside all who scored over 95
i did this program... |
Forum: C May 3rd, 2007 |
| Replies: 17 Views: 2,048 at the end of this program we have to add the average of all the students* add and divide by 3* also put a ** next to student who have over 95 % both thses should be displayed at the end
so... |