Question: Question 4 (Marks: 10) After a month or two Mr. Williams contacted you indicating that if they accidently enter a combination of letters instead of

Question 4 (Marks: 10) After a month or two Mr. Williams contacted you indicating that if they accidently enter a combination of letters instead of the price of a product the system crashes. This should never happen. Q.4.1 Modify the while loop so that when a user enters a price, the system validates whether the value entered is a numeric value or not. If the value entered by the user is not a numeric value, they should be asked repetitively to enter a new value until they enter the correct data type. Note: You only need to provide the modified while loop pseudocode as your answer to the question.

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 Programming Questions!