0% found this document useful (0 votes)
52 views2 pages

Prgramming Assignment One

The document contains a flowchart for determining grades based on marks, outlining a decision-making process for grades A, B, C, and D. It also includes a simple program to calculate the sum of the first 50 natural numbers. Additionally, there is a flowchart for calculating simple interest using the formula I = (P * T * R)/100.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views2 pages

Prgramming Assignment One

The document contains a flowchart for determining grades based on marks, outlining a decision-making process for grades A, B, C, and D. It also includes a simple program to calculate the sum of the first 50 natural numbers. Additionally, there is a flowchart for calculating simple interest using the formula I = (P * T * R)/100.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

MWABA ANTHONY D2157

CLASS EXERCISE QUESTION ONE

START

READ MARKS

IF MARKS >=90 NO

YES
IF MARKS >= 80
YES NO

GRADE = B NO
GRADE = A IF MARKS >= 65

YES

GRADE = C GRADE = D

Print grade

END

QUESTION 2

/*MWABA ANTHONY program to find the sum of first 50 natural numbers */


Main ()
{
int num, sum = 0;
for (num = 1; num <= 50; num++)
{
sum = sum +num;
}
printf("Sum = %d\n",sum);

}
flowchart for calcula ng the simple interest using the formula I = (P * T * R)/100

START

READ P,T,R

I=P*T*R/100

PRINT I

END

You might also like