Help with a program positive

Assignment Help Basic Computer Science
Reference no: EM132134163

***C PROGRAMMING*** 

Help with a program positive.c that include the following function:

Void extract(int *a, int n, int *positive, int *size); 

The function should use pointer arithmetic, not subscripting.

The extract function finds the positive numbers in the array a and store in array positive. The third parameter is array of positive numbers, and The fourth parameter size points to a variable in which the function will store the number of positive numbers in the array.  

In the main function, ask user to enter array length, declare input array with length, and output array with the same length, and call the function. The function will store the actual length of the array storing the positive numbers. The main function should display the result. 

Example i/o:

Enter the length of the array: 8 

Enter the elements of the array: -12 0 4 0 36 7 -89 45 

Output: 4 36 7 45

Reference no: EM132134163

Questions Cloud

What is the broadcast domain and ports for hubs and bridges : What is the Broadcast Domain and Ports for hubs and bridges?
How companies are required to assign each category : Discuss how companies are required to assign each category of securities into its current and noncurrent portions. Discuss the arguments for each position.
Examine the employment issues presented in the scenario : Analyze whether Janice qualifies as an employee or should be classified as an independent contractor.
Find minimal dfa for the languages : Find minimal dfa's for the following languages. In each case prove that the result is minimal.
Help with a program positive : Help with a program positive.c that include the following function:
Discuss the case from your own perspective : Discuss the case from your own perspective. How do you come down and why? Be sure to anticipate and counter objections to your position.
Evaluate the company external environment : Write a 1,050-word minimum environmental analysis in which you include the following: Evaluate the company's external environment.
Assignment on information systems audit and controls : Elaborate on the different types of control that are applied in a hospital (Preventive, detective and corrective control).
Process of triggering the login process : Create login form to enter user name and a password textbox to enter password, and write procedure to simulate the process of triggering the login process

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Traditional project management approach

Identify the business problems the project team tried to solve and analyze how they applied the agile project management techniques to ensure the project was delivered on time, on budget with good quality.

  Essential in identifying appropriate members

1. What aspects are essential in identifying appropriate members for teams and ensuring the teams are successfully launched? 2. What factors are important to ongoing team dynamics? Describe guidelines to evaluate the function and productivity of team..

  Modify the payroll program so that it uses a class to store

Modify the Payroll Program so that it uses a class to store and retrieve the employee's name, the hourly rate, and the number of hours worked. Use a constructor to initialize the employee information, and a method within that class to calculate the w..

  Chief information officer

Write an email to your CIO (Chief Information Officer) detailing your recommendations to successfully manage the transition from IPv4 to IPv6. Justify each recommendation.

  Mathematical formula and implement it in c code

Find a simple mathematical formula and implement it in C code. Be sure to test your Code in the online IDE.

  Project management framework

1) Define what the project management framework is and explain what pieces make up the framework. What are the processes and framework? What is the purpose of having a framework?

  Characteristic of databases

1. Which of the following is a characteristic of databases?

  Determine the delays of the carry out

Determine the delays of the carry out bit c48 and the gate complexity, i.e, the numbers of AND, OR and XOR gates needed for implementing the following 48-bit adders.

  Think about the loss of national sovereignty appears

What do you think about the loss of national sovereignty appears to be an inevitable result of MNC's and IGO's.

  Hiring people with criminal records and connections

You're not sure, and feel uneasy about hiring people with criminal records and connections to unsavory members of the hacker/cracker community. What would you do?

  Project management process

Project closure is an important, but often overlooked, step in the project management process. Identify and describe a process for project closure.

  Evaluate five to seven most important things about computer

Evaluate five to seven most important things about computer network

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