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

  Determine the expected rating lives in hours of a 35 mm

determine the expected rating lives in hours of a 35 mm bore 02 and 03 series straight cylindrical bearings operating

  Air at 35degc 105 kpa flows in a 100 mm times 150 mm

air at 35degc 105 kpa flows in a 100 mm times 150 mm rectangular duct in a heating system. the volumetric flow rate is

  Design a thermocouple-based thermometer

The temperature measurements will be displayed as fixed-point numbers on an LCD. The temperature component is 0 to 1 Hz. Experimentally verify noise level, time-constant, and accuracy of your system.

  Determine the number of teeth on gear 3

Two spur gears are in mesh. Driven gear 3 has a magnitude of rotational speed that is one half that of the driver gear 2. Gear two rotates at 500 rpm , has a module of 3 mm and has 48 teeth. Determine 1) The number of teeth on gear 3, 2) The magni..

  Assumng that all power is transmitted to the wheels and

a truck crane with a mass of 43000 kg has an engine with a rated power of 320 kw. assumng that all power is transmitted

  Both a gage and manometer are attached to a gas tank to

both a gage and manometer are attached to a gas tank to measure its pressure. if the reading on the pressure gage is 80

  How many degrees of superheat does suggest

How many degrees of superheat does suggest that water can sustain at the low pressure of 1 atm? (It turns out that this calculation is accurate within about 10%.) What would Rb be at this superheat?

  Slowly reduce the frequency to the point of synchronisation

Why do you think it is important, when using a stroboscope, to start at a very high frequency and slowly reduce the frequency to the point of synchronisation?

  If the initial temperature of the pin is 800 degrees c

a molybendenum metal pin is 25 mm long and 2mm in diameter. the air surrounding the pin is 200 degrees c the walls of

  The mass flowrate of the 134a is 3 kgmin what compressor

consider a domestic refrigerator running an ideal vapor-compression cycle using refrigerant 134a. assume that saturated

  How high does the projectile rise

A projectile of mass m is fired from the surface of the Earth at an angle α from the vertical

  Determine the final gauge pressure of the helium given the

a tank contains helium at 103degrees celcius and 10.9kpa gauge . the helium is heated in a process by heat transfer

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