Question: Python 3.5: PLEASE HELP BY: DO NOT COPY-PASTE SOLUTION FROM ELSEWHERE AS IT IS WRONG! ALSO DO NOT USE TRY/EXCEPT & DO NOT MAKE THE

Python 3.5: PLEASE HELP BY:

DO NOT COPY-PASTE SOLUTION FROM ELSEWHERE AS IT IS WRONG! ALSO DO NOT USE TRY/EXCEPT & DO NOT MAKE THE SOLUTION VERY LENGTHY!

Python 3.5: PLEASE HELP BY: DO NOT COPY-PASTE SOLUTION FROM ELSEWHERE AS

IT IS WRONG! ALSO DO NOT USE TRY/EXCEPT & DO NOT MAKE

THE SOLUTION VERY LENGTHY! Input Validation The input data will only be

Input Validation The input data will only be the phone name, sales price, and chipset (either Qualcomm's Snapdragon 810 or Kirin 940) and which currency conversions the users wishes to do Validate input to make sure the user gives valid inputs. Display an appropriate message if invalid data is entered. Here are the rules for data validation: The phone name must begin with an alphabetic character. Other than that it can contain alphabetic characters, numeric digits, and spaces, but no other characters. The sales price can contain a dollar sign, but other than that it must be numeric. Also, the sales price must be at least $100. It may include dollars and cents. The chipset must start with either "S,"s,"k or K". It doesn't matter whether the user enters upper case or lower case, and it doesn't matter if they enter the whole word or just the first letter, but your validation statement should only check against an upper case letter (for example, think about what you'll do if the user enters "snap. Calculating costs and profit Perform the following calculations to determine costs of chipset, memory, camera, battery, and display The sum of these costs makes up the total cost of manufacturing the phone. The chipset costs are calculated as follows: Snapdragon costs 60% of sales price Kirin costs 50% of sales price However, it's possible to get a Kirin discount If they qualify the Kirin discount, the chipset cost is only 40% of sales price The cost of memory is based on the sale price as follows: For sales price at least $500, memory cost is $100 For sales price at least $300 but less than $500, memory cost is $90 For sales price less than $300, memory cost is $80 Other costs Camera 5% of sales price) Battery (Integer division by 22 of Sales Price) Display (ASCII value of the first letter of the phone name) Profit is calculated as sales price minus total costs NOTE: if the cost exceeds the sales price you must give the user a warning message to that effect

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!