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
Yuliya22 [10]
4 years ago
6

Refer to the method f:

Computers and Technology
1 answer:
Goshia [24]4 years ago
5 0
<h2>This function will land up in infinite function call</h2>

Explanation:

first time when the function gets invoked,

f(6,8), so k=6 & n=8, inside the function it checks k==n, ie. 6==8, returns false, then one more if is available, so 6>8 is check for , once again it is false and else loop is executed, the function is called recursively using f(k-n,n), that is f(6-8,8), it means f(-2,8) is passed.

Second time,

if(-2==8) is false, so if(-2>8) is again false and function f(-10, 8) is called

if(-10==8) is false, so if(-10>8) is again false and function f(-18,8) is called

if(-18==8) is false, so if(-18>8) is again false and function f(-26,8) is called

So this goes recursively and ends in an infinite function call.

You might be interested in
- The __________ is called a single-selection statement.
VladimirAG [237]

Answer:

The correct answer to this question is "if".

Explanation:

The answer is if because selection statement selects among a set of statements depending on the value of a regulating expression. In the selection statement there we use two conditional statements that can be given as

1) If statement.

2) Switch statement.

If statement:

it is used to execute a block of code. If the expression is evaluated to true it executes. In that else statement is optional.

Syntax:

if(condition)

{

//code;

}

else //(optional)

{

//code;

}

The if  statement single-selection statement. because it always  execute true value.So the correct answer is if.

7 0
3 years ago
. The NFiPA 704 system uses a numerical value between _____ and _____ to indicate the level of hazard for that particular chemic
Taya2010 [7]

the answer is C                                            ................................................                                                                                

5 0
4 years ago
Within a Microsoft Windows environment, who has access rights to the Encrypting File System (EFS) features and functions?
Leona [35]

Answer:

creator of EFS file and domain of administration.

Explanation:EFS stands for encrypting file system, as the name suggests this system is used to encrypt files. It is easy to handle and it is not function-able on window 7 home, windows 7 premium.  Though it is easy to installed, deployment in large environment  needed careful planning

Though all the users have access to EFS features, only members with authority has the right to decrypt.

4 0
3 years ago
Calculator Create a program that calculates three options for an appropriate tip to leave after a meal at a restaurant.
dsp73

Answer:

I am writing a Python program:

print("Tip Calculator \n")

bill = float(input("Cost of meal: "))

tip15pc = bill * 0.15

tip20pc = bill * 0.20

tip25pc = bill * 0.25

print("\n15%")

print("Tip amount: %.2f"% (tip15pc))

print("Total amount: %.2f \n" % (bill + tip15pc))

print("20%")

print("Tip amount: %.2f"% (tip20pc))

print("Total amount: %.2f \n" % (bill + tip20pc))

print("25%")

print("Tip amount: %.2f"% (tip25pc))

print("Total amount: %.2f" % (bill + tip25pc))

Explanation:

The program first prints the message: Tip Calculator

bill = float(input("Cost of meal: ")) This statement prompts the user to enter the amount of the bill of meal. The input value is taken as decimal/floating point number from user.

tip15pc = bill * 0.15  This statement calculates the cost of tipping at 15%

tip20pc = bill * 0.20 This statement calculates the cost of tipping at 20%

tip25pc = bill * 0.25 This statement calculates the cost of tipping at 25%

print("\n15%")  This statement prints the message 15%

print("Tip amount: %.2f"% (tip15pc))  this statement displays the amount of tip at 15% and the value is displayed up to 2 decimal places as specified by %.2f

print("Total amount: %.2f \n" % (bill + tip15pc))  This statement prints the total amount by adding the cost of mean with the 15% tip amount.

The program further computes the the amount of tip at 20% and 25%. The resultant values are displayed up to 2 decimal places as specified by %.2f Then the program prints the total amount by adding the cost of mean with the 20%  and 25% tip amounts just as computed for the 15% tip.

The screenshot of the program as well as its output is attached.

4 0
3 years ago
After running this Assembly language program below, give the final values in EAX, EBX, and ECX. MOV EAX, AAAAAAAA MOV EBX, BBBBB
Verdich [7]

Answer:

See explaination please.

Explanation:

We are going to get a solution by making use of the instruction;

Given The instruction,

MOV EAX, AAAAAAAA

MOV EBX, BBBBBBBB

MOV ECX, CCCCCCCC

This is going to move the defined values, say AAAAAAAA, BBBBBBBB, CCCCCCCC, to the registers EAX, EBX, ECX, respectively

Now,

PUSH AX

This push instruction pushes the first 8 bits in register EAX, to a stack,

again, PUSH BX

Also this push instructions will also push the first 8 bits in register EBX, to the stack

PUSH CX

This push instruction pushes the first 8 bits in register ECX, to the stack,

similarly PUSH BX PUSH AX PUSH CX pushes the 8 bit registers in the same stck,

NOw, the instructions POP EAX POP EBX POP ECX

will lead to the contents of the respective registers as

EAX=CCCCAAAA EBX=CCCCBBBB ECX=AAAACCCC

4 0
4 years ago
Read 2 more answers
Other questions:
  • The computer that provides information or resources to the client computers on the network is called a(n) ________.
    5·1 answer
  • Can anyone help me with getting bash ubuntu on windows setup?
    15·1 answer
  • When societies and governments make decisions, choices have to be made. Which choice is an example of opportunity cost?
    7·1 answer
  • List the six external peripheral parts of a computer system
    8·1 answer
  • The four compass points can be abbreviated by single-letter strings as "N", "E", "S", and "W". Write a function turn_clockwise t
    15·1 answer
  • The options are file protection , fault-tolerance , fault line , file tolerance , and the question is which term describes the d
    6·1 answer
  • HELP ASAP <br>please will mark brainliest<br>​
    5·2 answers
  • In the GO programming language you can't declare a float, it must be a float32 or float64. Why do you think this is done if the
    10·1 answer
  • 100 POINTS PLEASE HELP Type the correct answer in the box. Spell all words correctly.
    15·1 answer
  • When streaming video, data is temporarily stored in a
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!