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
Lelechka [254]
3 years ago
6

1.5 Code Practice: Question 1

Computers and Technology
1 answer:
Jobisdone [24]3 years ago
6 0
What’s the question?
Always remember to add any reasonable information for someone to help or answer!!

Have a good rest of your day.
You might be interested in
In what ways are computers being used to improve our quality of life
Helga [31]

Answer:

  • computers help with our education system
  • communicating with others is easier (emails/text messages opposed to sending an envelope)
  • technological advances

5 0
3 years ago
Read 2 more answers
The ____ statement is used to execute specific programming code if the evaluation of a conditional expression returns a value of
OverLord2011 [107]

Answer: if statement

Explanation:

The statements executes when a specific conditions are true.

5 0
3 years ago
Ask the user to type in an integer greater than 50 and assign it to a variable called x. Write a program to calculate the sum of
Zinaida [17]

Answer:

The solution in Python is as follows:

<em>num = int(input("Number: "))</em>

<em>if num>50:</em>

<em>     sum = 0</em>

<em>     count = 0</em>

<em>     for i in range(1,num):</em>

<em>          count = count + 1</em>

<em>          sum = sum + i**2</em>

<em>          if sum > num:</em>

<em>               sum = sum - i**2</em>

<em>               count = count - 1</em>

<em>               break;</em>

<em>    </em>

<em>     print("Sum: "+str(sum))</em>

<em>     print("Numbers: "+str(count))</em>

<em>else:</em>

<em>     print("Number must be greater than 50")</em>

<em />

Explanation:

The condition stated in the question do not conform with the example. The question says, the loop should stop when sum > x.

But:

When x = 100 and sum = 91, the program loop should not stop because 91 is not greater than 100.

However, I'll answer based on the example given in the question.

This prompts user for number

num = int(input("Number: "))

The following if condition is executed if number is greater than 50

if num>50:

This initializes sum to 0

    sum = 0

This initializes count to 0

    count = 0

The iterates through the inputted number (e.g. 100)

    for i in range(1,num):

This increases the count

         count = count + 1

This calculates the sum of square of the positive integer

         sum = sum + i**2

The following removes excess number from the sum

<em>          if sum > num:</em>

<em>               sum = sum - i**2</em>

<em>               count = count - 1</em>

<em>               break;</em>

This prints the calculated sum    

    print("Sum: "+str(sum))

This prints the count of number used

    print("Numbers: "+str(count))

The following is executed if user input is less than 50

<em>else:</em>

<em>     print("Number must be greater than 50")</em>

<em />

<em></em>

3 0
3 years ago
Which option is an appropriate database function syntax?
kodGreya [7K]

Answer:

=DSUM(A4:D8, "Unit Cost", A1:B2)

Explanation:

From the list of given options, it's obvious that the question relates to Excel database sum function.

The correct answer among the list of options is:

=DSUM(A4:D8, "Unit Cost", A1:B2)

Where

DSUM represents the function itself

A4:D8 represents the range

"Unit cost" represents the field

and

A1:B2 represents the criteria of the function

Analysing other options:

Option 1: The equality sign (=) before excel formulas is missing

Option 2: Sum is used instead of DSUM and there's a missing bracket before the range

Option 3: There's a missing comma between the range, the field and the criteria

Hence, the last option (4) answers the question.

5 0
3 years ago
Read 2 more answers
Write a python function that on input takes a list l of integers and returns the count of how many of the integers in the list a
stepan [7]
Def countEvenIntegers(integerList):     counter = 0     for item in integerList:          if (item%2 = 0):               counter += 1     return counter
5 0
3 years ago
Other questions:
  • To create an identical version of a slide you would click
    6·2 answers
  • Susie works for an architectural firm and the partners have always drawn the plans for projects by hand. Though Susie learned ho
    8·1 answer
  • When someone makes a bad or immoral decision because a group of their friends is also doing it, it is called:
    10·1 answer
  • What will happen if you delete system32?
    7·1 answer
  • What are some areas to fill out in the New Formatting Rule dialog box? Check all that apply. rule type function name condition c
    7·2 answers
  • Free points <br><br><br><br><br> also if u wanna check out my spotlfy u can (xkuromist)
    6·2 answers
  • Please help with question
    14·1 answer
  • 3. Choose the right statement bellow: Excel can not import external data from
    9·1 answer
  • Language is Python
    15·1 answer
  • Httpsdiscord.ggBVNuFMgG link is here<br>come and join discord​
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!