Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

You are writing code that is part of a purchasing system. For each of the follow

ID: 3817868 • Letter: Y

Question

You are writing code that is part of a purchasing system. For each of the following items, write a MATLAB statement to accomplish the task in one script: a) Generate a menu that asks users what they wish to buy and gives them a choice of three items: Flange, Bracket, or Hinge The user's choice should be placed in a variable named PartType b) Ask users how many parts they wish to buy based on what they select in Part-a. Store the response in a variable named NumParts c) Ask the user to enter his or her name after they enter the information from Part-b. Store the response in a variable named BuyerName

Explanation / Answer

code : To choice one item at a time

PartType=input('what you want purchase:choices:(1)Flange (2)Bracket (3) hinge : ');
NumParts=input('How many parts they wish to buy : ');
Name=input('Enter your name : ','s');

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote