Answer:
Following are the code to this question:
import math# import math module
def RaiseToPower(): # defining a function RaiseToPower
r= math.pow(2,1/12) # defining r variable that calcualte the decimal point value.
return r # return r variable value.
f0= float(input()) #defining f0 variable that hold input frequency .
for n in range(0,5):#defining for loop to count all frequency
fn = f * math.pow(RaiseToPower(),n) # defining fn variable that calls method RaiseToPower and multiply the value by frequency
print(fn,end=' ') # use print method to prints all five frequency
Output:
440
440.0 466.1637615180899 493.8833012561241 523.2511306011974 554.3652619537443
Explanation:
Description of the above python code can be defined as follows:
- In the above code first we import the package of the math module for converting frequency, after importing package a "RaiseToPower" method is declared, inside the method r variable is declared, that counts decimal value and return its value.
- In the next step, "f0" a frequency variable is declared that input a value from the user and defined a for loop to in the loop fn variable declared, calls the method and pass its input value and stores its decimal points and at the last print its value.
Answer:
C, Both of these.
Explanation:
You can take notes either way. It's just your preference. Hope this helps :)
Answer:
Each variable is named so it is clear which variable is being used at any time. It is important to use meaningful names for variables: ... The name given to each variable is up to the programmer, but ideally a variable name should have meaning, ie it should reflect the value that it is holding.
Variables make code more than a static set of instructions. They allow logic to occur, enabling developers to measure time, analyze data, and customize the program to the user. Variables are so important to the code that they deserve a good name that accurately describes their purpose
Explanation:
Answer:
All the three statements given are true so the correct option is option 4 which is none of the above.
Explanation:
The options are given in a jumbled up form the options are sorted which are as follows:
- SOA eliminates the use of application boundaries, the traditional methods where security is at the application level aren't likely to be effective
- An atomic service cannot be decomposed into smaller services that provide a useful function
- XML security service may be found in retail application communication.
- None of the mentioned
SOA stands for Service Oriented Architecture. This eliminates the application boundaries so option 1 is true.
An atomic service is defined as the smallest service which cannot be divided further. So this is true as well
The XML security service is incorporated in all retail applications. so this is true as well.
So the remaining option is just None of the mentioned.