Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Williams & Son is a hardware shop which allows customers to purchase DIY (Do It Yourself) tools seven days a week. Currently, the shop uses

Williams & Son is a hardware shop which allows customers to purchase DIY (Do It Yourself) tools seven days a week. Currently, the shop uses a manual, paper-based system for processing sales transactions. Because the hardware shop is open seven days a week, the number of sales transactions processed daily has increased exponentially each month since the opening of the store.

image text in transcribed
Question 4 [Marks: 10) After a month or two Mr. Williams contacted you indicating that if they accidentlyentera 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 (10) whether the value entered is a numericvalue or not. If the value entered by the user is nota numericvalue, 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 answerto the question. [TOTAL MARKS: 100]

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

Students also viewed these Programming questions