Ask Computer Engineering Expert

OOP for Computer Science Assignment Specification

A small village infant school wishes to computerise its pupil records and you are to write a menu-driven application for this in C++. The data relating to pupils will be held in computer data files, of course (in alphabetical order on surname + first name(s)), but the application (upon being activated) will read the data from the files and store it in an array of the (object-orientated) class Form. Within the data members of this class, there will be an array of objects of class Pupil. The structures of classes Form and Pupil are to be produced by you and must incorporate all the data members, method members and constructors required to satisfy the needs of the application, details of which are given below. In addition, there may be one or two methods not required by this program that might be expected to be included for other programs using these classes. For each method, an argument list (possibly empty) and return type must be shown; for each constructor, an argument list (possibly empty) must be shown.

Within the school, there are just 3 (school) classes, one for each year. These classes are numbered 1-3, in ascending order of pupils' ages. Each school class can contain up to 15 pupils, but your disc files will contain just 4 or 5 pupilsper class (of mixed sexes, for each class), for demonstration purposes. The number of pupils per class will need to be stored (and updated, as pupils enter or leave the class), but no record of the number of girls or the number of boys will be kept. For convenience, each pupil's subjects will be numbered 1-5, with the pupil's latest marks (percentages) for these subjects being held in the corresponding positions (0-4) of an array.

When your application starts up, it will populate the arrays with the names and other data for the pupils from the disc file(s).It will then display a menu with the options shown below. Note that options 1-7 cover the basics and completing these successfully (assuming that you have a good design) will allow you to achieve a mark of up to 75%. If you wish to get a higher mark, then you should attempt some or all of options 8-11. When searching for a pupil, assume that all names are unique and that the full (alphabetically-ordered) name is retrievable (if the name exists).

1. Add pupil to specified class.

2. Remove pupil from specified class.

3. Find no. of pupils in specified class.

4. Display class list for specified class.

5. Find latest mark for given pupil in given subject.

6. Display full address for specified pupil.

7. Display pupils and marks for a given class.

8. Find pupil with highest mark in specified subject.

9. Find oldest pupil in a class.

10. Find number of pupils of specified sex in a given class.

11. Sort pupils into descending order of mark in a class.

0. Quit.

Notes on Options

i. For option 1, alphabetical ordering of pupils must be maintained.

ii. When specifying date of birth for option 1, you should choose your own format (and let the user know what it is). E.g., 14/9/08 or 14/09/2008. Whatever format you choose, though, the date of birth must be entered as a single string.

iii. For option 2, pupils' names following the one removed should be 'shuffled up' the array, to remove the space created by the removal.

iv. Any execution of options 1 and 2 must be reflected initially in the contents of the appropriate array(s) and then later (when option 0 is selected) in the contents of the data files.

v. For options 4, 7 and 11, each list should be displayed in a neat table (with column headings). Marks will be deducted for poor layout (and, in the case of options 4 and 7, for not being in alphabetical order). Surname column must precede first name(s) column.

vi. For option 4, teacher's name and room number must also be displayed.

vii. For options 5 and 6, the class number should be specified first.

viii. For option 6, there should be 3 address lines, the third holding the postcode.

ix. For options 2, 5 and 6, an appropriate error message should be displayed if the person is not found.

x. For option 8, it should be the highest mark in a specified subject within a specified class. Show both the pupil name and the mark. If there is more than one person with the highest mark, show just the first person with this mark.

xi. For option 9, display the student's name and date of birth.

xii. For option 11, the marks will be for one specified subject (1-5) in one specified class (1-3).

xiii. When option 0 is selected, the Pupil destructor should display each pupil's name, followed by the word 'removed' (pausing for a keypress each time, so that the name can be read).

Attachment:- Assignment.rar

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92063948
  • Price:- $110

Guranteed 48 Hours Delivery, In Price:- $110

Have any Question?


Related Questions in Computer Engineering

Does bmw have a guided missile corporate culture and

Does BMW have a guided missile corporate culture, and incubator corporate culture, a family corporate culture, or an Eiffel tower corporate culture?

Rebecca borrows 10000 at 18 compounded annually she pays

Rebecca borrows $10,000 at 18% compounded annually. She pays off the loan over a 5-year period with annual payments, starting at year 1. Each successive payment is $700 greater than the previous payment. (a) How much was ...

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Suppose you make 30 annual investments in a fund that pays

Suppose you make 30 annual investments in a fund that pays 6% compounded annually. If your first deposit is $7,500 and each successive deposit is 6% greater than the preceding deposit, how much will be in the fund immedi ...

Question -under what circumstances is it ethical if ever to

Question :- Under what circumstances is it ethical, if ever, to use consumer information in marketing research? Explain why you consider it ethical or unethical.

What are the differences between four types of economics

What are the differences between four types of economics evaluations and their differences with other two (budget impact analysis (BIA) and cost of illness (COI) studies)?

What type of economic system does norway have explain some

What type of economic system does Norway have? Explain some of the benefits of this system to the country and some of the drawbacks,

Among the who imf and wto which of these governmental

Among the WHO, IMF, and WTO, which of these governmental institutions do you feel has most profoundly shaped healthcare outcomes in low-income countries and why? Please support your reasons with examples and research/doc ...

A real estate developer will build two different types of

A real estate developer will build two different types of apartments in a residential area: one- bedroom apartments and two-bedroom apartments. In addition, the developer will build either a swimming pool or a tennis cou ...

Question what some of the reasons that evolutionary models

Question : What some of the reasons that evolutionary models are considered by many to be the best approach to software development. The response must be typed, single spaced, must be in times new roman font (size 12) an ...

  • 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