Grade Assessment Item Percentage of Final Grade Test 1 (0.0 - 100.0) 25% Test 2
ID: 3527582 • Letter: G
Question
Grade Assessment Item Percentage of Final Grade Test 1 (0.0 - 100.0) 25% Test 2 (0.0 - 100.0) 25% Final exam (0.0 - 100.0) 50% Using this scale, compute a course grade as a weighted sum for the combination of two tests and one final exam. You need to read from keyboard the Name of the student, his social security number, and scores of test 1, test 2, and final exam. You do not need to read input headings but should have your own data. You will compute the Grade. A sample of input/output values is given below: INPUT Name of Student: John-Murphy Student Soc. Security #: 492-35-5984 Test 1: 80.0 Test 2: 90.0 Final Exam: 100.0 OUTPUT Name of Student: John-Murphy Student Soc. Security #: 492-35-5984 Test 1: 80.0 Test 2: 90.0 Final Exam: 100.0 Grade: 92.5% I've written the code but it keeps giving me errors and I can't seem to find anyway to fix the problem. #include #include using namespace std; int Main() { string StudentName; int Social, Test1, Test2, Exam, Average, Total; cout<< "Name of Student: "; cin>> StudentName; cout<< "What is " << StudentName <<"'s Social Security Number?"; cin>> Social; cout<< "Grade of first test: "; cin>> Test1; cout<< "Grade of Second test: "; cin>> Test2; cout<< "Grade of the exam: "; cin>> Exam; Total = Test1 + Test2 + Exam; Average = Total/3; cout<< "Name of Student: " << StudentName<<endl; cout<< StudentName <<"'s Social Security Number:" << Social <<endl; cout<< "Grade of first test:"<< Test1 <<endl; cout<< "Grade of Second test:"<< Test2 <<endl; cout<< "Grade of the exam:"<< Exam <<endl; cout<< "Final Grade" << Average <<endl; return 0; } These are the three errors I'm getting: make: *** [HW1.exe] Error 1 HW1 C/C++ Problem recipe for target `HW1.exe' failed makefile /HW1/Debug line 44 C/C++ Problem undefined reference to `_WinMain@16' HW1 line 39, external location: usrsrcdebugcygwin-1.7.17-1winsupcygwinliblibcmain.c C/C++ ProblemExplanation / Answer
you should keep main as small letter #include using namespace std; int main() { string StudentName; int Social, Test1, Test2, Exam, Average, Total; cout> StudentName; cout Exam; Total = Test1 + Test2 + Exam; Average = Total/3; coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.