Question: using matlab load the provided cw 9 . xlsx table using readtable command. The data represents the total tip paid by customer in a restaurant

using matlab
load the provided cw9.xlsx table using readtable command. The data represents the total tip paid by customer in a restaurant detailed by the customer(s) gender, number, if he/she/they are smokers, total bill, day and time.
a) Using grpstats command:
On average, who spend more on the total bill, Male or Female?
On average, who spend more on the total bill, Smoker or non-smoker?
On average, on which day the customers spend more on the total bill, from Monday to Sunday?
b) Add another column of data, tip_percent, to the table, which is the percent of tips tip/total_bill) paid by the customer. To add one column of data to existing table T, create a table (say Tnew) using this column of data (using table command), then set Tnew
 using matlab load the provided cw9.xlsx table using readtable command. The

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 Databases Questions!