Answer:
See Explaination
Explanation:
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
float input1, input2, input3;
float sum=0.0, avg, l;
cout<<"enter the value for input1: ";
cin>>input1;
cout<<"enter the value for input2: ";
cin>>input2;
cout<<"enter the value for input3: ";
cin>>input3;
sum=input1+input2+input3;
cout<<"sum of three numbers: "<<sum<<endl;
avg=sum/3;
cout<<"average of three numbers: "<<avg<<endl;
l=log2(input1);
cout<<"log2 value of input1 number: "<<l;
return 0;
}
output:
enter the value for input1: 4
enter the value for input2: 5
enter the value for input3: 6
sum of three numbers: 15
average of three numbers: 5
log2 value of input1 number: 2
Answer:
d) MPEG
Explanation:
MPEG stands for Moving Picture Experts Group.
It defines standards for audio and video compression on digital form for storage and transmission.
are also international standards but they are not related to dogotal video compression.
Select one:
a. 1 or 2
b. 2
c. 3
d. 1
e. None
Answer:
b. 2
Explanation:
As we know operator + is supported by the class.Since we know that the + operator binary operator means it needs two operands to work upon it cannot work on one operand.++ operator is unary operator it works on one operand only.
For example:-
a+b
a++.
Hence we conclude that the answer is 2.
Answer:
I can't give an answer if you don't tell me what you need help with
Explanation:
I can't give an answer if you don't tell me what you need help with
? Throwable
? Exception
? RuntimeException
? All of Given
? None of given
Answer:
All of Given
Explanation:
The throw keywords can be used to throw any Throwable object. The syntax is :
throw <Throwable instance>
Note that Error and Exception are subclasses of Throwable while RuntimeException is a subclass of Exception. So the hierarchy is as follows:
Throwable
-- Error
-- Exception
-- RuntimeException
And all of these are valid throwable entities. As a result "All of Given" is the most appropriate option for this question.
Answer:
The answer is B: throwable
Explanation:
Throwable is the super class of all exceptions
Sample Run
Enter a text: Good morning Good afternoon Good evening
Good afternoon evening morning
The programreturns uniqueelements in the string passed in with no duplicates. The programis written in python 3 thus :
text = input('Enter text : ')
#promptsuserto enterstring inputs
split_text = text.split()
#splitinputtedtext basedonwhitespace
unique = set(split_text)
#usingtheset function,takeonlyuniqueelementsin thestring
combine = ' '.join(unique)
#usethejoinfunctiontocombinethestringstoformasingle lengthstring.
print(combine)
Asamplerunoftheprogramisattached
Learn more : brainly.com/question/15086326
Answer:
The program to this question as follows:
Program:
value = input("Input text value: ") #defining variable value and input value by user
word = value.split() #defining variable word that split value
sort_word = sorted(word) #defining variable using sorted function
unique_word = [] #defining list
for word in sort_word: #loop for matching same value
if word not in unique_word: #checking value
unique_word.append(word) #arrange value using append function
print(' '.join(unique_word)) #print value
Output:
Input text value: Good morning Good afternoon Good evening
Good afternoon evening morning
Explanation:
In the above python code, a value variable is defined that uses input function to input value from the user end, and the word variable is declared, which uses the split method, which split all string values and defines the sort_word method that sorted value in ascending order.
Answer:
sample output
Enter f0 = 440
440.0,466.1637615180899, 493.8833012561241,
523.2511306011974, 554.3652619537443
Explanation:
import math // math library
def RaiseToPower(): // RaiseToPower method
r = math.pow(2,1/12) //r = 2^(1/12)
f0 = float(input('Enter f0 : ')) //input from user
//a key has a frequency,sy f0
print(f0,end=' ') //Display statement
for n in range(1,5): //Iterate the loop up to the next 4 higher key Hz
n = f0 * math.pow(r,n) //calculate the fn value
print(fn,end=' ') //Display statement
RaiseToPower() //Call RaiseToPower method