Produce the result as the user instructed on the screen

Assignment Help Computer Engineering
Reference no: EM13322887

Write a program to:

1. Read N(set max to 500) numbers from the keyboard(provide a method to end the input);

2. Ask the user of the program if the program should:

a. calculate the average of the numbers entered

or

b. calculate the sum of the numbers entered

3. Produce the result as the user instructed on the screen with appropriate messages

(Hint: repetitions,arrays,Functions must be used)

 

Reference no: EM13322887

Questions Cloud

Choose the strategies that seem to be complementary : Choose the strategies that seem to be complementary to one other and could be implemented simultaneously. Justify your response.
Write a class that encapsulates a deck of cards : Write a class (and a client class to test it) that encapsulates a deck of cards. A deck of cards is made up of 52 cards. You should have three instance variables.
Define how many moles are present in the tank : If 8.0 moles of the gas A is placed in a 60.0 L tank with 1.0 moles of B at 0 degrees celsius and 1 atm, they react according to the equation. 2A(g) + B(g) ---> 3C(g) + D(g) How many moles are present in the tank when the reaction is complete
How many kilojoules of heat were absorbed : An ice bag containing 212g of ice at 0 °C was used to treat sore muscles. When the bag was removed, the ice had melted and the liquid water had a temperature of 32.5°C.How many kilojoules of heat were absorbed?
Produce the result as the user instructed on the screen : Produce the result as the user instructed on the screen with appropriate messages.
An environmental science class : An ENVIRONMENTAL SCIENCE CLASS
How many mosquitos are required : The random noise level of a buzzing mosquito is 32dB and that heard in a typical classroom is 71dB. How many mosquitos are required to make a noise level equivalent to that heard ina typical classroom
Construct a dfa that recognizes languages : Construct a DFA that recognizes each of the following languages. Unless otherwise noted we are assuming that ω ∈ {0,1}*. (A drawing of a state diagram is sufficient.)
Write the program with at least two functions to solve : Write the program with at least two functions to solve the following problem.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Compute the file directory and fat entries

Using a text editor, create a file that is between 5,000 and 6,000 bytes long on a newly formatted floppy disk. compute the file directory and FAT entries for the type of disk used.

  Give the advantages and the disadvantages of each method

give the advantages and the disadvantages of each method.

  Show the key code in the center of the screen

Write down a program that will display the hex code for any key, or key combination that is pressed on the keyboard. Display the key code in the center of the screen. For instance, if the key number 0 is pressed, display a 30 on the center of the ..

  Develop the finite difference approximation of fick second

Develop the finite difference approximation of Fick's second law of diffusion in polar coordinates. Write a MATLAB program that can be used to solve the following problem.

  Problem utilizing the turing machine

Develop a two-track Turing machine which compares the two binary strings and decides if they are equal. If strings are equal, machine halts in some of the fixed state; if they are not equal, the machine halts in some other fixed state. Solve the s..

  Program that reads letters from a file called"inputlet.txt"

This program must open an inputLet.txt file , read in one character at a time and repeat this for the number of games the user wants to play.

  How to write a class named dayofyear that gets an integer

How to write a class named DayOfYear that gets an integer Day 2 would be January 2 Day 32 would be February 1 Day 365 would be December 31

  Argue that problem is np complete

Argue that the following prob is NP Complete. Given a list of positive integers, u1,u2,...un (in binary representation) and asked if there is a partition of this set into 3 subsets, each of which has the same sum.

  Why would you recommend a multi-core cpu

Discussion is designed to help you know the roles of hardware and software components in a modern computer system. For the purposes of this Discussion, assume that you are heading a team of 25 people working on a software development project.

  Define how an array works

Define the purpose of a pointer.What are the disadvantages to using pointers?

  Create an xml document containing information

Create an XML document containing information.

  Design a function method named gettimeparts

Declare the structure, and give it the name CurrentTime. The code in the function process should get the time of day and then store the current hour, minute, and second in the structure members.

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