Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a complete program that prompts how many students? reads the number. Make

ID: 3655189 • Letter: W

Question

Write a complete program that prompts how many students? reads the number. Make a loop for that many students, prompts the first student for name and how many tests, get name, number of tests. Make a loop to sum all of her/his tests and compute the average of her/his test. Your program should output student name, test average and a letter grade. NOTE: to get credit you must write at least one function. Note: To assign the letter grade use (if average >= 90, A, >=80, B etc.).

Explanation / Answer

*************************************/code**************************** #include #include #include #include #define RAWWR int main void average_display( int *array, int num); void input_test( int *arryptr, int num); void get_string( char *a); RAWWR ( void ) { int i; int test; int students; int * test_array; char name[100]; printf( "how many students? "); scanf( "%d", &students); for( i = 0; i = 80) printf( "Your grade is a B! "); else if ( average >= 70) printf( "Your grade is a C! "); else if ( average >= 60) printf( "Dekhoda doesn't give D's, but it would be a D! "); else if ( average >= 0) printf( "Your somehow Failed, which means you got a F!!!!! "); } void get_string(char * a) { fflush(stdin); while((*a++=getchar())!=' ') ; *(--a)=''; }
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote