Write a for loop to fill the array with numbers from user

Assignment Help C/C++ Programming
Reference no: EM131842777

Assignment

There are two parts.

1. Write code for a function that receives two parameters (a,and b) by value and has two more parameters (c and d) by reference. All parameters are double.

The function works by assigning c to (a/b) and assigning d to (a*b).

From main, use scanf to get two numbers, then call the function, and then display both returned values to the output in a printf statement.

2. After part 1 is completed, write code to get 20 integer numbers from the user. The code then displays how many of those numbers are above the numbers average. To get proper credit you must follow these steps:

a. Write a for loop to fill the array with numbers from the user. Use a pointer

b. Use an index to pass through all array elements to calculate the average in another loop.

c. Write a function, then pass the array, its size, and the average to the function. The function returns the count of the number of elements that are above the average.

Reference no: EM131842777

Questions Cloud

Describe the epistemological relativism : 1. Describe the epistemological relativism from Plato's day and our day (postmodernism).
Russow understanding of the problems of ambiguity : Explain Russow's understanding of the problems of Ambiguity, Objectives, and Override with regard to species and use 2
Financial manager make using net present value method : Using a 12% cost of capital, which decision should the financial manager make using the net present value method?
Create a model to transition an organization : Create a model to transition an organization through the following four (4) phases of learning: individual, group, intergroup, and finally, ongoing learning.
Write a for loop to fill the array with numbers from user : Write a for loop to fill the array with numbers from the user. Use an index to pass through all array elements to calculate the average in another loop.
What are the benefits and potential problems associated : What are the benefits and potential problems associated with conflict? What are examples of strategies that can be applied for resolving conflict?
Duties and rights of individuals versus the state : Which principle of ethics underlies the first lines of Marx's Manifesto? What are the duties and rights of individuals versus the state?
What are the components of discretionary benefits : What are the components of discretionary benefits? Provide two examples for each component of discretionary benefits and identify an organization.
Estimate? amazon market capitalization : Estimate? Amazon's market capitalization. If Amazon has million shares? outstanding, what stock price does this correspond? to?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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