Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IT 280 - Lab #3: Selection of Mathematical Functions Instructions Preconditions: - Python is installed. - Reading completed. To Submit This Program - In IDLE,

image text in transcribed

IT 280 - Lab \#3: Selection of Mathematical Functions Instructions Preconditions: - Python is installed. - Reading completed. To Submit This Program - In IDLE, choose File > NewFile. - Type your program in the window that pops up, saving it as you work. o File name should be your Last Name followed by Lab 2.2 (Example: Fife Lab 2.2.py). .py is the automatic extension for a Python program. - Test the program by running it (F5 or Run Run Module) o If you work on the program at different times, just load it into IDLE with: File Open. - When completed, submit the .py file you created. Note: the submission instructions will not be provided after this week. However, they will be the same. File names should follow the pattern set. Program Inputs: - The user will be given 5 mathematical functions to choose from, and will be asked for the appropriate inputs, based on their selection. o Instructor Provided mathematical function: - Calculate the area of a circle given the diameter of the circle. - Calculate the MPG for a vehicle, when provided the distance traveled and the amount of fuel used. - Calculate the total number of hours worked in a week, when provided the hours worked each day of the week. o User will provide two additional mathematical functions. Program Processing: - Using the choice of function to perform and the required input(s), a function will be called to calculate the results. The result will be returned to the main program. Program Output: - The results of the calculation with appropriate text will be printed. If there are errors in any of the inputs, appropriate messages will be printed

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

Intelligent Information And Database Systems 12th Asian Conference ACIIDS 2020 Phuket Thailand March 23 26 2020 Proceedings

Authors: Pawel Sitek ,Marcin Pietranik ,Marek Krotkiewicz ,Chutimet Srinilta

1st Edition

9811533792, 978-9811533792

More Books

Students also viewed these Databases questions

Question

Evaluate 3x - x for x = -2 Answer:

Answered: 1 week ago