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
Nadusha1986 [10]
3 years ago
13

This script should:

Computers and Technology
1 answer:
denis23 [38]3 years ago
5 0

Answer:

the answer is d

Explanation:

You might be interested in
Write an application program in C++ to implement a class Fibonacci to print Fibonacci series upto N using member function series
fiasKO [112]

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 << ", ";

   }

5 0
3 years ago
What is the output of the following code? import java.util\.\*; public class Test { public static void main(String[] args) { Lis
beks73 [17]

Answer:

true false

Explanation:

list1 is assigned as Atlanta, Macon, Savanna

list2 is assigned as Atlanta, Macon, Savanna

list3 is assigned as Macon, Atlanta, Savanna

After these assignments,

The program checks if lis1 is equal to list2 and prints the result. Since both lists are equal, it will print true

The program checks if lis1 is equal to list3 and prints the result. Even though both lists contain the same elements, the order is different, it will print false.

6 0
3 years ago
If your vehicle malfunctions, turn on your hazard lights
Dvinal [7]

Answer:the answer is not A

Explanation:

5 0
3 years ago
Read 2 more answers
When using a spreadsheet, the expression =d8-d17 is called a ________?
raketka [301]
A big fat piece of poop
6 0
3 years ago
Declare a constant MONTHS_IN_DECADE, whose value is the value of the constant MONTHS_IN_YEAR (already declared) multiplied by 10
MariettaO [177]

Answer:

The solution code is written in Python:

  1. MONTHS_IN_YEAR = 12
  2. MONTHS_IN_DECADE = MONTHS_IN_YEAR * 10

Explanation:

Constant variable is a type of variable that holds value which will not be changed. This means the value will only be assigned to the constant variable once. As a convention, constant variable is named with all uppercase letters to differentiate it from other variables.

By presuming there is a constant variable, MONTHS_IN_YEAR which has been declared and assigned with 12 (Line 1).

Next, we create another constant variable, MONTHS_IN_DECADE, and we can calculate the decade by using the value of constant variable MONTHS_IN_YEAR multiplied with 10 and assign the result to  MONTHS_IN_DECADE (Line 2).

3 0
3 years ago
Other questions:
  • What are threats to computer system
    5·2 answers
  • It's time for you to schedule a dental checkup. The responsible thing to do is to ___
    11·1 answer
  • What will the output be from the following program?
    5·1 answer
  • Which statement accurately describes DTP programs?
    11·1 answer
  • What is an example of a boolean operator?
    14·1 answer
  • What are the best data structures to create the following items? And why?
    13·1 answer
  • What do economists call a decline in the real GDP combined with a temporary rise in price level?
    8·2 answers
  • For some reason, Danica's classmate George could not find the registered symbol in the symbol gallery. He is selling
    14·1 answer
  • Write a function named “createPurchaseOrder” that accepts the quantity (integer), the cost per item(double), and the description
    13·1 answer
  • 4.11.4 Snake Eyes code HS<br><br> I cant see to get this right, ant help would be appreciated.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!