Pascal programming , C/C++ Programming

Assignment Help:

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


Related Discussions:- Pascal programming

Object Oriented Programming , You are required to give C++ implementation o...

You are required to give C++ implementation of following classes: 1. PropertyCategories 2. Plot 3. Flat 4. House Following is the description of all data member and member funct

Basic Programming Constructs, Write a program to print all the factors of a...

Write a program to print all the factors of a positive integer A

Simple program of c++ , Simple program of c++: int main() {    i...

Simple program of c++: int main() {    int   bushels;    float dollars, rate;                 cout                 cin >> dollars;                 cout

Program, salotion of programes

salotion of programes

Inbuilt functions in cpp, Inbuilt Functions i).  Functions to manipulate...

Inbuilt Functions i).  Functions to manipulate strings The cstring library defines many functions to perform some manipulation operations with C-styled functions. The followi

Program is to perform all the functions of super bazaar, Program is to perf...

Program is to perform all the functions that are performed in a super bazaar: class stock   {   private:     int itno;     char itname[20];     char brname[20];

Variable, what is local and global variable?give me some example to underst...

what is local and global variable?give me some example to understand better

Write a program that predicts users age, Write a program that predicts user...

Write a program that predicts users age: 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/s

COMPILER DESIGN, Compiler Design - Limit In The Method Instructions

Compiler Design - Limit In The Method Instructions

Write Your Message!

Captcha
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