-
Notifications
You must be signed in to change notification settings - Fork 0
/
12th marks from 10th class mark with practical 30%.C
74 lines (52 loc) · 2.01 KB
/
12th marks from 10th class mark with practical 30%.C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#include<stdio.h>
#include<conio.h>
#include<math.h>
void
main ()
{
/*declaration of all the variable we gona use */
int mathmark, sciencemark, milmark, englishmark, practicalmarkp,
practicalmarkit, practicalmarkc;
float totalmark, physicsmark, chemistrymark, itmark;
int mps;
char name;
printf ("*********__CALULATE YOUR XII PERCENTAGE_**********\n");
/*all the required marks from user */
/* printf("HEY!! ENTER YOUR NAME :) :");
scanf("%c",&name);
printf("HELLO %c \n",name);*/
printf ("Enter Your Mathematics mark: ");
scanf ("%d", &mathmark);
printf ("Enter Your MIL mark: ");
scanf ("%d", &milmark);
printf ("Enter Your English mark: ");
scanf ("%d", &englishmark);
printf ("Enter Your Science mark: ");
scanf ("%d", &sciencemark);
printf ("######### PRACTICAL MARKS ##########\n");
printf ("Enter Practical mark of Physics: ");
scanf ("%d", &practicalmarkp);
printf ("Enter Practical mark of Chemistry: ");
scanf ("%d", &practicalmarkc);
printf ("Enter Practical mark of Information Technology: ");
scanf ("%d", &practicalmarkit);
printf ("############ RESULT OF #############\n");
/*the mark which didnt need any type of calculation */
printf ("Your Total percentage in Mathematics is: %d\n", mathmark);
printf ("Your Total percentage in MIL(ODIA) is: %d\n", milmark);
printf ("Your Total percentage in English is: %d\n", englishmark);
printf ("Your Total percentage in Chemistry is: %d\n", sciencemark);
/*the subjects which needs calculations */
mps = mathmark + sciencemark;
mps = mps / 2;
mps = mps*0.7;
physicsmark = mps+practicalmarkp;
itmark = mps+practicalmarkit;
printf("Your Total percentage in Physics: %f\n",physicsmark);
printf("Your Total percentage in IT: %f\n",itmark);
totalmark = mathmark+milmark+englishmark+sciencemark+physicsmark+itmark;
totalmark = totalmark/6;
printf("YOUR WHOLE PERCENTAGE IS: %f ",totalmark);
totalmark=totalmark*6;
printf("YOU SECURED %f MARKS OUT OF 600 !!",totalmark);
}