Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Write a sketch in Arduino with two functions; the first function-1 find the value y in the equation: y = x - 30.

image text in transcribed 

2. Write a sketch in Arduino with two functions; the first function-1 find the value "y" in the equation: y = x - 30. The value "x" is entered by keyboard. The second function-2 test whether the value "y" (calculated with the first function) is a negative number. If it is true, then the function call again function-1 with the value a new value x = x (old value) + 40. Otherwise print the message: "Terminamos". Print all results.

Step by Step Solution

3.40 Rating (163 Votes )

There are 3 Steps involved in it

Step: 1

here is the screenshot of the code int x int y void setup put your setup code here to ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microeconomics An Intuitive Approach with Calculus

Authors: Thomas Nechyba

1st edition

538453257, 978-0538453257

More Books

Students also viewed these Programming questions