Question
home / study / engineering / computer science / computer science questions and answers / for c++ programming functional requirements: i am grading a programming
home / study / engineering / computer science / computer science questions and answers / for c++ programming functional requirements: i am grading a programming final project in an ...
Question: For C++ programming Functional Requirements: I am grading a programming final project in an advan...
For C++ programming
Functional Requirements:
I am grading a programming final project in an advanced C++ class. I need you to write a program to help me out.
Please create a program that asks for the separate grading points and then gives a total and a letter grade. This program should loop around until I say that I am done. For example: (program display is bold, user input is underlined)
Please enter data for the next student:
Code choice/execution: (total points possible = 50): 40
Modular code: (total points possible = 20): 20
Comments and Formatting (total points possible = 10): 10
Input/Output Professionalism (total points possible = 10): 6
Jing: (total points possible = 10): 10
Calculated Total: 86
Grade: B
Do you wish to enter another assignment? (Y/N) Y
Please enter data for the next student:
Code choice/execution: (total points possible = 50): 50
Modular code: (total points possible = 20): 20
Comments and Formatting (total points possible = 10): 10
Input/Output Professionalism (total points possible = 10): 10
Jing: (total points possible = 10): 10
Calculated Total: 100
Grade: A
Do you wish to enter another assignment? (Y/N) N
Okay, bye!
Programming Requirements:
Design an Assignment class that is derived from the GradedActivity class presented in your book. The Assignment class should determine the grade a student receives on a programming project. The student's total scores can be up to 100, and is determined in the following manner:
Code Execution: 50 points
Modular Code: 20 points
Comments and Formatting: 10 points
IO Professional: 10 points
Comments and Formatting: 10 points
Input/Output/professionalism: 10 points
Jing: 10 points
Your Assignment class should define these point categories as member variables. It must contain proper constructors and methods to hold the data and to add up the total. It will use then use setScore and getLetterGrade from the GradedActivity class to display the results.
Make sure that your member data is protected (with validation that creates an Exit_Failure when necessary).
Make your input and output professional. Break your code down into functions as necessary.
Programming Notes:
The GradedActitivity class is in your book, in edition 9, it starts on page 909; in edition 8, it starts on page 893-4.
The Assignment class is based on (inherits from) the GradedActivity.
The Assignment class will contain members for the scores and the associated mutator/accessor functions, BUT it will call the setScore function and the getLetterGrade function from GradedActivity.
Needed files:
1. all .cpp and .h files
Please specify which files are .cpp and which are .h files.... thanks!
Contents of GradedActivity.h (Version 1) #ifndef GRADEDACTIVTY_A #define GRADEDACTIVTY_A 3 4 11 GradedActivity class declaration 6 class GradedActivity 8 private: 9 double score: To hold the numeric score 10 public 1 Default construccor GradedActivity() 12 13 14 15 16 17 18 19 20 score 0.0; II Constructor GradedActivity (double s) f score s) /I Mutator function void setScore (double s) 21 f score S ) 23 // Accessor functions double getScore() const 24 25 26 27 char getLetterGrade () const; 28 29 #endif f return score; Contents of GradedActivity.cpp (Version 1) #include "GradedActivity.h" 2 4 // Member function GradedActivity: :getLetterGradeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started