رد: [cpcs 202 - برمجة 1] لديك سؤال , شيء غير مفهوم ,,, تفضل هنا , موضوع مفيد
Write a program that reads numbers of students(max 30), then store the student ID (serial numbers start from 1, you must fill it) ,and read from user: mid exam and final exam marks all store in arrays such as:
1
2
3
4
5
6
40
30
40
39
10
15
60
30
39
20
48
44
No. of employee = 6
id mid(max40) final(max 60)
100
60
79
59
58
59
2. And then create another array to store total marks for each student(you will fill it total=mid+final)
100
60
79
60
60
60
3. check if some students get 57,58,59, modify it to 60.
4. Print id and total arrays after modify like bellow example:
5. Using the following functions implement the program:
· Void get_data(int i[],int m[], int f[],int t[],nt no);
//no=length of the arrays
// to fill Id and total, read mid and final from the user .
· Void check_total( int t[],int no);
//to check if the total =57 or 58 or 59, then total =60
· Void display(int i[], int t[],int no);
// print id and total values .
Output:
How many student you have:6
Enter mid and final for s1:40 60
Enter mid and final for s2:30 30
Enter mid and final for s3:40 39
Enter mid and final for s4:39 20
Enter mid and final for s5:10 48
Enter mid and final for s6 44
ID
total
1
100
2
60
3
79
4
60
5
60
6
60
مستر احمد عارفه اني ططفشتك
التسليم يوم السبت و احتاج احله بلييييييز
|