Question: First, ask the user for the manager PINGive the user three chances to enter the correct manager PIN ( which is the number 1 2

First, ask the user for the manager PINGive the user three chances to enter the correct manager PIN (which is the number 123). If the user gets it correct within three tries, let them continue with the rest of the program. If they fail the PIN three times, print a message with this information and let the program end.If they enter the correct PIN, then ask them for three pieces of informationAsk the user to enter a product name.Ask the user to enter the products category, e.g., office.Ask the user to enter the products price. The price must be a positive number and can contain decimals. If the user enters a negative number, keep asking them to enter a valid price until they do so.Derive and show them the new informationIf the products category is home, decrease the original price by 10%. Create a variable called sku and assign to it the first four letters of the products name, in all capital letters.If the products category is office, increase the original price by 15%. Create a variable called sku and assign to it the last four letters of the products name, in all capital letters.If the products category is anything other than home or office, keep the original price. Create a variable called sku and assign to it every third letter of the products name, in all capital letters.Show the user the final price and SKU.

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!