15,918,003 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 13018326 (Top 3 by date)
Member 13018326
27-Feb-17 1:23am
View
Thanks Graeme_Grant!
Member 13018326
23-Feb-17 2:10am
View
Deleted
One thing I know this is too much to ask for help I have here the exercise regarding that student class can someone gave me an idea on how to implement those grades of student.
1. Add a new class Exam that contains properties Type (create an enum, midterm, prelims and finals), Total Item, Total correct item.
2. Add a new class Recitations that contains properties that contains a list of recitations and their corresponding recitation grade.
3. Add a new class Person that has properties FirstName, LastName and Gender. The Student and Teacher class should inherit from Person.
4. Add a new class Student that will contain the following:
a. List of Exams
b. Recitations
5. Add a new class “Subject” that will contain the list of Students, subject name, and teacher.
6. Implement an interface IGrade that will calculate the following:
a. Exam -> Midterm and Finals Grade is computed as (Total Correct / Total Item * 50 / 50) * 50%
b. Exam -> Prelims Grade is computed as (Total Correct / Total Item * 50 / 50) * 25%
c. Recitation Grade = ( Grade / Total Number of recitations) * 25%
7. Implement an interface IStudentGrade, implemented by the student:
a. Total Grade -> will compute the total grade of exams and recitations. Exam grade + Recitation Grade.
8. Implement an Interface IClassSummary that will be implemented by the Subject class. It will contain three methods, to compute for the # of students per class, # of failed, # of passed.
9. In my main program, I will have a list of all subjects.
Member 13018326
23-Feb-17 2:06am
View
thanks Maciej Los!