Print the number of odd inputs entered by the user

Assignment Help Computer Engineering
Reference no: EM132212292

Question :

Write a Python program that read a sequence of positive integers and print the number of odd inputs entered by the user.

The sentinel value is a negative number.

Use the following test case: Please use a while loop.

SAMPLE:

Enter integer or empty string to end: 3

Enter integer or empty string to end: 2

Enter integer or empty string to end: 10

Enter integer or empty string to end: 5

Enter integer or empty string to end: 6

Enter integer or empty string to end: 7

Enter integer or empty string to end:

Number of odd integers entered: 3

Reference no: EM132212292

Questions Cloud

What costs would be considered direct to manhattan office : Assuming the Manhattan office is the cost object, what costs would be considered direct to the Manhattan office? What costs would be indirect?
Compute the letter grade for a course by processing the data : You are tasked to compute the letter grade for a course by processing the data file. Students in the course take 10 tests and the final exam.
Advise alan about the likely success of his action : BULAW5914 Commercial Law - Federation university - Demonstrate your understanding of relevant laws - Develop your knowledge about the subject area
Review given problem of amanda : Amanda would like to organize BAL as either an LLC (taxed as a sole proprietorship) or a C corporation. In either form, the entity is expected to generate.
Print the number of odd inputs entered by the user : Write a Python program that read a sequence of positive integers and print the number of odd inputs entered by the user.
Write a python program that takes as input a month and year : Write a Python program that takes as input a month and year (as integer numbers) and determines the number of days in the month.
Define the multiplication process in terms of integer : Define the multiplication process in terms of integer addition. For example, 4*7 is equal to 7 added to itself 4 times.
Write a recursive function that prints the number in a range : Write a recursive function that determines whether an array is a palindrome, where the array and its size are given as parameters.
Identify and analyse relevant issues : Jamie is a real estate agent working for Houses R Us' real estate. As part of his employment contract, Jamie receives a base salary of $50,000 per annum plus.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Create the six tables shown on the diagram

Create the six tables shown on the diagram. Simulate a point of sale (A transaction header is a sale. A transaction item is an item in a sale).

  What commands are used to apply initial router configuration

What commands are used to apply initial router configurations? Provide an example from one of the labs. What commands are used to apply the VLANs and Trunk.

  Calculate the surface area of a right circular cone

Create a function that will calculate the surface area of a right circular cone whose arguments will be received through the command line.

  Describe approval process that exists for proposed projects

Describe the approval process that exists for proposed new development projects. What do they think about the process? What are the problems? What are the benefits?

  Discuss the relationship between data and knowledge

Discuss the relationship between data, information, and knowledge. Support your discussion with at least 3 academically reviewed articles.

  Write a python function that implements the algorithm

Create a new file p2.py where you write a Python function find_dup_str(s, n) that implements the algorithm .

  Writing c code to determine the balance

Write down a program in C++ which determines the balance because of each month on a non-interest loan. Ask user for the loan amount and how much s/he will pay each month.

  Identify two to three of the more common connections

Identify two to three of the more common connections and summarize their associated data rates, typical uses, and approximate costs.

  What problem is quantum cryptography solving

What problem is quantum cryptography solving? explain. Detail how quantum cryptography works and compare it to any predecessor.

  What is difference between AMPS and D-AMPS cellular systems

What is primary difference between AMPS and D-AMPS cellular systems? What is primary difference between AMPS cellular systems and newer PCS mobile telephones?

  How quick kruskal''s algorithm run

imagine that all edge weights in a graph are integers in the range from 1 to |V|.how quick Kruskal's algorithm run.

  Identify a cyber incident or an international situation

Identify a cyber incident or an international situation that contains significant cyber issue. Assess and provide some contextual information that helps.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd