Assignment 4: Evens and Odds

Assignment 4: Evens And Odds
Assignment 4: Evens And Odds

Answers

Answer 1

n = int(input("How many numbers do you need to check? "))

even = 0

odd = 0

for x in range(n):

   num = int(input("Enter number: "))

   if num % 2 == 0:

       print(str(num) + " is an even number.")

       even += 1

   else:

       print(str(num) + " is an odd number.")

       odd += 1

print("You entered "+str(even)+" even number(s).")

print("You entered "+str(odd)+" odd number(s).")

This works for me. Best of luck.

Answer 2

The program checks if user supplied integers are even or odd and displays the appropriate value. The program is written thus in python 3 ;

n_check = int(input("How many numbers do you need to check? "))

#number of values user wishes to test

even_count = 0

odd_counts = 0

for n in range(n_check):

num = int(input("Enter number: "))

if num % 2 == 0:

#even numbers leave no remainder when divided by 2

print(str(num) + " is an even number.")

even_counts+= 1

#increase count of even numbers

else:

print(str(num) + " is an odd number.")

odd_counts += 1

print("You entered "+str(even_counts)+" even number(s).")

print("You entered "+str(odd_counts)+" odd number(s).")

#display the number of even and odd numbers entered.

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


Related Questions

what is the appeal of using the internet

Answers

Answer:

becuase they want us be a bad genaration

Answer:

Either trying to figure something out or just to find funny memes.

Hailey was working on a multimedia presentation that included both video and audio files. The file was huge, and she wanted to send it to her coworker in another office. She needed to reduce the size of the file so that it could be transmitted faster. The utility she used to do this was _____.

Answers

Answer:

a compression software such as WinRar

Explanation:

The utility she used to do this would have been a compression software such as WinRar. This software compresses large files or various files into a single ZIP or RAR file. This compressed file is much smaller than the original files that it contains, which is accomplished through a compression algorithm. This can also be encrypted with a password so that only specific individuals with access can open the file. Once unzipped or extracted, the original files are obtained in its original size.

Example of negative body language include all but

Answers

Answer:

Avoidance of eye contact.

Staring.

Crossed arms.

Overuse of hands.

Looking at watch.

Poor posture.

Frowning.

Sweating.

( but what??)

I need help I’m behind

Answers

Answer:

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

Explanation:

You use a really long cable to connect the desktop computer in your bedroom to the router on the other side of your house. Which of these may be a problem?

IP/MAC confusionLack of input deviceAttenuationAdaptation

The correct answer to this question is  Attenuation.

Attenuation is the loss of signal strength in networking cables or connections. This may occur when the cable is spread over a long distance.   Attenuation is typically measured in  (dB) decibels or voltage and can occur due to a variety of factors. Attenuation occurs in the cable when there is a reduction in power of the light signal as it is transmitted.

Other options are not correct because IP/MAC confusion will not occur due to long-distance cable. Lack of input device may not create the problem and adaptation also.

Four common types of distractions are

Answers

Visual Driving Distraction

I need help pleaseeee

Answers

Answer:

The Answer is C. Hope you get it right, Good Luck!!!

Answer:

The answer is B

Explanation:

To create a list, paragraph, or unordered list, you should use HTML code, whereas in CSS coding, you can change the overall font size of a tag using the font-size=(number) tag.

Be as visible as possible from all other animals.

True or False

Answers

Answer:

true

Explanation:

Can someone answer the first question for me please I will give brainliest

Answers

Answer:

wired because if its wireless the the CONNECTION could break up and people would make people mad and it will be a better result in the long run

Prepare a profile on major universities in the country Nepal ​

Answers

Answer:

Formal higher learning in Nepal began with the establishment of Tri-Chandra College in 1918, the first college in the country. Until 1985, Tribhuvan University (TU) was the only university in the country. The second university to be founded was Mahendra Sanskrit University. The inception of this university was soon followed by Kathmandu University in 1990, and Purbanchal and Pokhara Universities in 1995 and 1996, respectively. Many schools and colleges are run privately but none of the universities in Nepal are private.

This list includes all notable universities and colleges/campuses in Nepal. Entries are organised by courses offered, and listed in alphabetical order. Some entries that provide multiple courses may be duplicated in each of the relevant categories.

There are fourteen universities in Nepal. They are: Khwopa University (Proposed)

Agriculture and Forestry University in Chitwan

Far-western University in Kanchanpur

Gandaki University in Tanahun

Kathmandu University in Dhulikhel

Lumbini Bouddha University

Madan Bhandari University of Science and Technology

Manmohan Technical University in Biratnagar

Mid Western University in Birendranagar

Nepal Open University[1][2] in Lalitpur

Nepal Sanskrit University

Pokhara University in Pokhara

Purbanchal University in Biratnagar

Rajarshi Janak University in Janakpurdham

Tribhuvan University in Kirtipur

The university that will be profiled in their case is the Agriculture and Forestry University, Chitwan, Nepal.

The Agriculture and Forestry University, Chitwan, Nepal offers undergraduate, graduate, and PhD programs in agricultural sciences.

The university has several faculties such as the faculty of agriculture and animal sciences, fisheries, and aquaculture.

Learn more about universities on:

https://brainly.com/question/25853486

Which online article citation is correctly formatted according to MLA standards?

A) Oh, Inae. "Dude Who Fell Asleep During Yankees Game Sung MLB, ESPN For $10 Million." The Hillington Post.
The Huffington Post.com, 12 July 2014. Web. 7 July 2014.

B) Oh, Inae. "Dude Who Fell Asleep During Yankees Game Suing MLB, ESPN For S10 Million," The Huthington Post, 7
July 2014. Web. 12 July 2014
C) Oh, Inae. "Dude Who Fel Asleep During Yankees Game Suing MLB, ESPN For $10 Million." The Huffington Post
The Huffington Post.com. 7 July 2014. Web. 12 July 2014.

D) "Dude Who Fell Asleep During Yankees Game Suing MLB, ESPN For $10 Million" The Huffington Post. The
Huffington Post.com, 7 July 2014. Web. 12 July 2014

Answers

Answer:

A is the answer

Explanation:

Hope this helps!! Please consider marking brainliest!!!

Answer: Its C

Explanation:

Sorry Im late :/

What sorts of changes have you been observing in your society in your society in comparison in last 3 years​

Answers

People care less about their own opinions an more abt others

if i need help do i just type it here?

Answers

Answer:

yea you just ask your question and hopefully, someone will answer it like i just did haha

Explanation:

Yeah don’t worry you just ask a question and someone responds :)

what important advice to include about spyware, viruses and other types of malware

Answers

Answer:

You should probably include the fact that most of these things will disguise themselves as fake downloads and that will most of the time claim to allow you to download something that costs money for free.

Explanation:

thats all i could come up with

The best antivirus that you need to stay safe from viruses, malware, and spyware is just common sense. Don't click suspicious links to places you don't know. Get a good antivirus. Don't click links with weird names at the end like .co or .it unless you are sure it is a safe website. Don't download weird stuff. Common sense my guys!

In 3 sentence explain what is a spreadsheets.

Answers

Answer:

A spreadsheet is a computer application for organization, analysis and storage of data in tabular form. Spreadsheets were developed as computerized analogs of paper accounting worksheets. The program operates on data entered in cells of a table.

Hope this helped, have a good day

PLEASE HURRY!!
Look at the image below

Answers

Answer:

Second part:

answer = multiply(8, 2)

First part:

def multiply(numA, numB):

 return numA * numB

Third part:

print(answer)

Explanation:

When creating a function, we always start with def function_name(): so the code for the first line is:

def multiply(numA, numB):

 return numA * numB ( * symbol refers to multiplication)

We are now left with two pieces of code: answer = multiply(8, 2) and print(answer). Since we need to always define a variable before using it, answer = multiply(8, 2) will come before print(answer).

Resulting Code:

def multiply(numA, numB):  <- first part

 return numA * numB

answer = multiply(8, 2)  <- second part

print(answer)  <- third part

Hope this helps :)

Choose the term that makes the sentence true.

Distros are used to distribute different versions of the _______ operating system.

Answers

Answer:

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

Explanation:

The correct answer is Linux.

So, the complete sentence would be:

Distros are used to distribute different versions of the Linux operating system.

The distros are the distribution of the different versions of the Linux operating system. Unlike Windows operating system, distros developed by different software collection that is based upon Linux kernel.

Such as Ubuntu is a distro of the Linux operating system. Linux user usually downloads Linux distro operating system for their systems such as ubuntu etc.

Answer:

Linux.

Explanation:

Carlie was asked to review a software prject for her company and determine what materials are needed. Whihc part of project management must she consider?

Answers

Answer:

The answer is "Resources".

Explanation:

All services should definitely be reviewed through Carlie. However many Software Developers, Reviewers, and others are accessible are important to find out. Only then can Carlie find out because needed, the exact timelines. Because whenever establishing precise deadlines, she needs to take a look at the tools, that's why the above given choice is correct.

Answer:

resources

Explanation:

Carlie certainly requires to review the resources. It is important to find out how many software engineers, testers, etc. are available. And only then Carlie can find out the exact deadlines as required here. And hence, she must have look at the resources while determining the specific deadlines. Hence, resources are the correct option.

What is the first priority when building or using vex robots

Answers

Hey I’m doing that too

Answer:

Make sure you add super glue to keep the structure without anything falling off.

Explanation:

why do files and programs of secondary storage needed to be transferred to the memory unit ?​

Answers

Secondary storage is needed to keep programs and data long term. Secondary storage is non-volatile , long-term storage. Without secondary storage all programs and data would be lost the moment the computer is switched off. ... solid state storage devices, such as USB memory sticks.

Secondary storage is needed to keep programs and data long term. Without secondary storage all programs and data would be lost the moment the computer is switched off. There are three main types of secondary storage in a computer system: solid state storage devices, such as USB memory sticks.

the contents in cells are A1 through A6 are 6,3,4,7,9 and 7. What function would return the answer 6?​

Answers

Answer:

The formula =AVERAGE(A1:A6) would return the average of those numbers which is '6'.

Explanation:

The content in cells is A1 through A6 are 6,3,4,7,9 and 7.

As the average of 6,3,4,7,9 and 7 is 6.

If the range A1:A6 contains numbers, the formula =AVERAGE(A1:A6) would return the average of those numbers.

Therefore, the formula =AVERAGE(A1:A6) would return the average of those numbers which is '6'.

Select the correct answer.
Given the following information, what is the correct way to cite a speech?

The Young Writers Association held a three–day Literary Conference at the First Press Club in Albany, New York. Steven Hans delivered the keynote address.

A.
Hans, Steven. Literary Conference. Young Writers Association. The First Press Club, Albany, NY. Keynote address.
B.
Hans, Steven. Literary Conference. Young Writers Association. The First Press Club, Albany, NY. n.d. Keynote address.
C.
Hans, Steven. Literary Conference. Young Writers Association. The First Press Club, Albany, NY. Keynote address.
D.
Hans, Steven. "Literary Conference". Young Writers Association. The First Press Club, Albany, NY. n.d. Keynote address.

Answers

Answer:

the answer is C i am only 98% sure tho so if i get it wrong forgive me

Explanation:

Answer:

B.

Explanation:

D. is wrong. A and C are most likely wrong because they do not include "n.d.," meaning "no date." There was no date given for the speech, so "n.d." must be included.

What would a digitizing application create?

a raster image

a curved-line vector

a pixel

a straight-line vector

Answers

A digitizing application create is option D: straight-line vector.

What is digitizing process?

The term digitization is the process of transforming analog signals or information in any form into a digital representation that is understandable by computer systems or electronic devices.

It is significant because, by its very nature, information in digital form is not fixed in the same way that text printed on paper is. Additionally, they are easily editable and leave no traces of erasures or emendations. Editing, formatting, and committing print are all pretty simple processes.

Therefore, Bits of information are arranged. In the end, a discrete sequence of points or samples from an object, image, sound, text, or signal one that is typically an analog signal and are represented by a string of integers. Hence, Information transformation techniques is done by option D.

Learn more about digitizing application from

https://brainly.com/question/16455891
#SPJ1

Answer:

A. a raster image

Explanation:

what type of formula uses data from multiple worksheets

a. abstract formula
b. hyper formula
c. 3D formula
d. unbounded formula

Answers

Answer: I think its 3D formula

Explanation: ...

Order the steps for accessing the junk email options in Outlook 2016
Select Junk Email Options
Click the Junk button
Select a message
Choose one of the protection levels
Locate the Delete group on the ribbon​

Answers

Answer:

To access the the junk email options in Outlook 2016, follow the following steps.

1. Click the Junk Button

This will take you to the Junk messages that you have.

2. Select a message

Select a junk message from the list.

3. Locate the Delete group on the ribbon

The Junk email options is located in the 'Delete' group on the ribbon in the Home tab.

4. Select Junk Email Options

Click on the Junk email options button and a popup window will appear.

5. Choose one of the protection levels

Select the protection level you want from the various options listed including low, high, automatic etc.

Answer:

select a message, locate the Delete group on the ribbon, click the junk button, select junk email options, choose one of the protection levels.

Explanation:

What do the letters 'P' and 'T' in PTZ stand for? 'P' stands for and 'T' stands for in PTZ.

Answers

Answer:

Pan, Tilt, Zoom

Explanation:

Essential Components for Creating a PTZ Camera Environment. ... The letters PTZ stand for “Pan, Tilt, Zoom,” which are the basic mechanical functions of these cameras.

Answer:Well want I think the 'P' and 'T' in PTZ stands for the 'P' stands for Pan, and 'T' stands for Tilt?

Explanation:

PLEASE HELPPPP ASAPP

1. which tool would you use if you wanted to arrange a list of words in alphabetical order?
a. conditional formatting
b. format painter
c. arrange
d. sort


2. which of the following is a type of chart in Excel?
a. pie
b. star
c. inverse
d. hierarchy

3. what format would you apply to give an entry the appearance of 12-Mar-2014?
a. date
b. calendar
c. accounting number
d. input

4. what format can be applied to text in Excel?
a. transitions
b. dotted line
c. texture
d. bold

5. when you add a row, where will it appear?
a. underneath the selected row
b. to the right of the selected row
c. above the selected row
d. to the left of the selected row

6. when you add a column, where will it appear?
a. to the left of the selected column
b. underneath the selected column
c. above the selected column
d. to the right of the selected column

Answers

Answer:

1.sort

2.inverse

4.c

5.a

6.b

Explanation:

Hope it helps

Raj needs to apply sorting to a current list in his Word document.

Where should he go to apply the sort?

Home tab Styles group
Home tab Paragraph group
Home tab Editing group
Design tab Sorting group

Answers

Answer:

A, the first one

Explanation:

Raj needs to apply to sort a current list in his Word document. He should go to apply the sort home tab Paragraph group. The correct option is B.

What is a home tab in word?

In Microsoft Word, the Home tab is the default tab. The relevant commands are divided into five groups: Clipboard, Font, Paragraph, Styles, and Editing.

The element is sorted using sorting procedures, either in ascending order or descending order. The user must do the following tasks in order to apply sorting algorithms to any word-type document:

Choose the list that the user wants to use the sorting methods on. To apply the sort, choose the paragraph and text from the Home tab of the Task Pane on the Word document, click Sort, and then decide whether to apply the sort in ascending or descending order.

Therefore, the correct option is B. Home tab Paragraph group.

To learn more about the home tab, visit here:

https://brainly.com/question/2986242

#SPJ2

Pride Group of Companies is making tremendous profits in different categories of electronic goods. The group of managers have to do analysis of the data to show comparison of sales of past three years, and they also want to showmarket share of the company. A.Do you think charts can help them to represent data easily? If so, how?B.How can they make charts more informative?C.List the type of charts they can make for representation of profits and market share.

Answers

Answer:

Charts are good graphical tools for describing and representing statistics of company data, it categorizes the data and analyzes the impact of one or more values on another. Example of charts used in the data analysis;

Bar chartpie chartscatterplotline plot

Explanation:

Data analysis is the process of collecting and describing data statistically to understand its effects and make future decisions. Graphics in data analysis is vital in representing data for easier understanding, these graphics are called charts

a new column is created in table by pressing tab key​

Answers

That is correct
Explanation:

who invite computer ?​

Answers

Answer:

Charles Babbage, an English mechanical engineer and polymath, originated the concept of a programmable computer. Considered the "father of the computer", he conceptualized and invented the first mechanical computer in the early 19th century.

If you meant who ‘invented’ computers, it was Charles Babbage.
Hope this helps!
Other Questions
Help please I am begging Daily Enterprises is purchasing a $10.0 million machine. It will cost $50,000 to transport and install the machine. The machine has a depreciable life of five years and will have no salvage value. If Daily uses straight-line depreciation, what are the depreciation expenses associated with this machine? Words were displayed on a computer screen with background colors of red and blue. Results from scores on a test of word recall are given below. Use a significance level to test the claim that the samples are from populations with the same standard deviation. Assume that both samples are independent simple random samples from populations having normal distributions. Does the background color appear to have an effect on the variation of word recall scores?nsRed BackgroundBlue BackgroundWhat are the null and alternative hypotheses?A.: : B.: : C.: : D.: : Identify the test statistic.Fnothing (Round to two decimal places as needed.)Use technology to identify the P-value.The P-value is nothing. (Round to three decimal places as needed.) What is the conclusion for this hypothesis test?A. . There is evidence to warrant rejection of the claim that the samples are from populations with the same standard deviation.B. . There is evidence to warrant rejection of the claim that the samples are from populations with the same standard deviation.C. . There is evidence to warrant rejection of the claim that the samples are from populations with the same standard deviation.D. . There is evidence to warrant rejection of the claim that the samples are from populations with the same standard deviation.Does the background color appear to have an effect on the variation of word recall scores?A., the variation of word recall scores appears to be when the color is changed.B., the variation of word recall scores appears to be when the color is changed.C., the variation of word recall scores appears to be when the color is changed.D., the variation of word recall scores appears to be when the color is changed. some people do not like graffiti because it need help and proper explanation I will mark Brainliest and 15points. A 3-foot rain barrel is being filled from the runoff of a roof. The barrel has already collected 2.75 feet of water. Forevery additional inch of rainfall into the barrel, the level of water in the rain barrel rises by 0.75 inch.What is the y-intercept of the linear model representing the change in height of water, in inches, based on therainfall, in inches? A mole was burrowing in a field. First, the mole went 6 meters in one direction,then 8 meters in another direction, and then 4 meters in another direction. How fardid the mole burrow? "Insupportable claim: Apples are the best-tasting fruit for desserts.Supportable claim: Apples are very popular for making desserts."What does the insupportable claim lack?argumentopinionevidenceideas Why do Romeo's parents not ask Romeo directly why he is sad? The electronegativity values of carbon, hydrogen, and nitrogen are compared in the table.Comparison ofElectronegativityElement ElectronegativityCarbon2.5Hydrogen 2.1Nitrogen 3.0Which of the following statements is true about the strength of the intermolecular forces in CH4 and NH3? (4 points) How many different surgery scrub outfits would you have if you have 5scrub tops and 2 pairs of scrub pants? PLEASE ANSWER 20 POINTS Balance the following chemical equations:N2+02___N2O In a container of negligible mass, 0.0400 kg of steam at 100C100 C and atmospheric pressure is added to 0.200 kg of water at 50.0C50.0 C. (a) If no heat is lost to the surroundings, what is the final temperature of the system? (b) At the final temperature, how many kilograms are there of steam and how many of liquid water? 1. Which is true of both Chapter 1 and Chapter 2?A. Both begin the narrative by detailing Becky's driving. B. Both begin the narrative by naming the conflict. C. Both begin the narrative focusing on the setting. D. Both begin the narrative in Justin's point of view.2. Which is true of both Chapter 1 and Chapter 2?A. Both include characters who speak very little.B. Both include large sections of descriptive text.C. Both use mainly dialogue to develop the characters.D. Both use the narrator to explain the conflict. The vassals had to pay taxes to the1.king2.lord3.villien Describe the process of protein synthesis completely. Include all involved molecules, enzymes and steps. What are Floridas main ecological issues? Check all that apply. 1. unclean energy2. deforestation 3.dust storms4. nuclear energy leaks5. lack of fresh water 6.endangered species 7.ocean health HELPPPPP PLSSSS IM DOING REALLYY BAD IN THIS CLASSSSSS 20 POINTS HELP Why can we not use the Nitrogen that we breath in PLEASE HELP ME. Why is the author's reasoning logical in support of his claim about the power of accomplishment in the fish I didn't catch A. the author compares his uncle's expression with his own.B. The author contrast his uncle's expression with his ownC. The author lists the causes of not finishing workD. The author lists the effects of not finishing work