Enable the user to input a series of non-negative numbers

Assignment Help Basic Computer Science
Reference no: EM13895224

Write a program that will enable the user to input a series of non-negative numbers via an input statement. At the end of the input process, the program will display: the number of odd numbers and their average; the number of even numbers and their average; the total number of numbers entered. Enable the input process to stop by entering a negative value. Make sure that the user is advised of this ending condition.

For extra credit(needs to be separate program)

Modify the program so that the user cannot enter more than 20 values, If the user does reach this maximum number of values,  have the program print a warning message to the effect, while modifying the message indicating the number of values entered to read: "You entered the maximum number of values." To help the user know which value he/she is entering, have the current count displayed as part of the input prompt ( for example, "Please enter value #7) Don't forget to somehow warn the user at the input stage that the maximum number of values that can be entered is 20.

using visual studio and c++

Reference no: EM13895224

Questions Cloud

Identify one independent variable from the web article : Identify one independent variable from the web article and How is the independent variable you've identified measured (the variable's indicator)?
Assume that selk has a significant influence over kildaire : Selk Steel Co., which began operations on January 4, 2013, had the following subsequent transactions and events in its long- term investments. 2013 Jan. 5 Selk purchased 60,000 shares (20% of total) of Kildaire's common stock for $1,560,000.
What is the crash cost per hour for the given activity : Annie is most interested in reducing the time associated with creating the guest list. What is the crash cost per hour for that activity?
Compare and contrast islamic calligraphy at alhambra : Considering that calligraphy and mosaic are visual representations of religious belief, compare and contrast Islamic calligraphy at Alhambra and Dome of the Rock to Christian mosaics at Ravenna. What do you think each art form communicates about t..
Enable the user to input a series of non-negative numbers : Write a program that will enable the user to input a series of non-negative numbers via an input statement. At the end of the input process, the program will display: the number of odd numbers and their average; the number of even numbers and their a..
How can one implement a queue based using a single stack : How can one implement a queue based using a single stack?
Determining the estimated population variance : The result for University X was a mean of 5 hours and an estimated population variance of 2 hours; for University Y, M = 4, S2 = 1.5; and for University Z, M = 6, S2 = 2.5. Using the 5 steps of hypothesis testing listed below, what should you conclu..
Review the joint commission standards : Review The Joint Commission standards for the type of health care organization that you chose in Week 1 and that you have used throughout this course
Doering company, a u. s. corporation with customers : Doering Company, a U. S. corporation with customers in several foreign countries, had the following selected transactions for 2013 and 2014. 2013 Apr. 8 Sold merchandise to Salinas & Sons of Mexico for $ 5,938 cash.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Scenario of tampering and manipulating http

Devise a scenario of tampering and manipulating HTTP requests and responses to and from this HTTP Sandbox web site using Fiddler, collect the results you received, and document your work. Your documented work must include:

  Analyse the average of pre-test raw score

Enter the data in excel spreadsheet and analyse the average of Pre-Test Raw Score and post-Test Raw Score,present your answer in two slides

  What is the time complexity of the better method

Modern object-oriented software makes extensive use of the malloc and free operations. Unfortunately, they are generally quite expensive (in time) and thus efficient routines are important.

  Why it is necessary to choose appropriate data types

Why it is necessary to choose appropriate data types for each data column. How must a database designer balance the time to complete data modeling steps with the benefits the data modeling process offers in creating

  File of the game tic-tac-toe

First have a good grasp on the game, its concepts, and its rules.  For your first assignment, download the linked file below. This is a .cpp file of the game Tic-Tac-Toe.

  Explanation of how technology might help you reach your goal

explanation of how technology might help you reach your goals

  Convert this cfg to one with-out the lambda-production then

convert this CFG to one with-out the lambda-Production then.

  Influence of culture on risks in offshore outsourcing

Read the journal article, titled, "Influence of Culture on Risks in Offshore Outsourcing of Software Projects: A Quantitative Study on Mum Effect".

  Elaborate on storage are networks (sans)

Elaborate on storage are networks (SANS). Be very granular with the post and tell how you would use this technology and give a realistic example.

  Component of the von neumann architecture of a computer

Which of the following is NOT a component of the von Neumann architecture of a computer

  Explain how this application can be used

Explain how this application can be used to collect data from customers and employees to improve operational performance

  Perform dynamic address translation

Perform dynamic address translation

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