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
vredina [299]
3 years ago
10

Please help, will give brainliest!!! I need help with these coding questions, any help is appreciated

Computers and Technology
1 answer:
olchik [2.2K]3 years ago
8 0

Answer:

class Foo:

   def F(self, n):

       if n == 1:

           return 1

       return self.F(n - 1) + 3 * n - 2

Explanation:

This should cover part a to this question. The thing I'm not sure on is they use the term "method" which in python technically means a class function...but then list one argument with the function call which makes me think it is possibly just supposed to be a regular function. Which would be the following snippet. It would depend on if you are using classes or not yet in your coding class.

def F(n):

   if n == 1:

       return 1

   return F(n - 1) + 3 * n - 2

Play around with it and look into python "lists" and "for loops" for part c. Part b I'm not sure what kind of example they want since I'm not in that class. Good luck!

You might be interested in
What is looping? the rerecording of sound first recorded on set the recording of sound on set the process of combining different
Elina [12.6K]
What is looping? the rerecording of sound first recorded on setthe recording of sound on set the process of combining different sound tracks onto a single track the process of converting sound waves into electrical signals?
Looping is the repeating section of the recorded sound material. So basically from the choices the most fit answer is the first one. The recording of sound first recorded on set. Since the section has to be recorded repeatedly it means that the sound has to be recorded already to be available for looping.
3 0
3 years ago
a network administrator for a large oil company has discovered that a host on the company network has been compromised by an att
siniylev [52]

The action that i will recommend an immediate response to prevent further spoofing of the host is to Revoke the host's certificate.

<h3>What does revoke certificate mean?</h3>

Certificate revocation is said to be a kind of an act that connote the way of invalidating a TLS/SSL before it is said to have a scheduled expiration date.

Note that A certificate can be revoked fast when its private key depiects signs of being compromised.

Therefore, The action that i will recommend an immediate response to prevent further spoofing of the host is to Revoke the host's certificate.

Learn more about host's certificate from

brainly.com/question/14282680

#SPJ1

5 0
2 years ago
(3 marks)
muminat

Answer: 1.5 : 1

Explanation:

The average of 92 marks for the test is a weighted average of the proportion of students in the class.

Assume boys are in the proportion, x.

(90 * x) + (95 * (1 - x)) = 92

90x + 95 - 95x = 92

-5x = 92 - 95

-5x = -3

x = -3/-5

x = 0.6

Boys are 0.6 of the class

Girls are:

= 1 - 0.6

= 0.4

0.6 : 0.4

1.5 : 1

3 0
3 years ago
__________ may be defined as the application of methods and means to ensure that test results are reliable and valid, and errors
kow [346]

Answer:

Quality assurance

Explanation:

8 0
3 years ago
Internet routing:_________. A. precomputes the most efficient route and uses it to ensure rapid packet delivery. B. broadcasts a
zvonat [6]

Answer:

<u> A. precomputes the most efficient route and uses it to ensure rapid packet delivery.</u>

Explanation:

In simple words, what Internet routing means is a process where a router decides which path data packets should follow that are more efficient in delivering the packets across computers.

For example, we can liken the process to the duties of a tour guide in a museum or large building in directing visiting guests who came to explore the museum.

7 0
3 years ago
Other questions:
  • Reflexes are basically "hard-wired" into the CNS. Anatomically, the basis of a reflex is an afferent neuron that synapses direct
    10·1 answer
  • Answer how do you properly dispose of a large box of assorted computer parts, including hard drives, optical drives, computer ca
    11·1 answer
  • A type of font that has a decorative tail is A.Serif font B. Sans serif font C. Bubbles font D. Reading font
    7·1 answer
  • Using an LCD projector to show an online video to a group of people is an example of:
    14·1 answer
  • What is Napoleon's friend's name? From the Napoleon Dynamite movie.
    14·1 answer
  • Instructions:Select the correct answer.
    9·2 answers
  • Write an algorithm that receives a number from the user (you can store the number in a variable called N). Then the algorithm sh
    8·1 answer
  • Three Cat 5e cables were run from an office area to three computers in a machine shop. Work took place on the weekend when the m
    14·1 answer
  • 3.2 code practice question 2. Not in a rush.​
    15·1 answer
  • Choose the term that best matches each definition.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!