Write a program that reads in numbers from the user

Assignment Help Computer Engineering
Reference no: EM132211275

Write a program that reads in numbers from the user.

Your program should be capable of tracking/calculating the minimum, maximum, total sum, and average of the numbers entered.

When the user enters "q", "Q", or "quit", the program should display the minimum, maximum, total sum, and average of the numbers entered before ending.

You can assume that the user will always enter either a number or one of the strings "q", "Q", or "quit".

You can also assume the user will always enter at least one number (i.e., they will not immediately choose to quit upon starting the program).

Save your Python program in a file called a2q3.py and add it to your submission zip file.

Reference no: EM132211275

Questions Cloud

Use the holistic marketing framework : Discuss in detail how an organisation such as Coca-Cola could use the holistic marketing framework to grow their market share and increase customer satisfaction
How christian ethics would approach a values-based issue : Write an essay (600 - 1000 words) that compares how Christian ethics and an ethical theory of your choice would approach a values-based issue.
Preliminary cost bene?t analysis for client-server system : Martin is working to develop a preliminary cost bene?t analysis for a new client-server system.
Discuss extra-dimensional communication within the event : Discuss extra-dimensional communication within this event (for example, presence/absence/how it could be attained or improved for future communication).
Write a program that reads in numbers from the user : Your program should be capable of tracking/calculating the minimum, maximum, total sum, and average of the numbers entered.
Write a program that reads in the users name : Write a program that reads in the user's name (e.g. "Bob") and then prints out "HI" and then their name (e.g. "Hi Bob!").
Psychographic segmentation to divide its market : United Airlines has used psychographic segmentation to divide its market. How successful was the psychographic segmentation strategy.
What factors need to be considered with the population : Compare and contrast clinical depression with the sadness that may be associated with the normal losses of aging. What factors need to be considered.
Write a program that reads three different numbers : Write a program that reads three different (i.e., ask to the user to enter) numbers, and prints the greatest.

Reviews

Write a Review

Computer Engineering Questions & Answers

  What are the major phases of designing recursive algorithms

How does the space requirement for a recursive function relate to its recursion tree? What are the major phases of designing recursive algorithms?

  What is the principle of procedural abstraction as applied

What is the purpose of the comment that accompanies a function declaration? What is the principle of procedural abstraction as applied to function definitions?

  Define single level of indirect addressing for asc

We have assumed single level of indirect addressing for ASC. What changes are needed to extend this to multiple levels whereby the indirection is performed.

  Display the numbers between 2 integers in ascending order

Write a BASH script "count_up" to display the numbers between 2 integers (including the 2 numbers) in ascending order if the first number.

  Design a web page to provide a metric conversion guide

Design a web page to provide a metric conversion guide for college students.

  1 define open and closed loop control systems explain

1. define open and closed loop control systems. explain difference between time varying and time invariant control

  Main differences between selection and switch structure

What do you need to analyze when directing flow of information in each case? Give code examples for if/else structure and switch structure that produce the same result.

  How might the file be compromised in the given case

UNIX treats file directories in the same fashion as files; that is, both are defined by the same type of data structure, called an inode.

  How recursive function might cause stack overflow exception

What three things are stored in an activation frame? Where are activation frame stored? Explain how a recursive function might cause a stack overflow exception.

  Develop a personalized academic writing plan

The objective of this Assignment is to provide you with a private place to think on the page; "thinking on the page" is a phrase used to describe writing.

  Write a program that reads a text from the keyboard

Write a program that reads a text from the keyboard until the user presses the "Enter" key.

  Explain when you need to create a branch delta

Explain when you need to create a branch delta. Is 1.2.1 a branch delta? Mention three advantages CVS has over RCS.

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