1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
nydimaria [60]
3 years ago
10

1. Write an if statement that assigns 20 to the variable y, and assigns 40 to the variable z

Computers and Technology
1 answer:
mafiozo [28]3 years ago
7 0

Answer:

if x > 100:

   y = 20

   z = 40

Explanation:

You might be interested in
Find the inverse function of f(x)= 1+squareroot of 1+2x
Svetllana [295]

Answer:

Therefore the inverse function of  f(x)=1+\sqrt{1+2x} is \frac{x^2-2x}{2}

Explanation:

We need to find the inverse of function f(x)=1+\sqrt{1+2x}

Function Inverse definition :

\mathrm{If\:a\:function\:f\left(x\right)\:is\:mapping\:x\:to\:y,\:then\:the\:inverse\:functionof\:f\left(x\right)\:maps\:y\:back\:to\:x.}

y=1+\sqrt{1+2x}\mathrm{Interchange\:the\:variables}\:x\:\mathrm{and}\:y

x=1+\sqrt{1+2y}

\mathrm{Solve}\:x=1+\sqrt{1+2y}\:\mathrm{for}\:y

\mathrm{Subtract\:}1\mathrm{\:from\:both\:sides}

1+\sqrt{1+2y}-1=x-1

Simplify

\sqrt{1+2y}=x-1

\mathrm{Square\:both\:sides}

\left(\sqrt{1+2y}\right)^2=\left(x-1\right)^2

\mathrm{Expand\:}\left(\sqrt{1+2y}\right)^2:\quad 1+2y

\mathrm{Expand\:}\left(x-1\right)^2:\quad x^2-2x+1

1+2y=x^2-2x+1

\mathrm{Subtract\:}1\mathrm{\:from\:both\:sides}

1+2y-1=x^2-2x+1-1

\mathrm{Simplify}

2y=x^2-2x

\mathrm{Divide\:both\:sides\:by\:}2

\frac{2y}{2}=\frac{x^2}{2}-\frac{2x}{2}

\mathrm{Simplify}

y=\frac{x^2-2x}{2}

Therefore the inverse function of f(x)=1+\sqrt{1+2x} is \frac{x^2-2x}{2}

4 0
3 years ago
Where is the error in this code sequence?
Art [367]

Answer:

There is an error in "String s=s1-s2 ";

Explanation:

In java programming, we can subtract subtract two strings variable with "-" operator.Java programming does not  support an overload of the '-' operator.In java, we can use only "+" operator to append two strings variable.There is no such method to subtract strings in java.Therefore in the given code String s=s1-s2 will give an "bad operand type" error because we can not subtract one string variable from the second string variable.

7 0
3 years ago
The basic difference between RAM and ROM memory is: Question 5 options: A) RAM is nonvolatile while ROM is volatile. B) RAM is r
schepotkina [342]

The basic difference between RAM and ROM memory is RAM is read/write while ROM Is read-only.

Explanation:

  • A ROM, non-volatile memory, does not use to store data, but RAM is volatile and requires power to store data.
  • ROM is not given usually as a specification, but RAM is typically specified when buying a computer.
  • We can write data only once in ROM. However, once it is written, we can read it any number of times. RAM is the main memory in a computer, and read from and write to it much faster than other storage types. RAM is used to store files in use on the computer.

Hence the basic difference between RAM and ROM memory is RAM is read/write while ROM Is read-only.

6 0
3 years ago
Core to resource management system is the _________that coordinates the server hardware.
vichka [17]
Hehdhdjdjddjdjid iridium chi jo j o j o j o j
5 0
3 years ago
What is an entity supertype, and why is it used?
marissa [1.9K]

Answer:

Correct answer is option B (The reason for using supertypes is to minimize the number of nulls and to minimize the likelihood of redundant relationships)

Explanation:

Entity supertype

A  entity supertype is a generic entity type which is related with one or more subtypes.

Use of entity supertype:

The reason for using entity supertype is to reduce redundant relationships and it is also used to minimize the number of nulls.

5 0
3 years ago
Other questions:
  • Calculate the total number of bits transferred if 200 pages of ASCII data are sent using asynchronous serial data transfer. Assu
    5·1 answer
  • We will pass you 2 inputsan list of numbersa number, N, to look forYour job is to loop through the list and find the number spec
    12·1 answer
  • What do you click on to minimize all open windows? the Show Desktop icon the Start menu the system tray the taskbar
    15·2 answers
  • Select the most likely outcome of making only on-time minimum payments to a credit card with a balance for an entire year?
    7·2 answers
  • . Some countries lack physical resources, like computers or network connections, making it difficult to keep up with the technol
    8·2 answers
  • What is an operating system?<br>​
    11·2 answers
  • What word can you type using only the left home row keys and the right reach keys?
    6·2 answers
  • create a function that draws a certain number of spaces, followed by a certain number of stars, followed by a newline.
    6·1 answer
  • Picking up sound over a great distance while making it seem to come from close up.
    11·1 answer
  • At what layer in the TCP/IP protocol hierarchy could a firewall be placed to filter incoming traffic by means of:
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!