That's my code so far.Code:#include <stdio.h> int main(int argc, const char * argv[]) { int stud_num, section, std_section, last_section; float cost_factor; /* Get input from user */ printf("Enter the number of students:"); scanf("%d", &stud_num); /* Calculations */ section = stud_num/35; std_section = last_section = cost_factor = (35*section)/stud_num; return 0; }
I'm not sure what the prof is asking for in the standard section and the last section? And I can't even think of how to calculate it.
Here is the assignment page: C code - 35 lines - codepad



1Likes
LinkBack URL
About LinkBacks



