Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Web Database Development Step By Step

Authors: Jim Buyens

1st Edition

0735609667, 978-0735609662

More Books

Students also viewed these Databases questions

Question

4. Ashantis sense of humor keeps the class positive.

Answered: 1 week ago