Write a program that will store 10 integers into an array

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

C++ question, using xcode on a Mac. Must use an array and a function.

Write a program that will store 10 integers into an array. Only accept integers between -100 and 100. Display those integers. You must then square those integers by CALLING A FUNCTION to square each individual integer. That function must be called, square() and its only parameter should be the integer that you want to square. Display those integers in reverse order. Please note  that you may only have one array. You must then take the total of the squared  integers and get the average. Here is a sample run.

The ten numbers entered are: 

1 2 3 4 5 6 7 8 9 10 

Those same numbers squared in reverse order are: 

100, 81, 64, 49, 36, 25, 16, 9, 4, 1 

The total of the squared numbers is: 385 

The average of the squared numbers is: 38

Reference no: EM13815680

Questions Cloud

External state that supplies information to sensory system : the decision-action process, not self-contained representations of some external state that supplies information to the sensory system
Discuss the treatments or interventions : Discuss the treatments or interventions
Have you observed situations where an employee was fired : Should the law allow an employer to fire an employee without a good reason? Conduct research to provide examples to support your position and use your own personal employment experiences when possible. Have you observed situations where an employe..
Discussion on integrating pharmacotherapy in treatment : Discussion-Integrating Pharmacotherapy in Treatment
Write a program that will store 10 integers into an array : Write a program that will store 10 integers into an array. Only accept integers between -100 and 100. Display those integers. You must then square those integers by CALLING A FUNCTION to square each individual integer. That function must be called, s..
Characteristics of an executive information system : What are the distinguishing characteristics of an executive information system (EIS)? Why have these systems become a part of business intelligence in many companies?
Example of inductive logic : Identify an operational definition used by the researchers. Provide one example of inductive logic and one example of deductive logic presented in the results. Identify whether the research study is a quantitative or qualitative design. Explain your ..
Technological pedagogical content knowledge : Technological Pedagogical Content Knowledge
Calculate the price and profit of each firm : The market demand is P=100-1.5Q and marginal & average costs are constant at 10 (MC=AC=10) find the monopoly price and quantity. Find the perfect competition price and quantity. Calculate profit, social welfare (consumer and producer surpluses), and ..

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