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

Create a client program tracker, This project simulates an application call...

This project simulates an application called tracker for the Department of Transportation (DOT) in which highway traffic data is accumulated in real time using various sensing equi

How to creat a file herachy for stream class, Ask questionhow to creat a fi...

Ask questionhow to creat a file herachy for stream class #Minimum 100 words accepted#

Advantages to the use of functions, Question: (a) What is a function? A...

Question: (a) What is a function? Are functions needed when writing a C program? (b) State one of the advantages to the use of functions. (c) What do you meant by underst

Scrape a site and save as csv, Scrape a site and save as csv Project Des...

Scrape a site and save as csv Project Description: I want a programmer to create scraping software. I'll want every page scraped of name, job title, company, and url. There a

Described multiple inheritance(virtual inheritance)?, Described multiple in...

Described multiple inheritance(virtual inheritance)? And explain its advantages and disadvantages? A: It is the procedure in which a child can be derived from more than one pare

Define the multi dimensional arrays, Define the Multi Dimensional Arrays? ...

Define the Multi Dimensional Arrays? Consequently far we have considered arrays with only one dimension. It is as well possible to define an array which is having a 2-dimension

Develop a windows application to show computer hardware, - But with less fe...

- But with less features and more user-friendly (particularly for non-tech savvy users). - Software needed having a left menu with links (no pictures required) for every hardwar

Define memory leak?, A: Memory that has no pointer pointing to it and there...

A: Memory that has no pointer pointing to it and there is no method to delete or reuse this memory(object), it causes Memory leak. { Base *b = new base(); } Out of this

Differentiate between functions getch () and getche (), Differentiate betwe...

Differentiate between functions getch () and getche (). - Both functions accept a character input value from user. - When getch () is used, key that was pressed won't appear

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