Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

?PLEASE READY INSTRUCTIONS CAREFULLY! THIRD TIME POSTING THIS! INCLUDE ALL FILES: GradedActivity.h, GradedActivity.cpp, ProgrammingProject.h, ProgrammingProject.cpp, and main.cpp. Organize it in this form. Also, be sure

?PLEASE READY INSTRUCTIONS CAREFULLY! THIRD TIME POSTING THIS! INCLUDE ALL FILES: GradedActivity.h, GradedActivity.cpp, ProgrammingProject.h, ProgrammingProject.cpp, and main.cpp. Organize it in this form. Also, be sure to input the numbers in the debugger, for example "Enter points for use of classes: ". Then given points such as use of classes: 15 points. For example:

void useOfClasses(int theUseOFclasses)

{

if (theUseOfClasses

{

useOfClasses = theUseOfClasses;

}

else

{

exit(EXIT_FAILURE);

}

}

Confused if we are suppose to use those numbers to have a total up to 100. Be sure to display the total and the grade.

Programming Requirements:

Design a ProgrammingProject class that is derived from the GradedActivity class presented in your book. The ProgrammingProject 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:

Use of classes: 15 points

Code Execution: 35 points

Proper Choice of Code: 21 points

Correct Pseudocode: 10 points

Use of comments: 11 points

Input/Output/professionalism: 8 points

Your ProgrammingProject class should define these point categories as member variables. After entering the scores, a total should be returned, as well as the letter grade, which is obtained from the parent class, GradedActivity.

Make sure that your member data is protected (with low level validation that creates an Exit_Failure when necessary). Validate user's input (high level validation) for all scores >=0 so that your program doesn't cause an Exit_Failure down in the object.

Create a user-interface program to demonstrate your class. 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 ProgrammingProject class is based on (inherits from) the GradedActivity.

The ProgrammingProject 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.

The main program will prompt and input and do high-level validation and store the results and then create the output display.

This isn't a particularly taxing assignment, so spend some time really doing nice work. Show me how you can shine!

Submit to me:

1. all of your .cpp and .h files.

2. a URL to a live jing that shows me that your code is working. Don't forget to show me validation. image text in transcribedimage text in transcribed

rived class inherits the member variables and member functions of the base cilons The any of them being rewritten. Furthermore, new member variables a 15.1 What is Inheritance 909 witl e added to the derived class to make it m unctions of the base class ore specialized than the base class. nd functio at an example of how inheritance can be ies for their students used. Most teachers assign various 85, 90, and so on, and a letter grade such as A, B, C, D, or F. The to ded activities to complete. A graded activity can receive a numeric y class is designed to hold the numeric score and letter grade or e dWhen a numeric score is stored by the class, it automatically determines letter grade. (These files can be found in the Student Source Code Folder Chapter 15 GradedActivit lowing CradedActivity Version 1.) ntents of GradedActivity.h (Version 1) #ifndef GRADEDACTIVITY_A 2 #define GRADEDACTIVITY_A II GradedActivity class declaration 6 class GradedActivity 8 private: 9 double score: 10 public: To hold the numeric score I Default constructor GradedActivity() 12 13 score0.0; ) 15 Constructor 16 GradedActivity(double s) 17 18 19 / Mutator function 20 void setScore (double s) 21 score S ) f score s: ) Accessor functions f return score; ) 23 24 double getScore() const 25 26 27 char getLetterGrade() const; 28 29 #endif ents of GradedActivity.cpp (Version 1) "GradedActivity.h" Conten #include II Member function GradedActivity: :getLetterGrade 71

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions