What's new

C & C++ Mga paps patulong naman. Di ako bihasa sa Coding at di ko alam pano to sisimulan C++

ShantiDopeee

Forum Guru
Elite
Joined
Mar 2, 2018
Posts
1,609
Solutions
2
Reaction
5,035
Points
1,133
Mga mam/sir.
Need help lang po, di ko po kase talaga alam pano mag code. Di po madalas magturo yung prof namin at kahit aralin ko mga PPT nya di ko magets.
Kahit pasimulan lang po ito kung pano.

Eto po condition nya:
Create a C++ program that will identify the final grade of a student base on a
grading system and determined if pass or fail. (paasing grade 75 up)
Display the name, year and grade of a student.
Grading system: Attendance 10%
Activity 20%
Quiz 30%
Exams 40%
ex. Enter name: Ezekiel Nequit
Year: 1st year
enter total days of class: 15
Enter days attended: 12
Enter total grade of activity: 350
Enter activity grade: 289
Enter total grade of quiz: 150
Enter grade of quiz: 45
Enter total grade of exam: 200
enter grade of exam: 56

Final grade 82

Ezekiel Nequit, 1st year with a grade of 94.8
Passed
Maraming salamat po mga sir!!!!
 
[CODE title="ito po dagdagan mo nlang"]int main()
{
int mark[5], i;
float sum=0,avg;

cout<<"\nEnter Marks in 5 subjects :: \n";
for(i=0; i<5; i++)
{
cout<<"\nEnter Marks[ "<<i+1<<" ] :: ";
cin>>mark;
sum=sum+mark;
}

avg=sum/5;

cout<<"\nYour Grade is :: ";
if(avg>80)
{
cout<<"[ A ]\n";
}
else if(avg>60 && avg<=80)
{
cout<<"[ B ]\n";
}
else if(avg>40 && avg<=60)
{
cout<<"[ C ]\n";
}
else
{
cout<<"[ D ]\n";
}

return 0;
}[/CODE]
 
If else condition, basic arithmetic lang katapat nyan ts. Hindi ko kasi magawa may website pako inaasikaso, wait ka nalang jan sa iba.
 
Kanina pa ko naghahanap sir eh, di ko pa din po makuha yung idea kung paano siya. Di po kase madalas magturo prof namin at mahirap po talaga maintindihan para sakin
 

Similar threads

Back
Top