Write a function called sizecheck that accepts two integer

Assignment Help Mechanical Engineering
Reference no: EM131285506

Given the data (xi, yi) below with i =1, 2, ..., 6 for questions 1 to 3:

x (time)

y (velocity)

10

26

25

52

33

72

42

90

52

100

65

129

1. Plot the velocity versus time in excel using the scatter plot. Print your graph in a word document as part of your homework.

2. Compute the terms below.
a. ∑ ????

b. ∑ ????

c. ∑ ???? ????

d. ∑ ???? ∑ ????

e. (∑ ????)2

f. ∑ ??2

3. Compute the slope (m) and intercept (b) of the least squares line fit and substitute m and b by their values in the equation ??^ = ???? + ??

4. Compute the R2 value for this set of data and the linear curve fit computed in 3.

5. The two build-in Arduino functions setup and loop are passed no arguments and return no arguments and so are declared as void setup() and void loop(). For a general case, what is the syntax of a user-defined function's declaration?

6. Write a function called SizeCheck that accepts two integer arguments and returns a Boolean (TRUE/FALSE). The function should return a TRUE value only if the first integer is larger than the second integer (you can check the return of your user-defined function by using the Serial.print function in your void setup().

7. What argument is returned if a user uses the same number for both input arguments?
Use a word processor to include the source code and the result from the serial monitor for problems 6. And 7. (you can use the "PrintScreen" to obtain an image of the serial monitor).

Reference no: EM131285506

Questions Cloud

Calculate the damping ratio : The 3-kg uniform disk oscillates about the pin at A. The pin is lubricated with heavy grease, which gives rise to rotational resistance equivalent to a viscous damping couple Md = -cθ?, where c is a constant.
Beneficial for the student to develop : You are hired to teach a struggling student more effective study skills. Drawing from research findings regarding effective study strategies, identify one strategy that you think would be beneficial for the student to develop. Then, in one short p..
Augment basic service offering to develop a better product : Assume that you are a physician. You are opening a new family practice clinic in your community.- List the advantages and disadvantages of each.
What federal laws were violated according to the case : Read Court Case Lipphardt v. Durango Steakhouse and answer the following questions with a 700 word count. What federal laws were violated according to the case? Explain how they were violated and why.
Write a function called sizecheck that accepts two integer : Write a function called SizeCheck that accepts two integer arguments and returns a Boolean (TRUE/FALSE). The function should return a TRUE value only if the first integer is larger than the second integer (you can check the return of your user-def..
What are individual monomers use in the synthesis of polymer : What are the individual monomers used in the synthesis of the polymer? How much of the polymer are produced each year in the United States?
Define supply chain management : Define Supply Chain Management and its role in a company's ability to compete effectively in the market.
Open systems view of organizations : 1.) Why is the external environment important in the open systems view of organizations? 2.) Select any three management theories (from different approaches). What is the significance of those theories to modern day management practice?
Open systems view of organizations : 1.) Why is the external environment important in the open systems view of organizations? 2.) Select any three management theories (from different approaches). What is the significance of those theories to modern day management practice?

Reviews

Write a Review

Mechanical Engineering Questions & Answers

  A material is found to have a tenth-thickness of 23 cm for

a material is found to have a tenth-thickness of 2.3 cm for 1.25-mev gamma rays. a what is the linear attenuation

  Colorado state equilibrium code

Colorado State equilibrium code - Use the general Gibbs energy minimization approach

  Question deals with just one of these dma transfers

The processor address and control lines float; the processor responds to the DMAC that it is halted by activating its HaltAck signal.

  Sample of the ldpe

Paraphrase a Lab Report.The objective of this lab was to conduct a standard tensile test to determine the stress-strain behavior of a sample of the LDPE produced in the previous lab.

  An insulated piston-cylinder device contains 5 l of

an insulated piston-cylinder device contains 5 l of saturated liquid water at a constant pressure of 150 kpa. an

  What is the net rate of work output

The ideal regenerative Rankine cycle for a power plant (shown below), where there is no heat loss or pressure drops in the piping, the turbine and pumps are isentropic, the heat loss in open feed water heater (FWH) can be neglected, there are no pres..

  Consider a piston-cylinder assembly containing 014 kg of

consider a piston-cylinder assembly containing 0.14 kg of air initially at a pressure of 350 kpa. heat is added during

  Is there any change in the number of orders per year

The EOQ for an item is 1150 units, and the annual usage is 15,600 units. What is the period-order quantity?

  Calculate the engineering strain

A tensile specimen of cartridge brass sheet has a cross section of 0.320 in. × 0.120 in. and a gage length of 2.00 in. Calculate the engineering strain that occurred during a test if the distance between gage markings is 2.35 in. after the test.

  Describe several web 2.0 technologies

Describe several Web 2.0 technologies. Which technologies have you personally used before? Describe your experiences with several Web 2.0 technologies. What did you like about them? What did you dislike about them?

  The water is cooled to a temperature of 110 o c at this

saturated water vapor is contained in a closed rigid tank. the water is cooled to a temperature of 110 o c. at this

  Principles of thermodynamics

Ways to run cars on water are frequently touted on the Internet. For each of two different such proposals, write a three-page evaluation. In each evaluation, clearly state the claims made in the proposal. Then, using principles of thermodynamics, ..

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