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 would be the best to alphabetize the list

select which of these three data structures you believe would be the best to alphabetize the list and then add and delete letters from the list while keeping it alphabetized. Justify your answer.

  Explain the distinctions between time and arrangements

Explain the distinctions between time and arrangements, fixed-price, and value-added outsourcing contracts. What are the pros and cons of each?

  Define creating an exam object using java

define Creating an Exam Object using Java

  Discuss on business performance management

define how Knowledge Management benefits organizations.

  Questionsophie is development on using applocker to control

questionsophie is development on using applocker to control access to applications on a new network she has constructed

  Make a basic web page using html tags

build a basic Web page using HTML tags. The page should present information about a company/organization or about a profession.Please include all Web site files.

  Define working with database tables

For this assignment, you would create a Visual Basic.NET application based on the skills and concepts used in IP2. In this exercise, you will create a solution that works with two tables having a Master/Detail relationship.

  Why didn''t the vendor just bid fewer disks

Why didn't the vendor just bid fewer disks

  Why computers and software used to better our society

why computers and software used to better our society.

  The activity undertaken after the arrival of the stimulus

Environment. The stimulus occurs within certain conditions. The system may be in an overload condition or may be running when the stimulus occurs, or some other condition might be true.

  Define the differences among the computer forensic tools

Discuss some of the several backup tools available in the market. What are differences among the computer forensic tools?

  Write-ahead logging is employed to flush log records

Write-ahead logging is employed to flush log records to the persistent log file before data pages are written or at commit time.

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