Questions :
Assignment 1 (10%):
Assignment 2 (10%):
Assignment 3 (10%):
Assignment 4 (10%):
Assignment 5 (10%):
MidTerm (10%):
Final (40%):
TOTAL (100%):
FORMULA:
TOTAL = Assignment1+Assignment2+Assignment3+Assignment4+Assignment5+MidTerm+Final
Answer :
#include < iostream.h >
main()
{
//declair variable
float ass1, ass2, ass3, ass4, ass5, mid, final, total;
cout<<"Muhammad FIrdaus Bin Hasmi" << endl;
cout<<"05-201006-00003" << endl;
//input1
cout<<"\nassignment 1 = ";
cin>>ass1;
//input2
cout<<"assignment 2 = ";
cin>>ass2;
//input3
cout<<"assignment 3 = ";
cin>>ass3;
//input4
cout<<"assignment 4 = ";
cin>>ass4;
//input5
cout<<"assignment 5 = ";
cin>>ass5;
//input6
cout<<"midterm = ";
cin>>mid;
//input7
cout<<"final = ";
cin>>final;
//formula
total=ass1+ass2+ass3+ass4+ass5+mid+final;
//output
cout<<"\nOutput :- " << endl;
cout<<"assignment 1 = " << ass1 << endl;
cout<<"assignment 2 = " << ass2 << endl;
cout<<"assignment 3 = " << ass3 << endl;
cout<<"assignment 4 = " << ass4 << endl;
cout<<"assignment 5 = " << ass5 << endl;
cout<<"midterm = " << mid << endl;
cout<<"final = " << final << endl;
cout<<"\ntotal = " << total << endl << endl;
return 0;
}
No comments:
Post a Comment