All numbers-odd numbers and even numbers

Assignment Help Basic Computer Science
Reference no: EM132526712

Write a program that reads a list of 10 integers from a file or use a list defined by the programmer (hard coded). Then the program calculates the total and average for the following numbers: all numbers, odd numbers, and even numbers, and displays the results to screen.

Ask the user if he/she wants to read the numbers from a file. If the user choose not to use a file, then use a array of 10 integers in the body of your code. Ex. a[10] = { 3, -2, 0, ... }

If the user wants to read the values from a file, ask for the file name, and input the content of the file (10 integers) into an array before doing your calculations.

Reference no: EM132526712

Questions Cloud

How does the affect normal success criteria : How does that affect normal success criteria? Is it fair to judge a project with a critical completion date by normal project success standards?
Create matrix of requirements with pass-fail criteria : Create a matrix of requirements with pass/fail criteria based on the organizations framework controls.
What is the amount that will be credited to the Sales Tax : The company is required to collect sales taxes amounting to 10%. What is the amount that will be credited to the Sales Tax Payable account
What volume will the gas occupy at 70 kpa : A gas at 80 kPA occupies a volume of 5 mL. What volume will the gas occupy at 70 kPa?
All numbers-odd numbers and even numbers : Then the program calculates the total and average for the following numbers: all numbers, odd numbers, and even numbers, and displays the results to screen.
How much cold water should be added to the hot tea water : How much cold water should be added to the hot tea water? (Hint: the density of tea and water is 1 g/mL and the specific heat of tea and water is 4.184 J/g·°C).
Discuss how the firm could overcome that problem : Select a problem that a firm might have bringing out a new product or service and discuss how the firm could overcome that problem.
Industry experts believe blockchain is technology : Industry experts believe blockchain is a technology that has the potential to affect the business of most IT professionals in the next five years.
What is the total pressure of the gases in the container : A container has hydrogen, helium and argon gas contained within it. What is the total pressure of the gases in the container if the partial pressure of hydrogen

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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