Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Python - I wish to write a program that can help me with quick calculations for a set of numbers that I enter. I

In Python - I wish to write a program that can help me with quick calculations for a set of numbers that I enter.
I would also like it to give me quick information on mathematical constants. I would like to be able to quickly display the values of "Pi", Eulers Number "e" and various trigonometric functions (sine, cosine and tangent) of 270 degrees.
The program will not contain any repeated code and have a minimum of two custom functions besides Main. The program will use built-in list functions to process the calculations of:
The lowest number in the list.
The highest number in the list.
The total of the numbers in the list.
The average of the numbers in the list.
The program will use the math library to display the math constants: Pi, e, the sine, cosine and tangent of 270 degrees.
The program should be a menu driven program that asks the user to enter a list of numbers (at least but not limited to 10) and analyze the list of numbers with the following menu options
1- Enter Data
2- Analyze My Data
3- Display math constants
4- Exit
The program should ask the user for a list of numbers with option 1. The data should be validated to make sure it is a number.
The program should store the numbers in a list then (using built-in list functions) display the statistics about the data when option 2 is selected.
Option 3 is using the math library to give me the numerical values of various math constants and trigonometric functions of sine, cosine and tangent of 270 degrees.
The program should end gracefully and thank the user with option 4.
All output should be cleared labelled. All output (averages, trionometric functions (sin, cos, tan)) involving division or decimal numbers should be rounded to 2 places.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899