Write a function that accepts an array of integer

Assignment Help Software Engineering
Reference no: EM13994787

Write a function that accepts an array of integer values and the number of values in this array. It should return true if any of the values in the array is the square of one of the other values, and false otherwise

example1:

the array contains { 4, 5, 9, -3, 25, 17 }

the function should return true (25 = 5 squared, 9 = -3 squared)

example2:

the array contains { 4, 5, 12, -3, 24, 17, 1 }

the function should return false (none of the values are the square of one of the other values)

Note the "other values". Having a "1" somewhere in the array does NOT guarantee a true result.

Your function must be consistent with the sample call below:

int values[20];

.....

if (checkForSquares (values, 20)) {

.... // one of the values is the square of one of the other values

}

Reference no: EM13994787

Questions Cloud

Find the equivalent capacitance between points a and b : Find the equivalent capacitance between points a and b for the group of capacitors connected as shown in the figure above. Take C1 = 4.00 μF, C2 = 14.0 μF, and C3 = 3.00 μF.
Software engineer working as a performance engineer : Prepare and submit a paper dealing with a topic from your current course that could be applied to your workplace. The paper should be a minimum of 750 words (about 3 double-spaced pages) and contain a minimum of two (2) outside references from peer-r..
What kind of claims are the economists making : Some economists think the government should help fund local sports stadiums while other economists think the government should leave the funding up to the private sector. a. What kind of claims are the economists making? b. What are two reasons the e..
Using a supply-and-demand graph : Using a supply-and-demand graph and assuming competitive markets, show and explain the effect on equilibrium price and quantity of the following: A technological change that reduces the cost of producing X-Rays on the market for physician clinic serv..
Write a function that accepts an array of integer : Write a function that accepts an array of integer values and the number of values in this array. It should return true if any of the values in the array is the square of one of the other values, and false otherwise
Prepare the liability section of a classified balance sheet : Prepare the liability section of a classified balance sheet and any necessary footnote disclosure for Nevada Harvester at December 31, 2011. Accounts payable and accruals are $22 million.
Assume that you are approaching the implementation : Assume that you are approaching the implementation and deployment phases of the online course management system that you worked on in previous assignments. Imagine that the client signed a long term contract that entitles the client to software and s..
Production possibilities curve between health and all goods : Draw a production possibilities curve between health and all other goods. Insert a point in the drawing that illustrates an economy with an inefficient health system. Insert two additional points that illustrate two efficient economies, but two that ..
Federal funds rate is higher than the target rate : What might the Fed do if the federal funds rate is higher than the target rate? How would it use its tools (required reserve ratio, discount rate, and open market operations) to achieve this target?

Reviews

Write a Review

Software Engineering Questions & Answers

  Research report on software design

Write a Research Report on software design and answer diffrent type of questions related to design. Report contain diffrent basic questions related to software design.

  A case study in c to java conversion and extensibility

A Case Study in C to Java Conversion and Extensibility

  Create a structural model

Structural modeling is a different view of the same system that you analyzed from a functional perspective. This model shows how data is organized within the system.

  Write an report on a significant software security

Write an report on a significant software security

  Development of a small software system

Analysis, design and development of a small software system.

  Systems analysis and design requirements

Systems Analysis and Design requirements

  Create a complete limited entry decision table

Create a complete limited entry decision table

  Explain flow boundaries map

Explain flow boundaries map the dfd into a software architecture using transform mapping.

  Frame diagrams

Prepare a frame diagram for the software systems.

  Identified systems and elements of the sap system

Identify computing devices, which could be used to support Your Improved Process

  Design a wireframe prototype

Design a wireframe prototype to meet the needs of the personas and requirements.

  Explain the characteristics of visual studio 2005

Explain the characteristics of Visual Studio 2005.

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