Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Python 3.5 [DO NOT COPY/PASTE THE WRONG SOLUTION FROM PREVIOUSLY ANSWERED QUESTION] Input Validation [DO NOT USE TRY/EXCEPT] The input data will only be

Using Python 3.5 [DO NOT COPY/PASTE THE WRONG SOLUTION FROM PREVIOUSLY ANSWERED QUESTION]

Input Validation [DO NOT USE TRY/EXCEPT]

The input data will only be the phone name, sales price, and chipset (either Qualcomms 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 doesnt matter whether the user enters

upper case or lower case, and it doesnt 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 youll do if the user enters snap).

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

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

More Books

Students also viewed these Databases questions

Question

ieee 7 5 4 single precisi

Answered: 1 week ago

Question

If ( A^2 - A + I = 0 ), then inverse of matrix ( A ) is?

Answered: 1 week ago

Question

What is computer neworking ?

Answered: 1 week ago