Calculate the average assignment grade, C/C++ Programming

Assignment Help:

1. The main program must be in a file called A4.cpp

2. The data must be read in from a data file.  The user must enter the filename.  A sample data file will be provided on Moodle.  Sample output must be provided using this file.

3. The program must be able to handle a variable number of records.  However, the number of records should not exceed 200.  If  the number of records exceed this,  the program must display a single error message and ignore the rest of the records.

4. All data from the file must be stored in arrays.  The assignment data must be stored in a multi-dimensional array.

5. The program must validate all data and generate error messages if the record is malformed or data is not within specification.  The error message should indicate which record is malformed (i.e. the line number) and what is wrong with the record. The program will then continue to process the rest of the file ignoring the bad record.

6. Your code should be modular, using a variety of functions.  At least one function must return a value, another must modify data in arrays and another must be a void function.  Your code will contain far more then these three, however, these three types must exist.

7. The program will sort the data by student ID.  You can use an insertion or selection sort.

8. The source code used to sort the data must be stored in files sort.cpp and sort.h

9. Calculate the average assignment grade, numeric course grade and letter grade.  These values are to be stored in arrays.  The letter grade is to be an array of enum values.

10. The program will output the sorted data in a tabular format in the following order :

1. Student ID

2. Student's name (Given and family name)

3. Midterm

4. Average assignment grade

5. Final exam

6. Numeric course grade (2 decimal places)

7. Letter grade

The last row of the table should contain the average values for the midterm, assignments, final exam and numeric course grade.

11. After displaying the table the user should be prompted to enter a student ID.  If the ID is valid, display all the information (data from the file and calculated values) about the student.  Use a binary search to locate the student's information.  If the record is not found, display an error message.  Allow the user to continue to lookup most students until they choose to exit.

12. The source code used to search the data must be stored in files search.cpp and search.h


Related Discussions:- Calculate the average assignment grade

Boardcoloring., Smugglers are becoming very smart day by day. Now they have...

Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send

Program, Define a class polynomial with three private data members a, b and...

Define a class polynomial with three private data members a, b and c of type double to represent the coefficient of two degree polynomial(ax^2+bx+c). Include a constructor in a pol

C program to change feet and inches into meter, Aim: To implement a progra...

Aim: To implement a program to convert distance given in feet and inches into meters and centimeters and vice versa. Code:                         class mcm; class

Luminous Jewels - The Polishing Game, Byteland county is very famous for lu...

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

Define classes and objects, Classes and Objects A class is a vehicle to...

Classes and Objects A class is a vehicle to execute the OOP features in the C++ language. Once a class is declared, an object of that type can be explained. An object is said t

Make a connection to fifa ultimate team 14 using c++ or c#, I need to creat...

I need to create a connection to FIFA Ultimate Team 14, I want to utilize C++ specifically for the reason that that is the language I have the most experience in. There are a co

Describe the oops concept - class, There are so many different concepts rel...

There are so many different concepts related with OOP (Object-oriented programming) such as: Class Object Inheritance Polymorphism Abstraction Encapsulation

Define generic bitwise operations, Define Generic Bitwise Operations? ...

Define Generic Bitwise Operations? Bitwise operators only work on an incomplete number of types int and char. It turns out there's above one kind of int. In particular there's

Program to draw a circle - c program, Program to draw a circle: int ma...

Program to draw a circle: int main(void) {    /* request auto detection */    int gdriver = DETECT, gmode, errorcode;    int midx, midy;    int radius = 100;

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd