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

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

Posted Date: 3/8/2013 5:30:19 AM | Location : United States

Related Discussions:- Calculate the average assignment grade, Assignment Help, Ask Question on Calculate the average assignment grade, Get Answer, Expert's Help, Calculate the average assignment grade Discussions

Write discussion on Calculate the average assignment grade
Your posts are moderated
Related Questions
Add words in Dictionary: void Dictionary::add( Object& objectToAdd ) {     if( !objectToAdd.isAssociation() )         ClassLib_error( __ENOTASSOC );     else

Compound Assignment Operators Apart from the binary and the unary arithmetic operators, we also have compound assignment operators. These are +=, -=, *=, /=, %=. Using these op

how many types of loops are there and whay are they and what are its uses

Stack operations - C++: Write a program to define basic stack operations in c++. int Stack::push(int elem) {    int m = getmax();    if (top    {       put_

We move a high quantity of large Video files (200mb - 2 GB each) across the internet. We have a Linux server (ubuntu) hosted in a datacenter (1Gbps) operating an FTP server. Our

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b.     #include float start

What is the purpose of return values? Can you not return any values from a function? If you could what would he function look like?

C Program to check PRIME NUMBERS   main() {           int i,k,r,flag;           clrscr();           printf("ENTER THE NO. TO CHECK IT IS PRIME OR NOT: ");

A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2

1. Basic Heap: Each memory location in our model of the RAM will be an instance of type Memory: 2. typedef union Memory_u Memory; 3. union Memory_u{ 4. char character;