Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Module 3 Required Coding Activity Introduction to Python Unit 1 This is an activity based on code similar to the Jupyter Notebook Practice _ MOD

Module 3 Required Coding Activity
Introduction to Python Unit 1
This is an activity based on code similar to the Jupyter Notebook Practice_MOD03_1-4_IntroPy.ipynb and Practice_MOD03_1-5_IntroPy.ipynb
which you may have completed as practice.
This program requires the use of if, elif, else, and casting between strings and numbers. The program should use the various code
syntax covered in module 3.
The program must result in print output using numeric input similar to that shown in the sample below. You must include your full name in the
input prompt. See sample input below for more detail.
Program: Cheese Order Function
define function with max, min, price, and order_amount parameters
set default values for maximum and minimum order parameters
set default value for price parameter
cast order_amount and other arguments to numbers
check order_amount and give message checking against
over maximum
under minimum
else within maximum and minimum give message with calculated price
call your function using order weight input from user
Sample input and output:
[YOUR FULL NAME GOES HERE], enter cheese order weight (numeric value): 113
113.0 is more than currently available stock
image text in transcribed

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions