Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask C/C++ Expert


Home >> C/C++

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

C/C++, Programming

  • Category:- C/C++
  • Reference No.:- M9526950

Have any Question?


Related Questions in C/C++

Question 1find the minimum and maximum of a list of numbers

Question: 1. Find the Minimum and Maximum of a List of Numbers: 10 points File: find_min_max.cpp Write a program that reads some number of integers from the user and finds the minimum and maximum numbers in this list. Th ...

There are several ways to calculate the pulse width of a

There are several ways to calculate the pulse width of a digital input signal. One method is to directly read the input pin and another method (more efficient) is to use a timer and pin change interrupt. Function startTi ...

1 implement the binary search tree bst in c using the node

1. Implement the Binary Search Tree (BST) in C++, using the Node class template provided below. Please read the provided helper methods in class BST, especially for deleteValue(), make sure you get a fully understanding ...

Assignment word matchingwhats a six-letter word that has an

Assignment: Word Matching What's a six-letter word that has an e as its first, third, and fifth letter? Can you find an anagram of pine grave. Or how about a word that starts and ends with ant (other than ant itself, of ...

Why do researcher drop the ewaste and where does it end

Why do researcher drop the ewaste and where does it end up?

Assign ment - genetic algorithmin this assignment you will

ASSIGN MENT - GENETIC ALGORITHM In this assignment, you will use your C programming skills to build a simple Genetic Algorithm. DESCRIPTION OF THE PROGRAM - CORE REQUIREMENTS - REQ1: Command-line arguments The user of yo ...

Software development fundamentals assignment 1 -details amp

Software Development Fundamentals Assignment 1 - Details & Problems - In this assignment, you are required to answer the short questions, identify error in the code, give output of the code and develop three C# Console P ...

Project - space race part a console Project - Space Race Part A: Console Implementation

Project - Space Race Part A: Console Implementation INTRODUCTION This assignment aims to give you a real problem-solving experience, similar to what you might encounter in the workplace. You have been hired to complete a ...

What are the legal requirements with which websites must

What are the legal requirements with which websites must comply in order to meet the needs of persons with disabilities? Why is maximizing accessibility important to everyone?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As