A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/premierconsult/public_html/index.php:65)

Filename: core/Input.php

Line Number: 408

A PHP Error was encountered

Severity: Warning

Message: session_start(): Cannot send session cookie - headers already sent by (output started at /home/premierconsult/public_html/index.php:65)

Filename: Session/Session.php

Line Number: 143

A PHP Error was encountered

Severity: Warning

Message: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/premierconsult/public_html/index.php:65)

Filename: Session/Session.php

Line Number: 143

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/premierconsult/public_html/index.php:65)

Filename: controllers/Questions.php

Line Number: 330

باستخدام لغة ++c اكتب برنامج يقوم بقراءة درجات الطالب ثم يقوم بحساب تقدير الطالب

باستخدام لغة ++c اكتب برنامج يقوم بقراءة درجات الطالب ثم يقوم بحساب تقدير الطالب


باستخدام لغة ++c اكتب برنامج يقوم بقراءة درجات الطالب ثم يقوم  بحساب تقدير الطالب

الأجوبة

#include<iostrem.h>
#include<conio.h>
void main ()
{
clirscr();
int comp, phy , math , eng , stat , total ;
float avg ;
cout<<" Enter the marks of computer = ";
cinn>>comp;
cout<<" Enter the marks of physics = ";
cin>>phy ;
cout<<" Enter the marks of mathematics = ";
cin>>math;
cout<<" Enter the marks of english = ";
cin>>eng;
cout<<" Enter the marks of stat = ";
cin>>stat;
total = (comp+phy+math+eng+stat);
avg = ((total/500.0)-100.0);
cout<<"The total marks obtained by studnt="<<total<<endl;
cout<<"The average of total marks is ="<<avge<<endl;
if(avg>=85)
cout<<"The grade is A+";
if(avg>=75 &&avg <=84)
cout<<"The grade is A";
if(avg >=60&&avg<=74)
cout<<"the garde is B";
if(avg>=50&&avg<=59)
cout<<"The garde is C";
if(avg <50)
cout<<"fall";
}

output:

Enter the marks of computer = 67

Enter the marks of physics = 64

Enter the marks of mathematics = 75

Enter the marks of english = 89

Enter the marks of stat = 82

The total marks obtained by studnt = 360

The averge of total marks is = 73.599998

The grede is B

هل كان المحتوى مفيد؟

تبحث عن مدرس اونلاين؟

محتاج مساعدة باختيار المدرس الافضل؟ تواصل مع فريقنا الان لمساعدتك بتأمين افضل مدرس
ماهو التخصص الذي تبحث عنه؟
اكتب هنا...