Programming Assignment 2 Solution

$35.00 $29.00

Using C++ , design an Abstract Data Type class named MyGrades. The class must have the following private members : • Vectors to hold grades for Programming Assignments and Midterm Exams . • Programming Assignments will count as 20 % , Exam 1 will count as 20 % , and Exam 2 will count as…

5/5 – (2 votes)

You’ll get a: zip file solution

 

Description

5/5 – (2 votes)

Using C++ , design an Abstract Data Type class named MyGrades. The class

must have the following private members :

Vectors to hold grades for Programming Assignments and Midterm

Exams .

Programming Assignments will count as 20 % , Exam 1 will count as 20

% , and Exam 2 will count as 25%..

In Addition , the class should have the following seven member functions :

Set Programming Assignment Grades

Set test grades

Show all programming assignment grades and calculating the average.

Show all test grades

Show overall grades

Delete A Programming Assignment Grade

Delete A Test Grade

Notes :

Must define a class and its functions, followed by implementation of

class functions, and finally followed by main program to run the

program. All in one .cpp.

Programming assignments and test grades must be defined as double.

Characters and other form must be rejected.

Selection must be 1 – 9 and 9 . Otherwise it is rejected.

Program must continue until the user enters 9 to exit the program.

Output values must include 2 numeric values after the decimal point.

Programming Assignment 2

Validations :

Only integers are allowed as.

Programming assignment grades are between 0 and 10

Test grades are between 0 and 25

Style Guidelines

:

At the beginning of your program ( and before the #include statement ), include the following :

Header comments (file documentation block) should be at the top of each file and

should contain: Author / s, Due Date, Assignment Number, Course number and

section, Instructor, and a brief description of the purpose of the code in the file. For

example :

//

//

//

//

//

//

//

//

Author / s : (Your name / s and serial number / s here!!) –

Due Date :

Programming Assignment Number 2

Spring 2018 – CS 3358 – Section Number

Instructor: Husain Gholoom.

<Brief description of the purpose of the program>

Variable names :

Must be meaningful.

The initial letter should be lowercase, following words should be capitalized, no other

caps or punctuation ( i.e. weightInPounds

).

Each variable must be declared on a separate line with a descriptive comment.

Named constants :

Use for most numeric literals.

All capitals with underscores ( i.e. TX_STATE_SALES_TAX

Should occur at top of function, or global (only if necessary)

Page 2CS3358 – Data Structures

Programming Assignment 2

Line length of source code should be no longer than 80 characters (no wrapping of

lines).

Indentation :

Use 2-4 spaces (but be consistent throughout your program).

Indent blocks, within blocks, etc.

Use blank lines to separate sections.

Comments for variables :

All variable definitions should be commented as follows:

int

gender;

// integer value for the gender,

// 1 = Male , 2 = Female ,

Rules :

1. Your program must compile and run. The program will be tested using the latest

version of Codeblocks for windows.

2. Your program must be properly documented according the style above . See the

website for the sample programming style program.

3. You can use repetitions , control structures , try .. catch , and switch statements.

You are not allowed to use regular arrays nor global variables. You are allowed Only

1 dimensional vector arrays.

4. You must use the appropriate libraries in writing this program.

5. Must properly format the output by use the appropriate library. See the output below

. Also , Replace my first / last name with your own first / last name.

6. You must use the following file names :

3358_0_LastName_FirstName_PG2.cpp

3358_1_LastName_FirstName_PG2.cpp

3358_2_LastName_FirstName_PG2.cpp

( Section 0 )

( Section 1 )

( Section 2 )

Where LastName is your Last Name and FirstName is your First Name. For example ,

the file name should look something like :

3358_0_Gholoom_Husain_PG2.cpp ( not .cbp )

Programming Assignment 2 Solution
$35.00 $29.00