Find latest mark for given pupil in given subject

Assignment Help Computer Engineering
Reference no: EM131309321

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

Reference no: EM131309321

Questions Cloud

Responsibility of working with organization : You have been given the responsibility of working with your organization's CEO to do a competitive market analysis of the potential success of one of their existing products.
Ethnocentric model, polycentric model : Which model will be most appropriate for staffing each group: ethnocentric model, polycentric model, or global model? Explain your reasoning for each case.
Draw a standard supply and demand diagram : Go to www.census.gov/newhomesales. Look at the current press release, which contains data for the most recent month and the past year. What trends can you observe?
Analyze independent roles of the professional counselor : Analyze independent and collaborative roles of the professional counselor.Evaluate elements of counselor-client relationships within the practice of professional counseling, focusing on professional ethical standards.
Find latest mark for given pupil in given subject : Module 55-5444:  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++. Find latest mark for given pupil in given subje..
Write the markup language code for an unordered list : Write the code to display your name in the largest-size heading element. Write the markup language code for an unordered list to display the days of the week.
Draw a supply graph showing the market data : The market for manicures is made up of five firms, and the data in the following table represents each firm's quantity supplied at various prices. Fill in the column for the quantity supplied in the market, and draw a supply graph showing the mark..
Design class for simple infix algebraic equation calculator : Design and implement a class for a simple infix algebraic equation calculator using any method learned in class (Stacks, Recursion, Binary Trees...)
Why is it important to avoid the use of reserved words : Why is it important to avoid the use of reserved words as you define variables, functions, methods, or identifiers? Do you have any get-arounds to the use of these reserved words that you like to use?

Reviews

len1309321

12/12/2016 6:16:20 AM

In this Items to be Submitted All source files, all data files and (most importantly) your executable assignment code. This is the .exe file that is located inside the Debug folder of your assignment project. A printout of your source code for the specified application and a printout of your data file(s). Failure to submit a printout of the data files will result in a deduction of 10% from the final mark. Do NOT assume that what works on your home PC or laptop will work in the same fashion on the lab machines. YOU MUST MAKE SURE THAT YOU TEST YOUR SOFTWARE IN THE LABS BEFORE SUBMITTING IT. 'Well, it worked ok on my laptop' will NOT be accepted as a valid excuse for your software malfunctioning on the day. Do NOT assume that what works on your home PC or laptop will work in the same fashion on the lab machines. YOU MUST MAKE SURE THAT YOU TEST YOUR SOFTWARE IN THE LABS BEFORE SUBMITTING IT. 'Well, it worked ok on my laptop' will NOT be accepted as a valid excuse for your software malfunctioning on the day.

Write a Review

Computer Engineering Questions & Answers

  What are the types of malicious attack

What are the types of malicious attack

  Select four standard corporate executive positions and

question 1.choose four standard corporate executive positions and describe their role on the it steering

  Information technology it systems are considered to consist

information technology it systems are considered to consist of four major components. what are the four components of

  Sum of the odd positions of the list

Write a function that takes a list of integers as argument and returns a pair consisting of the sum of the even positions and the sum of the odd positions of the list.

  Questionassume you want to deposit a certain amount of

questionassume you want to deposit a certain amount of money into a saving account and then leave it alone to draw

  Desirable to force users to creat an explicit choice

Why is it not desirable to force users to build an explicit choice of a query processing strategy? Are there cases where it is desirable for users to be aware of the costs of competing query-processing strategie.

  Implement the davidon-fletcher-powell method

Write a computer program to implement the Davidon-Fletcher-Powell method using the cubic interpolation method of one-dimensional search. Use a finite-difference scheme to evaluate the gradient of the objective function.

  Define what a distributed database is

In this discussion board, you would investigate distributed databases and partitioning. You have been asked to prepare an informative memo that will address the following.

  Bluesky systems is a software development company that

bluesky systems is a software development company that builds software components for a variety of private and

  What is the value shown by the bit string

What is the value shown by the bit string 101101 if - Negate the following binary numbers in 4-bit 2's complement representation - How large a value can be represented by each of the unsigned binary quantities?

  Build appropriate functions for these classes

A CollegeCourse class includes fields representing department, course number, credit hours, and tuition. Its child, LabCourse, includes one more field that holds a lab fee charged in addition to the tuition.

  Questionto take advantage of a string means to change the

questionto take advantage of a string means to change the first letter of each word in the string to uppercase. for

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