Pascal programming , C/C++ Programming

1. The management of a company would like to determine the median annual salary of its employees.Write a pascal program that display the number of employees and their median salary,given the number of employees and their salaries as input data.
Use the following steps when designing your program:
a. obtain the numbers of salaries N and the employees salaries.
b.sort the salaries.
c.compute the median salary as follows:
If N is odd then the median is the middle salary.
otherwise,the median salary is the average of the two middle salaries.
d.display N and the median salary.

A maximum of 500 employees for the company is assumed.Use the following sample output data to run and test your program:
how many employees (500 or less)? 5
Enter the salaries:
20000  30000  25000  60000  40000
number of salaries: 5
median salary is : 30000

2.An instructor wants a program to score multiple-choice examinations.An input data file is provided which has the answer key and the responses of each student.Each line has student identification information in the first nine columns,followed by a variable number of responses.The student identification number in the first line is to be ignored,as the responses represent the correct answers to the questions.Responses are uppercase alphabetic characters or blank.Blank is used to indicate that question is not to be scored.The remaining lines in the indicated in the answer key should be ignored.Write the program that will score the exams,providing the student identification,number of correct responses,and percentage score for each student.

Example input:

ADABECC DBE
808732533ADABECCDDBEF

example output:

student  correct    percentage
808732533 10      100

Posted Date: 2/22/2013 8:22:20 AM | Location : United States







Related Discussions:- Pascal programming , Assignment Help, Ask Question on Pascal programming , Get Answer, Expert's Help, Pascal programming Discussions

Write discussion on Pascal programming
Your posts are moderated
Related Questions
Conversion between Objects of Different Classes As the compiler does not know anything about the user-defined type, the conversion instructions are to be specified in a functio

Unions A union is also like a structure, except that only single variable in the union is stored in the allocated memory at a time. It is a collection of mutually exclusive var

Abstract array - c program: AbstractArray::AbstractArray( int anUpper, int aLower, sizeType aDelta ) {     PRECONDITION( anUpper >= aLower );     lastElementIndex = a

n this problem u given a board in which some of the elements are placed as shown in diagram below .each element represent a color .fill the other elements in the board such that no

overload assignment opertor to assign the data of one object to anthor

Write a C++ program with header and source files to store street addresses using the Doubly Linked List ADT. Modify the Node class from Lab Assignment 3 so that it becomes a node i

There is a pebble merchant. He sells the pebbles, that are used for shining the floor. His main duty is to take the length of the room’s sides. But he sometimes mistakes doing that

To complete this assignment, edit the following constructors and methods: 1. public MaxPQ(Key[] keys) - change the following loop for (int k = N/2; k >= 1; k--) sink(k);

hi i want wite a C++ program that get one logical phrase (included {x,y,z,w,1,0}) and simplify it! but i ''m confused! thanxs for anubody help me...

Program: Write a program that predicts users' age (0-128 years old) with at most 7 questions. The game starts with asking the user whether he/she is younger or older than G (an