User Profile

Collapse

Profile Sidebar

Collapse
jwatson
jwatson
Last Activity: Jan 13 '07, 12:24 PM
Joined: Nov 9 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jwatson
    started a topic Calculation is not producing the right result
    in C

    Calculation is not producing the right result

    Code:
    #include <stdio.h>
    #include <conio.h>
    #include <math.h>
    
    main(){
    int mark,num,pass=0,count;
    float ppass;
    printf("Please enter number of marks?:");
    scanf("%d",&num);
    
    for (count=0;count<num;count++)
    {
    printf("Enter mark%d:",count+1);
    scanf("%d",&mark);
    if (mark>=50)
    ...
    See more | Go to post
    Last edited by Banfa; Jan 13 '07, 02:24 AM. Reason: Added [code] .. [/code] tags

  • jwatson
    replied to Looping and relational (if else) question
    in C
    hey guys i still cant get this work i have tried my best. but i still cant get the "yes" choice to work.... and the Total count part of the program. i would appreciated if anyone can give me a complete brief solution of this program.
    Heres what i have done so far... pretty messy but i tried being new to C programming:
    #include <stdio.h>

    main(){

    int mark,count;
    char decision;...
    See more | Go to post

    Leave a comment:


  • jwatson
    replied to Looping and relational (if else) question
    in C
    i tried build this for a part that ive done but after i type "yes" in the program, it doesnt execute to the while loop??? strange... and help or error in my prog?

    #include <stdio.h>

    main(){

    int mark,count;
    char decision;

    printf("Any mark to enter?yes or no? : ");
    scanf("%d",&dec ision);

    while (decision...
    See more | Go to post

    Leave a comment:


  • jwatson
    replied to Looping and relational (if else) question
    in C
    thanks i for the help..... let me try writing it.
    See more | Go to post

    Leave a comment:


  • jwatson
    started a topic Looping and relational (if else) question
    in C

    Looping and relational (if else) question

    hey guys need help or some guidances please. Basically its a complicated looping and relational question.

    Write a program to calculate te percentage score of the mark of the students.The program will read in any number of marks in integer, and print out the percentage score of the five categories. You should reject all the invalid marks from the input

    The grade should follow the table below
    mark grade...
    See more | Go to post

  • jwatson
    started a topic help me maths program
    in C

    help me maths program

    Write a program to find the roots of quadratic equation. User will key the "a","b","c" , for the equation ax*x+b*x+c = 0. formula given as x = (-b(+)(-) sqrt(b*b-4ac)/2a.

    Prog1: Only find the real roots or identify the complex roots.

    Prog2:Find the roots or the complex roots.

    Guys.. anyone willing to help on this. i am pretty weak at maths...Thanks.
    See more | Go to post

  • jwatson
    started a topic VB from ASP

    VB from ASP

    how can i call a VB program from ASP or PHP???
    See more | Go to post

  • jwatson
    started a topic help here
    in C

    help here

    Hope you guys dun mind... me being a beginner in C programming. Few question need help.

    A program:
    Q1. a)Using for loop to print number from 9 to 0
    b)All odd number between 0 to 9
    c)all even number between 20 to 1(in descending order).....

    Thanks alot......
    See more | Go to post
No activity results to display
Show More
Working...