Write a program that loops one thousand times. add all the even numbers and display the results. add all the odd numbers and display the results.

Answers

Answer 1
# Python v3

odd = 0
even = 0

for i in range( 1000 ): # Note: zero indexed!
    if( i % 2 ):
        even += i
    else:
        odd += i

print( "The even numbers add up to %d" % even )
print( "The odd numbers add up to %d" % odd )

Related Questions

A collaborative web page that is designed to be edited and republished by a variety of individuals is known as a(n) ____.

Answers

A collaborative Web page that is designed to be edited and republished by a variety of individuals is called ad Wiki. A wiki is a server program that allows users to collaborate in forming the content of a Web site. The term comes from the word "wikiwiki," which means "fast" in the Hawaiian language.The simplest wiki programs allow users to create and edit content.

A person would probably suffer the most severe electric shock by completing a circuit through his or her A. left hand to right hand. B. right hand to right foot. C. left hand to left shoulder. D. right hand to right shoulder.

Answers

left hand to right hand. electricity will always take the shortest path to the other side. if it goes through both of your arms that means it is going to cross or get very close to stop your heart. remember. only 7 milliamps are needed to stop a heart. 1 amp is over 100 times stronger.

If a kindergarten teacher was making a handout to teach children different geometric shapes,he could use the feature in the word application to develop his visuals

Answers

He could create shapes using the insert shape feature on most word processors.
Contact i'm kinda confused but i think i am right not sure hope i helped????!!!!!

In a windows ____ , each computer maintains a list of users and their rights on that particular computer.

Answers

server?
.................

Is Microsoft Word a:

A.operating system
B.software
C.hardware
D.input device

Answers

b. software





-----------------------------

What happens when you click the edit header option in the header button drop-down list?

Answers

When you click the edit header option in the header button drop-down list the header pane and the Header &Footer tools Design tab are displayed.
The Headers and Footers are pieces of text, or graphics, that appear at the top and bottom of a page.There are three options for the placement of page numbers. 

How many bytes is a yobibyte

Answers

i think the answer is 1 x 10^24 bytes
1 yobibyte is 1.209e+24 bytes.

That is a lot!

I hope this helps

How can you recognize an unsecured wireless network?

Answers

An unsecured wireless network is a network that does not use an encrypted authorization mechanism, such as WPA2 or similar. 

You can add chart and axes titles on the chart tools format tab or with the chart elements buttom. true or false

Answers

Select the chart. Navigate to the Chart Layouts group on the DESIGN tab. Open the drop-down menu named 'Add Chart Element'. In Excel 2010 you have to go to the Labels group on the Layout tab and click the Axis Title button. From Axis Title options choose the desired axis title position: Primary Horizontal or Primary Vertical.

A style is named group of formatting characteristics. True or false

Answers

The answer for this question is True.

The fields you use to order your data are called sort ____.

Answers

The Sort data is the name assigned to the computer tool that is used in the fields to sort the data. It is a data organization utility that is managed in data management and information management within computer data systems.

Which command on the page layout ribbon enables a user to mark where a new page will begin on the printed copy?

Answers

Answer:

Breaks

Explanation:

Q:

Which command on the Page Layout Ribbon enables a user to mark where a new page will begin on the printed copy?

A:

Breaks

What does BIOS stand for?

Answers

Basic Input/Output System
This stands for basic input/output system

I hope this helped.

Project managers have the overall responsibility for planning, executing, and completing a project.
A) True B) False

Answers

The given statement "Project managers have the overall responsibility for planning, executing, and completing a project." is True because Project managers are responsible for ensuring that a project is completed within its budget, scope, and timeframe.

Project managers have the overall responsibility for planning, executing, and completing a project, ensuring that the project's objectives are met within the stipulated time and budget constraints. Project managers must identify and manage risks, monitor progress, and make adjustments as needed to keep the project on track. They must also ensure that all deliverables meet the requirements and quality standards specified in the project plan.

In the planning phase, project managers work on defining the project's scope, setting goals, and developing a detailed project plan. This involves coordinating with stakeholders, establishing a timeline, identifying required resources, and outlining the necessary tasks and responsibilities.

During the execution phase, project managers oversee the implementation of the project plan by allocating resources, monitoring progress, and adjusting the plan as needed to address any unforeseen issues or changes. They communicate with the project team and stakeholders, making sure everyone stays on track and works towards achieving the project's objectives.

Finally, project managers are responsible for the completion of the project. This involves ensuring that all project deliverables have been met, conducting a thorough review of the project's performance, and conducting a lessons-learned analysis. The project manager also takes care of project closure activities, such as releasing resources, finalizing documentation, and celebrating the project's success.

In conclusion, project managers have the overall responsibility for planning, executing, and completing a project, as they are instrumental in guiding the project through its various stages while ensuring that it achieves its intended goals.

Know more about Project managers here :

https://brainly.com/question/30457233

#SPJ11

Which of the following best describes the Distribution Mix?

A: a network independent companies through which a product passes from produced to end user.
B: the combination of distribution channels by which a firm gets its products to end users.
C: an individual or firm that helps to distribute a product.
D: an intermediary who sells products to other businesses for resale to final customers.

Answers

B) The combination of distribution channels by which a firm gets its products to end-users.

The answer is: B. the combination of distribution channels by which a firm gets its products to end users.

The purpose for creating a distribution mix in order to ensuring that they can deliver the proper amount of product at the correct time. A company that has a full distribution mix would obtain full command on its inventory storage, warehousing, communications process,  packaging of the product, and transportation process.


What is the key benefit of dhcp manual ip address allocation over manually configuring the ip address by person?

Answers

Saving 3 minutes of configuration & maintenance over the life of the computer unless it's moved to a different network.

If I wanted to share files only within my organization and limit my employees from sharing information with external people, what type of network should I set up in my office?

Extranet
Internet
Peer-to-Point
Intranet

Answers

If I wanted to share files only within my organization and limit my employees from sharing information with external people, what type of network should I set up in my office?

Extranet<====
Internet
Peer-to-Point
Intranet

hopes this helps

The type of network that should be used to set up in the office as per the given scenario, is extranet. The correct option is A.

What is extranet?

An extranet is a controlled private network that provides access to partners, vendors, and suppliers, as well as an authorized group of customers, to a subset of the information available on an organization's intranet.

An extranet is a private network similar to an intranet, but it is typically accessible to third-party parties such as business partners, suppliers, key customers, and so on.

An extranet's main purpose is to allow users to exchange data and applications as well as share information.

Extranets enable you to communicate and collaborate more effectively with clients, customers, and stakeholders through a secure network.

Consolidate processes such as online ordering, order tracking, and inventory management to integrate supply chains.

Thus, the correct option is A.

For more details regarding extranet, visit:

https://brainly.com/question/13263185

#SPJ5

ap courses are almost always taught:

A. at the nearest community college.

B. at the nearest junior college.

C. online

D. in high school

Answers

I think the answer is D.
i do believe in high school but if i am not correct then it might be online.

Random access memory (ram) is also sometimes called _____ storage.

Answers

It is also sometimes called Volatile storage

Under normal operations, cisco recommends that you configure switch ports on which vlan

Answers

 

You can configure switch ports on default VLAN under normal operations. Cisco switches always have VLAN 1 as the default VLAN, which is required for many decorum communications between switches like spanning-tree protocol for example. It is obligatory not to delete or even change the default VLAN.

 

 





Create one of these on your desktop start menu and use it to quickly open a folder, data file, program, or other object?

Answers

A shortcut is a used to quickly open a folder, data file, program, or other object. They are very convenient to have and make navigating through a computer extremely easy.

True or false: you cannot change the default margin size for word documents.

Answers

False the answer is for that question

Read the following scenario: A project will require more people than originally estimated. Identify the possible risks to the project.
a.) Ideas and Creativity
b.) Money and resources
c.) Policies and Procedures
d.) Time and work ethic

Answers

The correct answer is b.Money and Resources because the more people involved in a project then the more money being invested. 

Answering the question, the possible risk to the project is money and resource because the available resources could only take care of the people that were initially positioned to execute the project

Project risk can be defined as uncertain situations that can occur in a project. Such uncertain conditions can affect the project.

Further Explanation

There is always a risk that accompanies a project because there are different unseen circumstances that might likely show up during project execution.

However, there are different types of risk and these include

Stakeholder riskRegulatory riskTechnology riskExternal risk

Stakeholder risk: stakeholders are people that have a major interest in the execution of a project. Stakeholders, in this case, can be mangers, customers, etc. stakeholders risk may arise if the stakeholders do not the required capacity to get the project done

Regulatory Risk: some regulations such as government regulations might also pose some risk to a project.

Technology risk: some times, to execute a project might require the use of new technology and the organization can’t afford to get the new technology, it may have affects the outcome or the execution of the project.

External risk: an organization may also rely on outside support to executive a project and since the support is not within the control of the organization, it might affect the execution of the project.

LEARN MORE:

Read the following scenario: A project will require more people than originally estimated. https://brainly.com/question/6500857Read the following scenario: A project will require more people than originally estimated https://brainly.com/question/5755515

KEYWORDS:

money and resourcesproject riskmore peopleestimatedunseen circumstances

Which kind of desktop uses the same case to house the screen and processing circuitry?

Answers

Final answer:

All-in-One computers combine the screen and processing circuitry in one case, offering a space-saving design.

Explanation:

All-in-One computers use the same case to house the screen and processing circuitry. These desktops combine the components of a traditional desktop computer, such as the motherboard and storage, into the back of the monitor, creating a compact and streamlined design.

For example, the Apple iMac is a popular model of an All-in-One computer where the monitor contains all the essential hardware components, reducing the need for separate towers or CPU units.

One key advantage of All-in-One computers is their space-saving design, making them ideal for environments where space is limited, such as office cubicles or home workstations.

Moving packets from source to destination across multiple networks is called

Answers

Moving packets from source to destination across multiple networks is called a Router.

Which file system is used by large-capacity usb and memory cards?

Answers

Answer:

External

Explanation:

An external file system uses large-capacity usb and memory cards

Excel allows you to rotate text in a cell counterclockwise by entering a number between 1 degree and ____ degrees.

Answers

Excel allows to rotate text n a cell countervclockwise by entering a number between 1 degree and (+-) 90 degrees.

Which of these do the fonts Wingdings and Dingbats display?

A.mathematical equations


B.symbols


C.Greek letters


D.meteorological information

Answers

I believe Wingdings and DIngbats depicts random symbols. I hope that answered your question, my friend. :)

Which routine is configured to execute first when the program runs?
A. Subroutine
B. Start
C. Fault
D. Main

Answers

it's D because of ok

I need help to make this code to make it remove all instances of the specified letter from the original sentence

Answers

Here is my solution. I did the following:

- changed the setRemover into a constructor, since the comment seems to hint that that is expected.
- changed the lookFor type into a String, so that it can work with the string replace overload. That's convenient if you want to replace with an emtpy string. The char type won't let you do that, you can then only replace one char with another.
- Added a static Main routine to use the class.

import java.lang.System.*;

public class LetterRemover 
{
   private String sentence;
   private String lookFor;

   public LetterRemover() {}
   
   // Constructor
   
   public LetterRemover(String s, char rem)
   {
       sentence = s;
       lookFor = String.valueOf(rem);
   }
   
   public String removeLetters()
   {       
       String cleaned = sentence.replace(lookFor, "");       
       return cleaned;
   }
   
   public String toString()
   {
       return sentence + " - letter to remove " + lookFor;
   }

   public static void main(String[] args) 
   {
        LetterRemover lr = new LetterRemover("This is the tester line.", 'e');
        System.out.println(lr.toString());
        String result = lr.removeLetters();        
        System.out.println("Resulting string: "+result);
   }
}

Other Questions
Kirk traded New Zealand dollars for Mexican pesos at an exchange rate of 1 New Zealand dollar = 8.8352 Mexican pesos. He gave the exchanger a total of 2600 New Zealand dollars and was charged a flat fee of 65 New Zealand dollars. Approximately how many Mexican pesos does Kirk have? f(x)=12sinx+12cosx. Find f'(x) 1.A recipe calls for cups of flour, cup of white sugar, and cup of brown sugar. The recipe makes 6 servings. (a)How many cups of flour are there per serving? Show your work.(b)How many total cups of sugar (white and brown) are there per serving? Show your work.(c)Suppose you modify the recipe so that it makes 9 servings. How much more flour do you need for the modified recipe than you need for the original recipe? Show your work.2.Your bank account has in it. You deposit $5 per day.(a)How much money is in your account after 5 days? Show your work.(b)After you have made all of your deposits, you withdraw $2 a day until your account balance is $0. How many days will you withdraw $2? Show your work.3.A scuba diver was exploring a reef 32.12 m below sea level. The diver ascended to the surface at a rate of 8.8 m/min.(a)Write an equation to model the situation. Use the formula d = RT.(b)Explain why it is reasonable to write the distance, d, as a positive number.(c)How long did it take the diver to reach the surface?Need the answer A.S.A.P! When president Andrew jackson vetoed the extension of the second national bank's charter, the national bank A pivot point in a novel is _____. a moment that begins the main action a moment when characters begin to act in a manner opposite to their naturea moment that is a turning point in a novela moment in which the author reverses position on a theme A photon has 4.75x10^-19 J energy. What is the frequency of this photon? Which of the following elements of a villanelle is present in "do not go gentle into that good night"? a. a repetition of one or two lines used as refrainb. a simple aba rhyme schemec. stanza of varying lengthd. no specific metrical pattern Mi madre es muy (1) (trabajador / rubio): es artista y tambin ensea en una universidad. a los estudiantes les gusta mi madre porque es una profesora (2) (bueno / antiptico), pero ella da (gives) exmenes muy (3) (bonito / difcil). este semestre ensea dos clases de arte (4) (delgado / chino). mi madre es una (5) (grande / mismo) mujer, verdad? Which stage of activity in logistics involves waste disposal and recycling? Angela is always forming study groups before tests. What type learning preference might she have?a. Visualc. Auditoryb. Interpersonald. Intrapersonal which word correctly completes this conversation? Andrs: Quin es Mara? Martina: Mara es mi ______________ de la escuela. Siempre comemos juntas. amiga amigo novio primo For the rotational part of the experiment, a student measures a force of 1.8 n when the radius is 12 cm and the angular velocity 10 rad/s.a.what is the total mass of the object undergoing uniform circular motion?b.if the same mass (at the same radius) is rotated at 5 rad/s, what will be the measured force? One tray holds eight sandwiches if there are 30 sandwiches in all, how many trays are needed? Which number correctly identifies the location of the Aztec Empire? A.1B.2C.3D.4E.5F.6 how are aristocracy , plutocracy , meritocracy , monarchy and oligarchy closely related Since the budget for the groundbreaking elephant-behavior-studies program has been cutjust as it was beginning to make progresswildlife conservationists and their supporters are asking that people from all over the world promote the program by encouraging local agencies and community members to donate time and funds to secure the future of the amazingly gentle and intelligent African elephant species. Darryl is most likely writing with the purpose of What was one way that the United States profited from World War I?A) They raised taxes for all goods imported and exported into the United States.B) The United States rented its soldiers to the Central Powers.C) They took money from countries that they protected.D) They traded war materials with allies. Stefan is an individual who has a high need for achievement. his boss has three jobs that need to be completed: one job is easy, one job is moderately difficult, and one job is extremely difficult. if stefan is allowed to choose which of the three jobs he will undertake for his boss, you would expect that stefan will Your classmate is unsure about how to use side lengths to determine the type of triangle. How would you explain this to your classmate? Effective intra-office communication in a medical office include Steam Workshop Downloader