Reference no: EM13703758
Question: You have a friend who has too many clothes to store in her/his tiny wardrobe provided by Georgia Tech. Being a good friend, you offer to help to decide whether each piece of clothing is worth saving. You decide to write a script in MATLAB that will compute the value of each piece of clothing.
A piece of clothing has five attributes that can used to determine its value. The attributes are: condition, color, price, number of matches, and comfort.
Each attribute will be rated on a scale of 1-5.
Write a script called clothes in MATLAB that will ask the user for the ratings for each attribute and store the result in a vector.
The order of attributes in the vector is as given:
[condition color price matches comfort]
The script should compute a value between 0 and 100; 100 represents a good piece of clothing while 0 represents a bad piece of clothing.
The points that should be given for each attribute are exposed below:
Condition: 1=>0; 2=>5; 3=>10; 4=>15; 5=>20
Color: 1 => blue => 12;
2 => red (UGA Colors) => 2;
3 => pink => 15;
4 => yellow (GT Colors) => 20;
5 => white => 12
Price: 1 => 8, 2-3 => 16, 4-5 => 20 Matches: 1-2 => 8, 3-5 => 19 Comfort: 1 => 6, 2-3 => 13, 4-5 =>18
Note: If a number other than 1-5 is assigned for one of the attributes, no points should be provided.
Can someone provide the answer with MATLAB?
Create a third string consisting of the first half of string
: Show the length of both strings - Create a third string consisting of the first half of string (1) and the second half of string.
|
Direct recursion
: Procedure A calls Procedure B then, based on the result of Procedure B, may call Procedure A. Procedure B checks to see if the specific case it is being passed has already been solved; if so, it returns with the answer. This is most closely an e..
|
Implementation of the vector data type
: Described in general terms the implementation of the vector data type. Complete the implementation of the vector by providing definitions for the subsequent operations
|
Relation between the objects
: What will be said about the relation between the objects object1 and object2 - Make this program using java programming.
|
Compute the value of each piece of clothing
: You decide to write a script in MATLAB that will compute the value of each piece of clothing.
|
Explain in words a divide-and- conquer algorithm
: explain in words a divide-and- conquer algorithm that runs in O(log n) time, and that determines if there is an i for which a[i] = i. Argue that your algorithm is correct and provide supporting pseudo-cod
|
Create a class called numberset
: You need to create a class called NumberSet. It needs an empty default constructor and an overloaded constructor that takes an integer argument and creates a vector with that many random numbers in it. So... if I created
|
Linear search algorithm with scans
: Consider the linear search algorithm with scans through an n-element array a to determine if element xis in a. We say that the algorithm require i steps if x is located at index i; i.e. a[i] = x, for i = 0, 1, . . . , n ?
|
Write a function that accepts an array of integers
: Write a function that accepts an array of integers and the size of the array and prints out a table listing how many values in the array fall in each of the following ranges:
|