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
prohojiy [21]
3 years ago
10

What is the output of this program?

Computers and Technology
2 answers:
cupoosta [38]3 years ago
4 0

Answer:

The output is 20

Explanation:

Given:

<em>numA = 2 </em>

<em>for count in range(5,8): </em>

<em>     numA = numA + count </em>

<em>print(numA)</em>

<em />

Required:

Determine the output

The first line of the program initializes numA to 2.

The next iteration sum up integers from 5 to 7 (i.e. 8 - 1) to the initialized value of numA

So, numA becomes

numA = 2 + 5 + 6 + 7

numA = 20

Hence, the output is 20

Charra [1.4K]3 years ago
3 0

Answer:

20

Explanation:

assuming the print statement is not indented, the program effectively calculates 2+5+6+7.

The range(...) is <em>excluding </em>the end value (8 in this case).

You might be interested in
Create a series called 'directors' that contains each director's name and his or her average rating. Print out the type of your
sasho [114]

Using the computational language in python it is possible to write a code that we will use graphics to organize the names of the directors and the films they made.

<h3>Writing code in python:</h3>

<em>import pandas as pd</em>

<em>df = pd.read_csv('all_data/movie_metadata.csv')</em>

<em>print('Shape: ',df.shape)</em>

<em>df.head()</em>

<em>name = df[['director_name','imdb_score']] </em>

<em>directors = name.groupby(['director_name']).mean() </em>

<em>directors = directors.reset_index() </em>

<em>directors = directors.stack()</em>

<em>print(directors,'\n')</em>

<em>print(type(directors),'\n')</em>

<em>print(directors[directors=='Steven Spielberg'],'\n')</em>

<em>print(directors[102]['imdb_score'])</em>

<em>miyazaki = df[df['director_name'] == 'Hayao Miyazaki']['movie_title']</em>

<em>print(miyazaki)</em>

<em>pivot_agg = pd.pivot_table(df,values='imdb_score', index=['country'], columns=['director_name'],aggfunc=np.median)</em>

<em>pivot_agg</em>

<em>gladiator_duration = df[df['movie_title']=='Gladiator\xa0']['duration'] </em>

<em>gladiator_duration</em>

See more about python at brainly.com/question/18502436

#SPJ1

6 0
2 years ago
Your first project as the new web designer at Smart Design is to increase web traffic to help boost web orders. Before you begin
Allushta [10]

Answer:

Looking at the website analytics helps you to optimize your content based on users’ interests, thus making your website more effective and also increasing your website traffic.

Explanation:

The website data analytics tools will provide me with a lot of information about the actual users of the site like their behaviors, age, demographics, gender. I will get to know:

  • What they do on the website
  • What they like about the site
  • Features they don't use on the website.

These will help me to further optimize the website to meet the taste of the users, which will help boost more traffic on the website.

7 0
3 years ago
Read 2 more answers
Why is it difficult to convince top management to commit funds to develop and implement a Strategic Information System
jek_recluse [69]

Answer:

It is difficult to <u>convince top management </u>to commit funds to develop and implement an SIS because it can lead to reengineering, which requires businesses to revamp processes to undergo organizational change to gain an advantage.

Explanation:

7 0
4 years ago
Write a program that uses while loops to perform the following steps:
Vladimir79 [104]

Answer:

Explanation:

//Include the required header files.

#include<iostream>

using namespace std;

//Define the main function.

int main()

{

//Define the variables.

int i, sum = 0, sqSum = 0, firstNum = 1, secondNum = 0;

char ch;

//Check for valid input.

while (!(firstNum < secondNum))

{

cout << "Enter starting number: ";

cin >> firstNum;

cout<<"Enter ending number(must be > startingNumber): ";

cin >> secondNum;

}

//Store first number in i

i = firstNum;

//Dispaly the number.

cout << "The odd numbers between " << firstNum

<< " and " << secondNum << " are:\n";

//Iterate between first and second number.

while (i <= secondNum)

{

//Check for even numbers.

//Store the sum

if (i % 2 == 0)

sum = sum + i;

//Print the odd numbers

//Evaluate the square of sum of odd number.

else

{

cout << i << " ";

sqSum = sqSum + i * i;

}

//Increase the value of i.

i++;

}

//Dispaly the sum of even numbers.

cout << "\n\nThe sum of the even numbers is:"

<< sum << endl << endl;

//Dispaly the sum of square of odd number.

cout << "The sum of squares the odd numbers is:"

<< sqSum << endl;

//Set i to 1.

i = 1;

//Dispaly the message.

cout << "\nNumber Square\n";

//Iterate and print number between 1 andd 10

//along with the sum.

while (i <= 10)

{

cout << " " << i << "\t " << i * i << endl;

i++;

}

//USe for visual studio.

system("pause");

//Return the value 0.

return 0;

}

Explanation:

The program code will perform the function listed below using loop.

Prompt the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum). Output all odd numbers between firstNum and secondNum. Output the sum of all even numbers between firstNum and secondNum. Output the numbers and their squares between 1 and 10. Separate the numbers using any amount of spaces. Output the sum of the square of the odd numbers between firstNum and secondNum. Output all uppercase letters.

Hope this helps!

3 0
3 years ago
Technology experts in the area of _____ specialize in technology for competitive advantage. a. process design b. hardware strate
Arte-miy333 [17]

Answer:

The correct answer to the following question will be Option B (Hardware strategy).

Explanation:

<u>Hardware strategy:</u>

It looks at existing infrastructure for software, hardware, and services and discusses the designs of physical databases.

Hardware Strategy should try and identify any technological threats or limitations surrounding the following:

  • Quality
  • Maintenance
  • Delivery
  • Scalability
  • Disaster recovery
  • Sizing

This approach also aims at maximizing the importance of existing technical resources. The team looks at the efficient use of software and their overall transition to company and technological environments.

Therefore, Option B is the right answer.

3 0
3 years ago
Other questions:
  • Which of the following is a reason photographing animals can be difficult?
    9·2 answers
  • Question 11
    11·1 answer
  • A system administrator suspects that there is an error in the replication configuration. How can the system administrator look f
    7·1 answer
  • Write an essay of at least 300 words explaining your position on a proposed ban of Wikipedia in your future college. You should
    12·1 answer
  • Solesbee v. Balkcom (1950) was one of two cases that challenged the constitutionality of capital punishment prior to 1968. What
    10·1 answer
  • List and briefly describe the major types of system in organization?​
    15·2 answers
  • PLEASE HELP URGENT!!
    5·2 answers
  • When running the following code:
    10·1 answer
  • * Describe the five components of a<br> computer
    6·2 answers
  • A group of small local businesses have joined together to share access to a cloud-based payment system. Which type of cloud is m
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!