![21shalissa420](/avatars/47261.jpg)
21shalissa420
12.08.2020 •
Computers and Technology
Assign a variable solveEquation with a function expression that has three parameters (x, y, and z) and returns the result of evaluating the expression Z-y + 2 * x. 2 /* Your solution poes here */ 4 solveEquation(2, 4, 5.5); // Code will be tested once with values 2, 4, 5.5 and again with values -5, 3, 8
Solved
Show answers
More tips
- H Health and Medicine Heartburn: Causes and Ways to Get Rid of It...
- H Health and Medicine Simple and Effective: How to Get Rid of Cracked Heels...
- H Health and Medicine Relieving Swelling in Legs: Causes and Ways to Alleviate the Symptom...
- W Work and Career Мерчендайзинг – все, что нужно знать...
- O Other Everything You Need to Know About Kudyabliks...
- F Food and Cooking How to cook crayfish? Everything you need to know...
- F Food and Cooking Homemade kvass: recipe and brewing process...
- H Health and Medicine How to Choose the Right Tanning Cream?...
- S Style and Beauty Secrets of Tying a Pareo: 5 Ways...
- S Sport Running: How to Do It Right?...
Answers on questions: Computers and Technology
- M Mathematics Please help! 20 points and Brain liest if answered correctly...
- H History Help please help please help please help please help please help please help please help please help please help please help please...
- M Mathematics Which expression is modeled on the number line...
- C Computers and Technology Using the drop-down menu, complete these statements. The term hardware. refers to both the computer hardware and software that operates the The computer hardware refers to the...
- M Mathematics haha guys i used to take every single test for history and I m failing now gues ill actually start studying...
- M Mathematics Sub 2 me on you tube everyone plz...
- M Mathematics I need help quick 16 mins left and I’m on the last question...
- G Geography The average temperature on earth has changed through the course of earth history true or false...
- M Mathematics 7 + r = -5 solve for r...
- M Mathematics Help please solve for x...
Ответ:
The programming language is not stated;
However, the program written in Python is as follows
def solveEquation(x,y,z):
result = z - y + 2 * x
print(result)
x = float(input("x = "))
y = float(input("y = "))
z = float(input("z = "))
print(solveEquation(x,y,z))
Explanation:
This line defines the function solveEquation
def solveEquation(x,y,z):
This line calculates the expression in the question
result = z - y + 2 * x
This line returns the result of the above expression
print(result)
The next three lines prompts user for x, y and z
x = float(input("x = "))
y = float(input("y = "))
z = float(input("z = "))
This line prints the result of the expression
print(solveEquation(x,y,z))
Ответ:
The answer is 2.
Explanation:
In the question te ask you to replace the word, or pronoun "it" e.g in number 1 change "it" to "the story", 2 change "it" to "a great book", 3 change "it" to "people", 4 change "it" to "a good adventure".
Number 1 cannot work because mentioning the word "story" twice in sentence [B] does not make the story clearer or "clearest".
Number 3 also cannot work because changing "you" in sentence [E] to "people" does not change the meaning of the sentence.
Finaly number 4 reapeting "a good adventure" will not make sense in sentence [E].
I hope this answers your question.