Computer Science, asked by rajveerkaur54999, 2 months ago

write an algorithm and flow chart for:
Create report card of the grades scored by a student in high school in 5 subjects. it must display all its scores in different subjects separately. use modular design.

Answers

Answered by Ari114
3

Answer:

please mark as brainlist

Explanation:

Algorithms

Step 1 : start

Step 2 : read marks or Percentage

Step 3 : if marks >= 80 then grade =A, go to step 7

Step 4 : if marks >= 60 and marks <=80 then grade = B, go to step 7

Step 5 : if marks >=40 and marks <=60 then grade = C go to step 7

Step 6 : display failed

Step 7 : display grade.

Step 8 : stop.

flow char In the picture and algorithms I'd given above .

program

#include <stdio.h>

int main(void)

{

int num;

printf("Enter your mark ");

scanf("%d",&num);

printf(" You entered %d Marks n", num); // printing outputs

if(num >= 80){

printf(" You got A grade n"); // printing outputs

}

else if ( num >=60){ // Note the space between else & if

printf(" You got B grade n");

}

else if ( num >=40){

printf(" You got C grade n");

}

else if ( num < 40){

printf(" You Failed in this exam n");

printf(" Better Luck Next Time n");

}

return 0;

}

Attachments:
Similar questions