0% found this document useful (0 votes)
48 views1 page

Exercise1 PDF

The document describes a C++ program that prompts a user to enter a student's ID, name, degree, year of study, and scores on 4 exams. It then calculates the total exam score by adding the individual exam scores together and calculates the average score by dividing the total score by the number of exams. The program outputs the student details and exam scores along with the total score and average score.

Uploaded by

Neil Basabe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views1 page

Exercise1 PDF

The document describes a C++ program that prompts a user to enter a student's ID, name, degree, year of study, and scores on 4 exams. It then calculates the total exam score by adding the individual exam scores together and calculates the average score by dividing the total score by the number of exams. The program outputs the student details and exam scores along with the total score and average score.

Uploaded by

Neil Basabe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

September 16, 2020

Exercise1.cpp

Problem: Create a C++ program that will prompt the user to enter the student id, name of the student,

degree, year, and 4 major exam scores (Prelim, Midterm, Semifinal, Final). Thereafter,

the program will calculate and display the total exam score and the average score.

Example Output:

Student #: 123456
Name : Neil
Degree : BSCS
Year :1
Major Exam Scores
Prelim : 100
Midterm : 100
Semifinal: 100
Final : 99
Total Score : 399
Average Score: 99.75

You might also like