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
Amanda [17]
3 years ago
6

Var amount = 100;

Computers and Technology
1 answer:
IRISSAK [1]3 years ago
4 0

Answer:

0.1

Explanation:

The value of amount is 100.So in the if-else-if ladder first condition in if will be checked since the amount is greater than 50 so the value of discount will become 0.1 and the execution of if else if ladder will be finish.The compiler will not be executing elseif or else.So the answer to this question is 0.1.

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
2 years ago
A field whose data type is ____ can store text that can be used as a hyperlink address
olya-2409 [2.1K]
A field whose data type is URL address data can store text that can be used as a hyperlink address.
8 0
3 years ago
Write a program that prompts the user to enter two positive integers less than 1,000,000,000 and the program outputs the sum of
alexira [117]

Answer:

In Python:

low = int(input("Low: "))

high = int(input("High: "))

if low >= 1000000000 or high >=1000000000:

   print("Out of range")

else:

   mylist = []

   for num in range(low,high+1):

       flag = False

       if num > 1:

           for i in range(2, num):

               if (num % i) == 0:

                   flag = True

                   break

       if not flag:

           mylist.append(num)

           print(num, end = " ")

   print()

   print("The twin primes are: ",end="")

   count = 0

   for i in range(1,len(mylist)):

       if mylist[i] - mylist[i-1] == 2:

           print(str(mylist[i])+" & "+str(mylist[i-1]),end=", ")

           count+=1

   print()

   print("There are "+str(count)+" twin primes")

Explanation:

See attachment for complete program where comments were used to explain each line

Download txt
7 0
2 years ago
Why is the radial gradient type a good choice for the grapes?
Grace [21]
<span>when you use the radial gradient fill it gives it a look like a shine on them. </span>
3 0
3 years ago
Read 2 more answers
Fill in the blank with the correct response.
harina [27]

Answer:

program

Explanation:

6 0
2 years ago
Other questions:
  • . Business-to-business integration (B2Bi) is vital for efficient and accurate flow of data across internal ISs and external busi
    11·1 answer
  • A developer is creating an enhancement to an application that will allow people to be related to their employer. Which data mode
    11·1 answer
  • Assume you are given a boolean variable named isNegative and a 2-dimensional array of ints that has been created and assigned to
    8·1 answer
  • Sarah is a detail-oriented programmer. While testing her program, what other skill would she have to apply in order to detect al
    11·1 answer
  • How to make a project using PID and thermacouple
    11·1 answer
  • a bus is full of passengers. if you count them by either twos, threes, or fives, there is one left. if you count them by seven t
    10·1 answer
  • ...............is a personal computer that fits on desk.​
    5·2 answers
  • Project light with a system of lenses used for projecting slides or film into a screen.
    5·1 answer
  • A. Get a value for x from the user.
    13·1 answer
  • Vẽ sơ đồ DFD cho của hàng bán điện thoại ( Môn phân tích và thiết kế hệ thống thông tin)
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!