Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

MATH 240 Intro to Sci Pro for Math Major Project 4 (optional) due Wed Dec XXXXXXXXXXPlease make your scripts clean and concise. Attach all MATLAB .m files in a single message and send it to...

1 answer below »
MATH 240 Intro to Sci Pro for Math Major Project 4 (optional) due Wed Dec XXXXXXXXXXPlease make your scripts clean and concise. Attach all MATLAB .m files in a single message and send it to bxuQncat.edu. Write the email title as 'MATH240 PROJECT 4 LastName-FirstName' XXXXXXXXXXpts) Write a Brownie class. (a) It should have two properties: an integer yield, which is how many brownies a batch produces, and a logical chocchips, which true if the recipe uses chocolate chips and false if not. (b) Both properties should be given default values. (c) Write two methods: a constructor function which uses the values passed to it (if any) or the default values if not; also overload the disp function so that the output is as shown in the following examples. >> mochab - Brownies (16, true) mochab - This recipe yields 16 brownies and has chocolate chips >> bettye - Brownies (20,false) bettyc - This recipe yields 20 brownies and does not have chocolate chips >> disp(bettyc) This recipe yields 20 brownies and does not have chocolate chips 2. (4 pts) Create a class that stores information on a company's employees. The class will have properties to store the employee's name, a 10-digit ID, their department, and a rating from 0 to 5. Overwrite the set.propertyname function to check that each property is the correct class and that: (a) The employee ID has 10 digits (b) The department is one of the following codes: HR (Human Resource), IT (Information Tech- nology), MK (Marketing), AC (Accounting), or RD (Research and Development) (c) The rating is a number from 0 to 5.
Answered 43 days After Nov 22, 2021

Solution

Sathishkumar answered on Jan 05 2022
103 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here