4.9 Code Practice: Question 2
Instructions
Write code using the range function to add up the series 20, 30, 40, ... 90 and print the resulting sum each step along the way.

Expected Output
20
50
90
140
200
270
350
440

Answers

Answer 1

total = 0

for x in range(20,91,10):

   total += x

   print(total)

I hope this helps!

Answer 2

Answer:

sum = 0

for i in range (20, 91, 10):

  sum += i

  print(sum)


Related Questions

A typical day in programming and software development would involve

Answers

Answer:

software development would involve

Explanation:

Select all the correct answers.
In which TWO ways does e-governance empower citizens?

Citizens can obtain information directly from government websites.
Citizen can easily fix appointments with senators online.
Citizens do not need to travel to government offices.
Citizens can vote online on the bills introduced in the legislature.


i will have more questions under ur answers

Answers

Answer:

Citizens can obtain information directly from government websites.

Citizens do not need to travel to government offices.

Explanation:

These seem the most appropriate to me.

Myra just got the latest computer game and wants to play it on her desktop. When she plays the game, she notices that it is sluggish and the animations are not very clear. What can she do to improve her gaming experience?

Answers

Answer:

Ram/cpu/gpu... Many many things she can do

Explanation:

It may be a issue of internet bandwith, if this new game requires a insane ammount of internet then it may run low FPS (frames per second) and make myra's game look slughish,but anouther issue may be the ram or cpu, like if this is a new game and you've always played like simple games, so your running on persay a core i3 or i4, it aint gonna cut it on a newer game, you gonna need a probably core i5 or i7, or be like any sane person and switch to amd, it may be a bit pricy but if you want nice clean gaming, then amd is the way to go

Also while you are at it get a ssd

I hope this helps "-"

Answer:

She can upgrade her hardware/software

Explanation:

For hardware, she can troubleshoot any broken components that are possibly in the computer, upgrade cards/fans, etc.

and for software she can upgrade her operating system, upgrade or download any missing frameworks, clear out any software that is taking too much CPU/RAM in the background using task manager/system viewer/KSysGuard, etc.

Laptop computers use PCMCIA cards, another type of ________

a.
USB drive
b.
mass storage
c.
smart cards
d.
flash memory

Answers

Answer:

mass storage or flash memory

Choose a different well-known company that you know of, and describe its direct and indirect competitors. Describe at least 2 direct competitors and 2 indirect competitors.

Answers

nondirect competition is the variance between vendors whose products or services are not the same but that could gratify the consumer need
Lets take exampl of microsoft corporation
The indirect competitors are WHOLE FOODS and WAL-MART
Direct competitors sells the product or services that are same
the direct competitors are Apple, Google, HP, IBM
hope it helps

Answer:

Apple

Direct Competitors: Microsoft and Samsung

Indirect Competitors: Best Buy and Target

correct on edge

What is the value of the variable moneyDue after these lines of code are executed?

>>> numSodas = 2
>>> costSodas = 1.50
>>> moneyDue = numSodas * costSodas

Answers

Answer:

3.0

Explanation:

To understand why there is a blank decimal, we have to understand that when you add multiply or subtract with a float (in python), the result will also be a decimal, even you use a blank decimal in the equation. A circumstance where the output would just plain 3, you would have to put in the following:

>>>int(moneyDue)

To insure it will output an int. However, it does not use that line of code, thus proving the answer is 3.0.

hope this helped :D

Answer:

3.0

Explanation:

edge

25 POINTS. Which three features are related to the functions of a continuous rotation servo motor?
A. The command signal sets the direction and speed of rotation.
B. It can change the shaft's movement from circular to forward or backward motion.
C. It is commonly used for radar navigation on robots.
D. The motor can turn either clockwise or counterclockwise with no limits.
E. There are barriers in the design that prevent rotation beyond a half circle.

Answers

I think A I’m not too sure though! Try looking it up cause I’m not sure about my answer

1. What sort of information should be taken by the human resource before
leaving for foreign employment? Write in brief.​

Answers

Answer:

DDDDDDDDDDDDDDD

Explanation:

Answer:

Sources of information on foreign job opportunities. Blue, newspapers or professional journals; Red, personal contacts abroad; Green, recruitment websites.

Explanation:

what is the depth of the following tree?

Answers

Answer:

The correct answer to this question is given below in the explanation section.

Explanation:

This given tree has four nodes. Node A is a parent node in this tree, while B, C, and D are child nodes of A.

The given options about the depth of the tree are:

A). 0B). 1C). 2D). 3

The correct option to this question is (B) i.e. the depth of this tree is 1.

Because we know that the depth of a node M in the tree is the length of the path from the root of the tree to M. So, in this case,  the depth of node A to node B, C, and D  is 1. So, the correct option to this question is B. i.e the depth of the given tree is 1.

You wrote a program to find the factorial of a number. In mathematics, the factorial operation is used for positive integers and zero. What does the function return if the user enters a negative three? def factorial(number): product = 1 while number > 0: product = product * number number = number - 1 return product strNum = input("Enter a positive integer: ") num = int(strNum) print(factorial(num))
-6
1
-3
There is no output due to a runtime error.

Answers

Answer: well it’s not “There is no output due to a runtime error”

Explanation: Put that and I got it wrong

The Answer Is 1.

Edge 2020.

Which of the following is not one of the views available in the PowerPoint application?

Show View
Slide Sorter
Notes Page
Reading Pane

Answers

Answer:

A. Show View

Explanation:

PowerPoint application can be defined as a software application or program designed and developed by Microsoft, to avail users the ability to create various slides containing textual and multimedia informations that can be used during a presentation.

Some of the features available on Microsoft PowerPoint are narrations, transition effects, custom slideshows, animation effects, formatting options etc.

Basically, the views that are available on the Microsoft PowerPoint application includes;

1. Slide Sorter.

2. Notes Page.

3. Reading Pane.

Hence, show view is not one of the views available in the PowerPoint application.

What makes e-mail different from other forms of business communication?

Answers

Answer:

because it is an electronic mail

Answer:

Email can be both formal or informal however face to face communication is usually most effective in business.

What number will be output by the console.log command on line 5?
A. 10
B. 11
C. 12
D. 13
E. 16

Answers

Answer:

E

Explanation:

If you follow the line of code and add 1, 2, and then 3, 10 + 1 + 2 + 3 = 16.

The output of the block of code will be 16 as the value of the variable is assigned a new value based on the number added to it on each line.

The initial value of the variable oop is 10

On the next line, 1 is added to oop and the resulting value is reassigned to the same variable, the new value of oop is 11

On the next line, 2 is added to oop and the resulting value is reassigned to oop, the new value of oop becomes 13

Variable oop is then increased by 3 ; making the value become (13 + 3) = 16

Therefore, the output of the command is 16.

Learn more :https://brainly.com/question/18505492

Use of the Internet for e-government has increased. Identify the benefits by checking all of the boxes that apply.
A. It keeps the public informed about events
B. People do not have to vote
C. People can pay bills
D. People do not have to visit the site
E. The government can share important information about issues with the people in that town.

Answers

It’s A my good guy have a great day

Answer:

the answer is A C and E

Explanation:

Select the correct answer.
Adrian is organizing a training lecture for his students in various states simultaneously through radio, TV, and the Internet. What is this event
known as?

A. webcast

B. simulcast

C. broadband

D. online lecture

Answers

Answer:

a

Explanation:

a webcast is the answer I think

Which of the following is true about overloaded methods?

Answers

Answer:

Overloaded must have the same name but different parameter lists.

Explanation:

Given that in certain programming languages such as Java, the overload method is a means by which a specific word or symbol has more than one meaning or function, that Is, different parameters or executions but have the same name.

Hence, in this case, what is true about overloaded methods is that "Overloaded must have the same name but different parameter lists."

What is the difference between a displayed result and a formula?
The displayed result is always the same number, but the formula changes.
The formula is always the same as the displayed result, it will always be a simple value.
The displayed result changes as the formula dictates it; it may not be a simple value.
The displayed result and the formula are unrelated.

Answers

Answer:

The displayed result changes as the formula dictates it; it may not be a simple value.

Explanation:

Answer:

The displayed result changes as the formula dictates it; it may not be a simple value.

Explanation:

To what extent is cyberbullying experienced across the world?

Answers

Answer:

All around the world

Explanation:

Every were there’s tech.

Find true or false. A hacker is hacking software with access in sensitive information from your computer​

Answers

ITS TRUE!!I SEARCHED IT

Where do high tides occur? (Select two.) WILLLL GIVVEEE BBRRAANNLLEESSTTTM PLSS AASSAAPP

only at the South Pole
on the side of Earth opposite the moon
on the side of the Earth facing the moon
only at the North Pole
at both the North and South Poles

Answers

Answer:

Maybe both?

Explanation:

High tides and low tides are caused by the Moon. The Moon's gravitational pull generates something called the tidal force. The tidal force causes Earth—and its water—to bulge out on the side closest to the Moon and the side farthest from the Moon. These bulges of water are high tides. (hope this helps)

Answer:

its the last one, it happens on the side of the earth facing the moon and also the opposite side

(Java) Write a program that accepts a number of minutes and converts it both to hours and days. For example, 6000 minutes is 100.0 hours or 4.166666666666667 days.​

Answers

import java.util.Scanner;
public class MinutesConversion {
private static Scanner inputDevice;
public static void main(String[] args) {
int minutes, hours;
float days; // float for decimal point

inputDevice = new Scanner(System.in);
System.out.println("Please enter minutes for conversion >> ");
minutes = inputDevice.nextInt();
hours = minutes / 60;
days = hours / 24.0f;


System.out.println(+ minutes + " minutes is " + hours + " hour(s) or" + days " days");
}
}

The program is a sequential program, and it does not require any conditional statement or iteration.

The program in Java, where comments are used to explain each line is as follows:

import java.util.*;

public class Main{

public static void main(String[] args) {

 //This declares minutes as a double data type

 double mins;

 //This creates a Scanner object

 Scanner input = new Scanner(System.in);

 //This gets input for minutes

 mins = input.nextDouble();

 //This converts the minutes to hour and days, and also print them

 System.out.println(mins/60+" hours or "+mins/1440+" days");

}

}

At the end of the program, the equivalent number of hours and number of days are printed.

Read more about similar programs at:

https://brainly.com/question/8598360

2. The internet offers a great source of information; however, how are
you going to make sure that these pieces of information are reliable?​

Answers

Answer:

There are many different ways that you can ensure that the information you gather on the internet is reliable and accurate! One way is to not look at Wikipedia and sites where anyone has the access to edit it at any time. Sites that are .com or .org are usually from a direct and safe source. Stay away from media websites and if you believe something isn't right, do further research.

Explanation:

Hopefully this helps.

Which statement is true about hacking?
Hacking is generally a positive practice to stop cyber crime.
Hackers do so for various reasons, including the challenge of it.
Hacking cannot be used in the process to help protect sensitive information.
Hackers are rarely successful when attempting to bypass security software.

Answers

Answer:

Hackers do so for various reasons, including the challenge of it

Explanation:

I would say it is this. Plz mark brainliest Thanks:)

Answer:

Hackers do so for various reasons, including the challenge of it

Explanation:

Dropdown
Choose the correct data type.

type(3) tells you the type is___

type("35") tells you the type__

type(3.5) tells you the type__

Answers

type(3) is int

type("35") is string

type(3.5) is float

Following is the correct data type that one get after giving the following commands”

type(3) is int

type("35") is string

type(3.5) is float

What is the data type?

In any of the computer science and computer programming worlds, a data type is considered for the possible value set and it allows what kind of operation one has to do on it. A variable's basic data type is the classification that specifies the type of value it has.

Most of the time, the data type is used for programming, so don't be concerned about the type of mathematical relations and logical operations that can be applied.

There are basically five types of data types divided on the basis of most modern computer languages. They are integral, floating-point, character, character string, and composite types

Learn more about data type from here:

https://brainly.com/question/14581918

#SPJ2

PLEASE HELP ME!!! I REALLY NEED YOU TO HELP ME NOW!!!! THANKS!

PLEASE ANSWER CORRECTLY!!!!!!!!!!!!! DONT ANSWER FOR THE POINTS!!!


In this project, you will plan and write a program to solve a math algorithm. You will identify possible errors and handle them in your program. Choosing Your Math Algorithm Think of a math question that takes several steps to solve. It should not be a math question already programmed in the unit. The question should require input from the user, process the information, and display the results. You can choose your own algorithm. It does not need to be one of these. Find the surface area of a cylinder. Find the surface area of a pyramid. Find the hypotenuse of a right triangle. Your Task Write a pseudocode plan for your program. Write the code for your program. Test your program. Run it at least three times with different inputs. Save your program as a .txt file for you cannot upload a .py file. Evaluate your project using this rubric. What to Submit Submit the .txt file holding your program.

Answers

Answer:

Surface of a Cylinder Code:

#import math package to use math.pi for the value of PI

import math

#take radius of the base of a cylinder from user

r=float(input("Enter r of a cylinder"))

#take height of the curve surface of a cylinder from user

h=float(input("Enter the Height of a cylinder"))

#calculate the surface area of cylinder

s_area=2*math.pi*pow(r,2)*h

#calculate the volume of cylinder

volume=math.pi*pow(r,2)*h

print("surface area of a cylinder wll be %.2f" %s_area)

print("volume of a cylinder will be %.2f" %volume)

Quadratic Equation Code:

import math

a = int(input("Enter the coefficients of a: "))

b = int(input("Enter the coefficients of b: "))

c = int(input("Enter the coefficients of c: "))

d = b**2-4*a*c # discriminant

if d < 0:

print ("This equation has no real solution")

elif d == 0:

x = (-b+math.sqrt(b**2-4*a*c))/2*a

print ("This equation has one solutions: "), x

else:

x1 = (-b+math.sqrt((b**2)-(4*(a*c))))/(2*a)

x2 = (-b-math.sqrt((b**2)-(4*(a*c))))/(2*a)

print ("This equation has two solutions: ", x1, " or", x2)

Instructions
Write a program that will add up the series of numbers: 99, 98, 97… 3, 2, 1. The program should print the running total as well as the total at the end. The program should use one for loop, the range() function and one print() command.

Sample Run
99

197

294

390







4940

4944

4947

4949

4950

Answers

total = 0

for x in range(99, 0, -1):

   total += x

   print(total)

I hope this helps!

CALCULATE THE PERCENTAGE OF FAT CALORIES TO TOTAL CALORIES. I got no idea how to do this in excel ;-;

Answers

Answer:

As you have the Fat Cal. in column C and the total calories in Column B, what you have to do is to divide column C by Column B.

For instance, in column E2, put the formula: =C2/B2.

Then drag the formula down so that the other formulas will be;

E3; =C3/B3

E4; =C4/B4

E5: C5/B5

E6: C6/B6

Then after that you go to the Home tab, then to the Number style section and format E2 to E5 to be percentages.

I WILL GIVE BRAINLIEST TO WHO ANSWERS FIRIST AND CORRECT
How are blogs and wikis alike?


accessible 24/7

telecommunications technology

collaboration tool

available online

used for online dialog

increase business productivity

Answers

Answer:

i think 1 3 and 4

Explanation:

What is the
binary code
for
"DMS"?

Answers

Answer:

D= 01000100

M= 01101101

S= 01110011

Explanation:

Write the line of code to calculate the area of a circle with radius 3 and store it in a variable called
area.

Answers

Answer:

area = 2.14 * 3 ** 2

Explanation:

No clue what language you use but this should be pretty universal. To find the area of a circle you use pi(r) ^ 2 or pi times radius squared

[tex]\pi r^{2}[/tex]

In python it looks like this:

>>> area = 3.14 * 3 ** 2

>>> print(area)

28.26 <Printed text

Other Questions
For each of the following situations, identify (1) the case as either (a) a present or a future value and (b) a single amount or an annuity, (2) the table you would use in your computations (but do not solve the problem), and (3) the interest rate and time periods you would use. (PV of $1, FV of $1, PVA of $1, and FVA of $1) (Use appropriate factor(s) from the tables provided.) a. You need to accumulate $10,000 for a trip you wish to take in four years. You are able to earn 8% compounded semiannually on your savings. You plan to make only one deposit and let the money accumulate for four years. How would you determine the amount of the one-time deposit? b. Assume the same facts as in part (a) except that you will make semiannual deposits to your savings account. What is the required amount of each semiannual deposit? (Round your answer to 2 decimal places.) c-1. You want to retire after working 40 years with savings in excess of $1,000,000. You expect to save $4,000 a year for 40 years and earn an annual rate of interest of 8%. Will you be able to retire with more than $1,000,000 in 40 years? What were the effect of Johnson's use of "Negro Dialect" in his poetry? Pocahontas opens a savings account with $640 dollars that earns 3.9% interest per year not compounded. How much money to the nearest penny will Pocahontas have in 8 years why does the speaker fight his friend in the poem fight by Montague Click to review the online content. Then answer the question(s) below, using complete sentences. Scroll down to view additionalquestionsOnline Content: Site 1According to the legend of the lost Padre mine, who discovered the mine and why was it abandoned?BIUSx x22RAB HELPPP! Please conjugate the words in parenthesis to present tense! Triangle ABC has vertices of A(-6, 7), B(4, -1), and C(-2, -9). Find the length of the median from A. 4B. Square Root of 18C. 8D. Square Root of 68 Emilia went out to eat dinner, and the meal cost $20.00. If Emilia received a 30% discount, what was the total value of the discount? 8. If k = log2 3 then log2 48 = define frequency in terms of a wave How would the results be different if the product you were selling were tomatoes or another type of food? How would the results be different if your product were a car or something very expensive to maintain? If you wanted to increase your revenue from sales, would you increase your price or lower it? What are the 2 ways plants use energy? What gives a male widowbird greater reproductive success? The Diver: (-6, 3)The whale: (-7, -6)The Treasure: (7, 3)Explain how you know for the questions below.1. If Captain Sullivan lost his map but he knew the coordinates of the diver and the treasure, how could he find the distance between the diver and the treasure?2. Captain Sullivan decides to plot a decoy treasure at 5 1/2 - 2 3/4. Plot this point on the map(Coordinate Graph). Makemake au i oe, ma anei e pili ana iau, a oi aku paha... maopopo i 'oe? 2. How do Nya's and her mother's point of view differ in the act of taking thesister along to find water? (ch4)What do Instructions: Find the measure of the indicated angle to the nearest degree. I need help on this one please You dilute an unknown sample of bacteria to 1 x 10-6 and plate out 10 onto a Petri dish. The next day you count 64 colonies. The number of viable bacteria in the original sample was:___________. a. 6.4x105 cells/ul b. 6.4x 106 cells/ul c. 6.4 x 107 cells/ul d. 6.4 x 108 cells/ul Triangle ABC is congruent to Triangle ABC. Describe a sequence of transformations on triangle ABC that would result in triangle ABC.