0% found this document useful (0 votes)
25 views3 pages

Project Work

project

Uploaded by

muazmohamedisa
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)
25 views3 pages

Project Work

project

Uploaded by

muazmohamedisa
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/ 3

Computer programming 1, Group project

Problem Statement
This time you make a report card of students. Assume that a student joins a beginner’s course in
C++. To get a grade card, a student needs to meet the following criteria:
• He needs to submit two assignments (50 marks each) before he appears in the final
examination (which is 100 marks).
• You calculate the final score based on these assignment scores and the final examination
score. Consider 25% of total marks in assignment and 75% marks in the final
examination to prepare the grade card. When a student scores more than 90, he gets A+,
which means Outstanding. If he scores more than 80, he gets A, which means Very
Good. If the score is 70 or above, he gets B, which means Good. Consider a score that is
less than 70 as Fail.
• Try to manage your application in a better way. For example, if any of the assignment
scores is greater than 50, your application should report an error. The same rule applies if
anyone inputs a final examination score greater than 100.
• You save these student records in text files, which have names like student_name.txt.
You store these files in a separate folder. You can name it GradeScores.
I give you three sample outputs to understand it better. Here is the sample-1. A user enters the
valid inputs.
Enter the student’s name: natty
Assignment-1 score:25.5
Assignment-2 score:34.5
Exam score:87
Final score:80.25
Grade: A (Very Good)
The current working directory:
E:\MyPrograms\Cplusplus\Projects
Get the report card at:
E:\MyPrograms\cplusplus\Projects\GradeScores\natty.txt
Here is a sample report card that you store. The content of the text file natty.txt may look like the
following:
Computer programming 1, Group project

***Report Card***
***Course name: C++ for Beginners***
==================================================
Student Name: natty
Assignment-1 Score:25.5
Assignment-2 Score:34.5
Exam Score:87.0
Final score:80.25
Grade/Remark: A (Very Good)
Here is the sample-2. A user enters an assignment score that is above 50:
Enter the student’s name: yared
Assignment-1 score:23
Assignment-2 score:51.5
Error: Assignment2 score cannot be greater than 50.
Provide the correct input next time!

Here is the sample-3. A user enters the final examination score that is above 100:
Enter the student’s name: Ruth
Assignment-1 score:23
Assignment-2 score:45.3
Exam score:105
Error: Final exam score cannot be greater than 100.
Provide the correct input next time!
Computer programming 1, Group project

NB:
• No more than 3 persons with in one group
• Deadline: Final exam day
• Total mark: 25pts

You might also like