Construct a group frequency distribution for the following data: 18, 22, 15, 12, 18, 22, 22, 24, 21, 19, 13, 13, 17, 18, 20, 12,
Y_Kistochka [10]
Answer:
uhebcuwcih
Explanation:
iqic c .j .c h de c veo dnjen jndc j .ececiibbec .cecinineijc
Answer:
Explanation:
The following code is written in Python. It is a function called guessMyNumber and like requested creates a random number and saves it to secretNumber. Then it continuously asks the user for their guess and compares it to the secret number. If the guess is correct it exits the loop otherwise it will continue to ask for a new guess.
import random
def guessMyNumber():
secretNumber = random.randint(1, 10)
print(secretNumber)
while True:
guess = input("Enter your guess: ")
guess = int(guess)
if (guess == secretNumber):
print("Congratulations you guessed correctly")
The TAB is INSERT and the MENU is SHAPES. I hope that this is the answer that you were looking for and it has helped you.
Answer:
Program approach:-
- Using the header file.
- Using the standard namespace I/O.
- Define the main function.
- Display the number of terms.
- Display the Fibonacci series.
- Print the first two numbers.
Explanation:
Program:-
//header file
#include <iostream>
//using namespace
using namespace std;
//main function
int main() {
int n, s1 = 0, s2 = 1, nextTerm = 0;
//display the number of terms
cout << "Enter the number of terms: ";
cin >> n;
//display the Fibonacci series
cout << "Fibonacci Series: ";
for (int j = 1; j <= n; ++j) {
// Prints the first two terms.
if(j == 1) {
cout << s1 << ", ";
continue;
}
if(j == 2) {
cout << s2 << ", ";
continue;
}
nextTerm = s1 + s2;
s1 = s2;
s2 = nextTerm;
cout << nextTerm << ", ";
}