Question: Create a function file named PriceCalc that calculates the total price of an order of pens by doing the following: 1 . Takes an integer
Create a function file named PriceCalc that calculates the total price of an order of pens
by doing the following:
Takes an integer as an input and outputs the total price of the order by doing
number of pensprice of each pen
If the input is negative ie negative number of pens print out a message The
number of pens is invalid and set the value for the price as
If the input is between and the price of each pen is $
If the input is between and the price of each pen is $
If the input is larger than print out a message Order too big. Contact
wholesaler and set the total price as
Then, in the main script, use the function PriceCalc to find the cost to order pens,
pens, pens, and pens
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
