Create a function sortnum to sort the numbers

Assignment Help Basic Computer Science
Reference no: EM13864385

Objective:  Write  a program to read a set of number,store in an array,and display the smallest,middle value and largest number entered  USING POINTERS

NOTE: 1- the user can enter up to 10 numbers

2- create a function sortNum to sort the numbers,and another function SML to determine smallest,middle and largest number

3- Array must be declared in main and passed to sortNum for sorting and then passed to SML function to "return" smallest,middle and largest numbers to main ,where it is displayed.

4- you can not deference any pointers (arrays) using [] in any function

HINT YOU CAN USE THIS PART FOR THE CODE

// sort the array

For ( ;i<8;i++)

{

For ( +1;j<9;j++)

{

If ( a[j] < a[i])

{

// exchange them double temp = a[j];

A[j] [i];

A[i] = temp;

}

Reference no: EM13864385

Questions Cloud

Find the velocity and acceleration at point : Find the velocity and acceleration at point (1,1,1) at time t = 1 second. Write the acceleration vector.
Power point presentation on food assistance : Food Assistance/ Nutrition Program in Connecticut.
Provide a transcript of the evaluation interview you conduct : In one to two pages, using the "Four Phases of the Evaluation Interview" suggested in Chapter 16 of your course text, provide a transcript of the evaluation interview you conducted with the employee.
Essay on a social media networking site or tool : a social media networking site or tool
Create a function sortnum to sort the numbers : Objective:  Write  a program to read a set of number,store in an array,and display the smallest,middle value and largest number entered  USING POINTERS NOTE: 1- the user can enter up to 10 numbers 2- create a function sortNum to sort the numbers,and ..
Write historical background of business environment in uae : Write the Historical background of Business Environment in UAE. Characteristics, current scenario, challenges, and opportunities. The influence of the chosen topic on the UAE business or economic environment.
What should be included in a development plan : What should be included in a development plan and What do you think is the most important part of the plan for ensuring that employees develop? Explain your choice.
What weaknesses do you see in rajivs performance appraisals : . What weaknesses do you see in Rajiv's performance appraisals? Should HR have the ability to "insist that the forms be completed right away"? Discuss
Describe the sentence structures throughout the essay : Describe the sentence structures throughout the essay

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Assembling the research paper and presentation

You are only required to submit a final paper and presentation. However, during the previous six weeks, you will be assembling the research paper and presentation. Feel free to post questions or portions of the paper for review at any time as an emai..

  Can you name the country which contributed the video display

It had chips from Intel, disk drives from Tendon, operating system from Microsoft, the printer from Epson and the application software from everywhere.

  Secure multipurpose internet mail extensions

Compare and contrast Secure Multipurpose Internet Mail Extensions (S/MIME) and Pretty Good Privacy (PGP) as solutions for securing email.

  Write a program using dialog boxes to convert a temperature

Write a program using dialog boxes to convert a temperature from degrees Fahrenheit to degree Celsius. The formula for converting the temperature from F to C is: C = (f-32) (5/9) Your program should the user to enter a temperature given in degrees..

  What were some of the industry factors

Your research should lead to answers to the following questions. What were some of the challenges that RIM faced to protect its intellectual property, and how did RIM handle those challenges? What were some of the industry factors that influenced..

  Develop a program to play lottery

Suppose you want to develop a program to play lottery. The program randomly generates a Lottery of a two-digit number, prompts the user to enter a two-digit number, and determines whether the user wins according to the following rule.

  Describe emerging technologies and trends

What technologies do you see becoming mainstream in the next 18 months, 5 and 10 years.

  The goal of this problem is to simulate a geometric random

The goal of this problem is to simulate a geometric random variable (which will be covered on Friday, Feb 6th in lecture). We will break this problem into two parts.

  The text files boynames.txt

The text files boynames.txt and girlnames.txt contain a list of the 1,000 most popular boy and girl names in the U.S. for the year 2003 as compiled by the Social Security Administration.

  Companion viruses are an increasing problem

Hackers and their companion viruses are an increasing problem, especially on the Internet. What are the most important measures for a firm to take to protect itself from this? Is full protection feasible? Why or why not?

  Provide explanation for why tablespace might have problem

Provide explanation for why your tablespace might have problem, and write at least two actions you can take to lessen the problem

  An iterative algorithm to traverse an arbitrary number

An iterative algorithm to traverse an arbitrary number of nested subdirectories in a file system.

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